[25246] trunk/dports/python
source_changes at macosforge.org
source_changes at macosforge.org
Wed May 16 05:46:32 PDT 2007
Revision: 25246
http://trac.macosforge.org/projects/macports/changeset/25246
Author: sfiera at macports.org
Date: 2007-05-16 05:46:32 -0700 (Wed, 16 May 2007)
Log Message:
-----------
* New port py-libxslt
* Closes #7316 (*sniff*)
Added Paths:
-----------
trunk/dports/python/py-libxslt/
trunk/dports/python/py-libxslt/Portfile
trunk/dports/python/py-libxslt/files/
trunk/dports/python/py-libxslt/files/patch-setup.py.diff
Copied: trunk/dports/python/py-libxslt/Portfile (from rev 24825, trunk/dports/python/py-libxml2/Portfile)
===================================================================
--- trunk/dports/python/py-libxslt/Portfile (rev 0)
+++ trunk/dports/python/py-libxslt/Portfile 2007-05-16 12:46:32 UTC (rev 25246)
@@ -0,0 +1,41 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup python24 1.0
+
+name py-libxslt
+version 2.6.21
+categories python textproc
+platforms darwin
+maintainers sfiera at macports.org
+description Python bindings for libxslt
+long_description ${description}
+
+homepage http://xmlsoft.org/
+master_sites ftp://xmlsoft.org/libxml2/python/
+distname libxml2-python-${version}
+checksums md5 229dd2b3d110a77defeeaa73af83f7f3
+patchfiles patch-setup.py.diff
+
+depends_lib-append port:libxslt \
+ port:py-libxml2 \
+ port:zlib
+
+build.env LDFLAGS=-L${prefix}/lib
+
+post-destroot {
+ # strip out anything not related to libxslt, so py-libxml2 doesn't conflict
+ # with py-libxml2
+ cd ${destroot}
+ fs-traverse file . {
+ if {[file isfile ${file}]} {
+ if {![string match "*xslt*" ${file}]} {
+ file delete ${file}
+ }
+ }
+ }
+}
+
+livecheck.check md5
+livecheck.url ftp://xmlsoft.org/libxml2/python/
+livecheck.md5 a2cc31311f1b3fb52a08cf1056efda11
Added: trunk/dports/python/py-libxslt/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-libxslt/files/patch-setup.py.diff (rev 0)
+++ trunk/dports/python/py-libxslt/files/patch-setup.py.diff 2007-05-16 12:46:32 UTC (rev 25246)
@@ -0,0 +1,24 @@
+--- setup.py 2005-09-04 19:12:47.000000000 -0400
++++ setup.py.new 2007-05-16 07:46:02.000000000 -0400
+@@ -56,11 +56,7 @@
+ # - iconv.h
+ # - libxslt/xsltconfig.h
+ includes_dir = [
+-"/usr/include",
+-"/usr/local/include",
+-"/opt/include",
+-os.path.join(ROOT,'include'),
+-HOME
++"/opt/local/include",
+ ];
+
+ xml_includes=""
+@@ -85,7 +81,7 @@
+
+ # those are added in the linker search path for libraries
+ libdirs = [
+-os.path.join(ROOT,'lib'),
++"/opt/local/lib"
+ ]
+
+ xml_files = ["libxml2-api.xml", "libxml2-python-api.xml",
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20070516/af9023f7/attachment.html
More information about the macports-changes
mailing list