source: trunk/dports/python/py-pylibelf/Portfile

Last change on this file was 114324, checked in by ryandesign@…, 4 years ago

python ports: use eq and ne when comparing ${subport} instead of == and !=

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.1 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 114324 2013-12-05 08:44:51Z ryandesign@macports.org $
3
4PortSystem      1.0
5PortGroup       python 1.0
6
7set myname      pylibelf
8name            py-${myname}
9version         0.1.20110915
10categories-append   devel
11platforms       darwin
12maintainers     nomaintainer
13description     Pythonic wrapper for the libelf library.
14
15long_description \
16    ${description}
17
18homepage    http://eggy.yolky.org/pylibelf/static/docs/index.html
19
20python.versions 27
21
22if {${name} ne ${subport}} {
23    fetch.type  hg
24    hg.url      https://bitbucket.org/eggy/pylibelf
25    hg.tag      81d39db22cbd
26    worksrcdir  ${myname}-${version}
27
28    patch.pre_args  -p1
29    patchfiles      setup.diff
30
31    post-patch {
32        reinplace "s|@@PREFIX@@|${prefix}|g" \
33            ${worksrcpath}/setup.py \
34            ${worksrcpath}/constfile2cython.py
35    }
36
37    depends_lib-append  port:py${python.version}-cython port:py${python.version}-ply
38
39    livecheck.type  none
40} else {
41    livecheck.type  regex
42    livecheck.regex ${myname}\\s+v\\d+(.\\d+)\\s+documentation
43}
Note: See TracBrowser for help on using the repository browser.