1 | PortSystem 1.0 |
---|
2 | PortGroup python27 1.0 |
---|
3 | |
---|
4 | name py27-libxml2 |
---|
5 | version 2.6.21 |
---|
6 | categories python textproc |
---|
7 | platforms darwin |
---|
8 | maintainers mcalhoun openmaintainer |
---|
9 | description Python bindings for libxml2 |
---|
10 | long_description ${description} |
---|
11 | |
---|
12 | homepage http://xmlsoft.org/python.html |
---|
13 | master_sites ftp://xmlsoft.org/libxml2/python/ |
---|
14 | distname libxml2-python-${version} |
---|
15 | |
---|
16 | checksums md5 229dd2b3d110a77defeeaa73af83f7f3 \ |
---|
17 | sha1 2d395e8a5e9accd68f4e78ac2391431ef884e9d5 \ |
---|
18 | rmd160 d4973576c33e0e65c4fc41b31ee3df5f803abfad |
---|
19 | |
---|
20 | patchfiles patch-setup.py.diff |
---|
21 | |
---|
22 | depends_lib-append port:libxml2 \ |
---|
23 | port:zlib |
---|
24 | |
---|
25 | build.env LDFLAGS=-L${prefix}/lib |
---|
26 | |
---|
27 | post-patch { |
---|
28 | reinplace "s|@PREFIX@|$prefix|" ${worksrcpath}/setup.py |
---|
29 | } |
---|
30 | |
---|
31 | post-destroot { |
---|
32 | set docdir ${prefix}/share/doc/${name}-${version} |
---|
33 | xinstall -d ${destroot}${docdir} |
---|
34 | xinstall -m 0644 -W ${worksrcpath} README TODO \ |
---|
35 | ${destroot}${docdir} |
---|
36 | } |
---|
37 | |
---|
38 | livecheck.type regex |
---|
39 | livecheck.url ftp://xmlsoft.org/libxml2/python/ |
---|
40 | livecheck.regex {python-(\d+(?:\.\d+)*)} |
---|