source: trunk/dports/python/py-libxslt/Portfile @ 25951

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

Removing hardcoded prefix from patchfile

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.2 KB
Line 
1# $Id: Portfile 25951 2007-06-07 13:27:19Z sfiera@macports.org $
2
3PortSystem 1.0
4PortGroup python24 1.0
5
6name                    py-libxslt
7version                 2.6.21
8categories              python textproc
9platforms               darwin
10maintainers             sfiera@macports.org openmaintainer@macports.org
11description             Python bindings for libxslt
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:libxslt \
21                        port:py-libxml2 \
22                        port:zlib
23
24build.env               LDFLAGS=-L${prefix}/lib
25
26post-patch {
27  reinplace "s|@PREFIX@|$prefix|" ${worksrcpath}/setup.py
28}
29
30post-destroot {
31  # strip out anything not related to libxslt, so py-libxml2 doesn't conflict
32  # with py-libxml2
33  cd ${destroot}
34  fs-traverse file . {
35    if {[file isfile ${file}]} {
36      if {![string match "*xslt*" ${file}]} {
37          file delete ${file}
38      }
39    }
40  }
41}
42
43livecheck.check         md5
44livecheck.url           ftp://xmlsoft.org/libxml2/python/
45livecheck.md5           a2cc31311f1b3fb52a08cf1056efda11
Note: See TracBrowser for help on using the repository browser.