Source
# -*- 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
PortSystem 1.0
PortGroup python 1.0
set myname pylibelf
name py-${myname}
version 0.1.20110915
revision 1
categories-append devel
platforms darwin
maintainers nomaintainer
description Pythonic wrapper for the libelf library.
long_description \
${description}
homepage http://eggy.yolky.org/pylibelf/static/docs/index.html
python.versions 27
if {${name} ne ${subport}} {
fetch.type hg
hg.url https://bitbucket.org/eggy/pylibelf
hg.tag 81d39db22cbd
worksrcdir ${myname}-${version}
patch.pre_args -p1
patchfiles setup.diff
post-patch {
reinplace "s|@@PREFIX@@|${prefix}|g" \
${worksrcpath}/setup.py \
${worksrcpath}/constfile2cython.py
}
# libelf provides a static library only.
depends_build-append \
port:libelf
depends_lib-append \
port:py${python.version}-cython \
port:py${python.version}-ply
livecheck.type none
} else {
livecheck.type regex
livecheck.regex ${myname}\\s+v\\d+(.\\d+)\\s+documentation
}