[27095] trunk/dports/python
source_changes at macosforge.org
source_changes at macosforge.org
Wed Jul 18 13:33:14 PDT 2007
Revision: 27095
http://trac.macosforge.org/projects/macports/changeset/27095
Author: yves at macports.org
Date: 2007-07-18 13:33:13 -0700 (Wed, 18 Jul 2007)
Log Message:
-----------
Create a python25 port for libxml2
Added Paths:
-----------
trunk/dports/python/py25-libxml2/
trunk/dports/python/py25-libxml2/Portfile
trunk/dports/python/py25-libxml2/files/
trunk/dports/python/py25-libxml2/files/patch-setup.py.diff
Added: trunk/dports/python/py25-libxml2/Portfile
===================================================================
--- trunk/dports/python/py25-libxml2/Portfile (rev 0)
+++ trunk/dports/python/py25-libxml2/Portfile 2007-07-18 20:33:13 UTC (rev 27095)
@@ -0,0 +1,46 @@
+# $Id$
+
+PortSystem 1.0
+PortGroup python25 1.0
+
+name py25-libxml2
+version 2.6.21
+categories python textproc
+platforms darwin
+maintainers sfiera at macports.org openmaintainer at macports.org
+description Python bindings for libxml2
+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:libxml2 \
+ port:zlib
+
+build.env LDFLAGS=-L${prefix}/lib
+
+post-patch {
+ reinplace "s|@PREFIX@|$prefix|" ${worksrcpath}/setup.py
+}
+
+post-destroot {
+ # strip out anything related to libxslt, so py-libxml2 doesn't conflict with
+ # py-libxslt
+ cd ${destroot}
+ fs-traverse file . {
+ if {[file isfile ${file}]} {
+ if {[string match "*xslt*" ${file}]} {
+ file delete ${file}
+ }
+ }
+ }
+ xinstall -m 644 -W ${worksrcpath} README TODO \
+ ${destroot}${prefix}/share/doc/${name}
+}
+
+livecheck.check md5
+livecheck.url ftp://xmlsoft.org/libxml2/python/
+livecheck.md5 a2cc31311f1b3fb52a08cf1056efda11
Property changes on: trunk/dports/python/py25-libxml2/Portfile
___________________________________________________________________
Name: svn:keywords
+ Id
Name: svn:eol-style
+ native
Added: trunk/dports/python/py25-libxml2/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py25-libxml2/files/patch-setup.py.diff (rev 0)
+++ trunk/dports/python/py25-libxml2/files/patch-setup.py.diff 2007-07-18 20:33:13 UTC (rev 27095)
@@ -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
++"@PREFIX@/include",
+ ];
+
+ xml_includes=""
+@@ -85,7 +81,7 @@
+
+ # those are added in the linker search path for libraries
+ libdirs = [
+-os.path.join(ROOT,'lib'),
++"@PREFIX@/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/20070718/8e8bb182/attachment.html
More information about the macports-changes
mailing list