[39333] trunk/dports/net/gajim/Portfile

rene at macports.org rene at macports.org
Mon Aug 18 03:41:20 PDT 2008


Revision: 39333
          http://trac.macosforge.org/projects/macports/changeset/39333
Author:   rene at macports.org
Date:     2008-08-18 03:41:19 -0700 (Mon, 18 Aug 2008)
Log Message:
-----------
net/gajim: Use python25-config to get Python includes.

Modified Paths:
--------------
    trunk/dports/net/gajim/Portfile

Modified: trunk/dports/net/gajim/Portfile
===================================================================
--- trunk/dports/net/gajim/Portfile	2008-08-18 10:35:43 UTC (rev 39332)
+++ trunk/dports/net/gajim/Portfile	2008-08-18 10:41:19 UTC (rev 39333)
@@ -25,12 +25,13 @@
                     rmd160 77ddba3f06c1b4dc80c0c3efe1951cbb0fac07e0
 
 post-patch {
+    set py25fwpath [ exec ${prefix}/bin/python2.5-config --includes ]
     # Force usage of MacPorts python
     reinplace "s|@PYTHON@|${prefix}/bin/python2.5|" \
         ${worksrcpath}/scripts/gajim-remote.in
     reinplace "s|@PYTHON@|${prefix}/bin/python2.5|" \
         ${worksrcpath}/scripts/gajim.in
-    reinplace "s|\$(PYTHON_INCLUDES)|-I${prefix}/Library/Frameworks/Python.framework/Versions/2.5/include/python2.5|" \
+    reinplace "s|\$(PYTHON_INCLUDES)|${py25fwpath}|" \
         ${worksrcpath}/src/Makefile.in
 
 }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080818/e43875d9/attachment.html 


More information about the macports-changes mailing list