[25951] trunk/dports/python/py-libxslt

source_changes at macosforge.org source_changes at macosforge.org
Thu Jun 7 06:27:19 PDT 2007


Revision: 25951
          http://trac.macosforge.org/projects/macports/changeset/25951
Author:   sfiera at macports.org
Date:     2007-06-07 06:27:19 -0700 (Thu, 07 Jun 2007)

Log Message:
-----------
Removing hardcoded prefix from patchfile

Modified Paths:
--------------
    trunk/dports/python/py-libxslt/Portfile
    trunk/dports/python/py-libxslt/files/patch-setup.py.diff

Modified: trunk/dports/python/py-libxslt/Portfile
===================================================================
--- trunk/dports/python/py-libxslt/Portfile	2007-06-07 13:24:36 UTC (rev 25950)
+++ trunk/dports/python/py-libxslt/Portfile	2007-06-07 13:27:19 UTC (rev 25951)
@@ -23,6 +23,10 @@
 
 build.env               LDFLAGS=-L${prefix}/lib
 
+post-patch {
+  reinplace "s|@PREFIX@|$prefix|" ${worksrcpath}/setup.py
+}
+
 post-destroot {
   # strip out anything not related to libxslt, so py-libxml2 doesn't conflict
   # with py-libxml2

Modified: trunk/dports/python/py-libxslt/files/patch-setup.py.diff
===================================================================
--- trunk/dports/python/py-libxslt/files/patch-setup.py.diff	2007-06-07 13:24:36 UTC (rev 25950)
+++ trunk/dports/python/py-libxslt/files/patch-setup.py.diff	2007-06-07 13:27:19 UTC (rev 25951)
@@ -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/b5f0310c/attachment.html


More information about the macports-changes mailing list