Ticket #26790: Portfile-py27-libxml2

File Portfile-py27-libxml2, 1.2 KB (added by kurtjaeke@…, 14 years ago)
Line 
1PortSystem 1.0
2PortGroup  python27 1.0
3
4name                    py27-libxml2
5version                 2.6.21
6categories              python textproc
7platforms               darwin
8maintainers             mcalhoun openmaintainer
9description             Python bindings for libxml2
10long_description        ${description}
11
12homepage                http://xmlsoft.org/python.html
13master_sites            ftp://xmlsoft.org/libxml2/python/
14distname                libxml2-python-${version}
15
16checksums               md5 229dd2b3d110a77defeeaa73af83f7f3 \
17                        sha1 2d395e8a5e9accd68f4e78ac2391431ef884e9d5 \
18                        rmd160 d4973576c33e0e65c4fc41b31ee3df5f803abfad
19
20patchfiles              patch-setup.py.diff
21
22depends_lib-append      port:libxml2 \
23                        port:zlib
24
25build.env               LDFLAGS=-L${prefix}/lib
26
27post-patch {
28  reinplace "s|@PREFIX@|$prefix|" ${worksrcpath}/setup.py
29}
30
31post-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
38livecheck.type          regex
39livecheck.url           ftp://xmlsoft.org/libxml2/python/
40livecheck.regex         {python-(\d+(?:\.\d+)*)}