[25950] trunk/dports/python/py-libxml2
source_changes at macosforge.org
source_changes at macosforge.org
Thu Jun 7 06:24:36 PDT 2007
Revision: 25950
http://trac.macosforge.org/projects/macports/changeset/25950
Author: sfiera at macports.org
Date: 2007-06-07 06:24:36 -0700 (Thu, 07 Jun 2007)
Log Message:
-----------
Removing hardcoded prefix from patchfile
Modified Paths:
--------------
trunk/dports/python/py-libxml2/Portfile
trunk/dports/python/py-libxml2/files/patch-setup.py.diff
Modified: trunk/dports/python/py-libxml2/Portfile
===================================================================
--- trunk/dports/python/py-libxml2/Portfile 2007-06-07 07:31:14 UTC (rev 25949)
+++ trunk/dports/python/py-libxml2/Portfile 2007-06-07 13:24:36 UTC (rev 25950)
@@ -22,6 +22,10 @@
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
Modified: trunk/dports/python/py-libxml2/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-libxml2/files/patch-setup.py.diff 2007-06-07 07:31:14 UTC (rev 25949)
+++ trunk/dports/python/py-libxml2/files/patch-setup.py.diff 2007-06-07 13:24:36 UTC (rev 25950)
@@ -9,7 +9,7 @@
-"/opt/include",
-os.path.join(ROOT,'include'),
-HOME
-+"/opt/local/include",
++"@PREFIX@/include",
];
xml_includes=""
@@ -18,7 +18,7 @@
# those are added in the linker search path for libraries
libdirs = [
-os.path.join(ROOT,'lib'),
-+"/opt/local/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/20070607/77b6d4bd/attachment.html
More information about the macports-changes
mailing list