source: trunk/dports/python/py25-libxml2/Portfile @ 28206

Last change on this file since 28206 was 28206, checked in by sfiera@…, 13 years ago

Fixing port lint, obscuring maintainer addresses on my ports, plus a couple of unmaintained ones I was last to commit to.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 28206 2007-08-24 17:24:55Z sfiera@macports.org $
2
3PortSystem 1.0
4PortGroup python25 1.0
5
6name                    py25-libxml2
7version                 2.6.21
8categories              python textproc
9platforms               darwin
10maintainers             sfiera openmaintainer
11description             Python bindings for libxml2
12long_description        ${description}
13
14homepage                http://xmlsoft.org/
15master_sites            ftp://xmlsoft.org/libxml2/python/
16distname                libxml2-python-${version}
17checksums               md5 229dd2b3d110a77defeeaa73af83f7f3
18patchfiles              patch-setup.py.diff
19
20depends_lib-append      port:libxml2 \
21                        port:zlib
22
23build.env               LDFLAGS=-L${prefix}/lib
24
25post-patch {
26  reinplace "s|@PREFIX@|$prefix|" ${worksrcpath}/setup.py
27}
28
29post-destroot {
30  # strip out anything related to libxslt, so py-libxml2 doesn't conflict with
31  # py-libxslt
32  cd ${destroot}
33  fs-traverse file . {
34    if {[file isfile ${file}]} {
35      if {[string match "*xslt*" ${file}]} {
36          file delete ${file}
37      }
38    }
39  }
40  xinstall -m 644 -W ${worksrcpath} README TODO \
41    ${destroot}${prefix}/share/doc/${name}
42}
43
44livecheck.check         md5
45livecheck.url           ftp://xmlsoft.org/libxml2/python/
46livecheck.md5           a2cc31311f1b3fb52a08cf1056efda11
Note: See TracBrowser for help on using the repository browser.