[44366] trunk/dports/python/py-cairo/Portfile

mcalhoun at macports.org mcalhoun at macports.org
Fri Dec 26 23:24:23 PST 2008


Revision: 44366
          http://trac.macports.org/changeset/44366
Author:   mcalhoun at macports.org
Date:     2008-12-26 23:24:23 -0800 (Fri, 26 Dec 2008)
Log Message:
-----------
py-cairo: Avoid conflict with py25-cairo.
Partially fixes #17778.

Modified Paths:
--------------
    trunk/dports/python/py-cairo/Portfile

Modified: trunk/dports/python/py-cairo/Portfile
===================================================================
--- trunk/dports/python/py-cairo/Portfile	2008-12-27 07:19:27 UTC (rev 44365)
+++ trunk/dports/python/py-cairo/Portfile	2008-12-27 07:24:23 UTC (rev 44366)
@@ -4,8 +4,9 @@
 
 name            py-cairo
 set my_name     pycairo
+# pycairo 1.6.4 does not support Python 2.4
 version         1.4.12
-revision        2
+revision        3
 categories      python x11
 platforms       darwin
 maintainers     nomaintainer
@@ -29,6 +30,10 @@
 
 configure.python    ${prefix}/bin/python2.4
 
+set python_prefix  ${frameworks_dir}/Python.framework/Versions/2.4
+# change default includedir to avoid conflict with other python pycairo packages
+configure.args-append      --includedir=${prefix}/include/python2.4
+
 platform darwin 9 { 
     post-patch { 
         reinplace "s| -export-symbols-regex.*||g" ${worksrcpath}/cairo/Makefile.in 
@@ -40,8 +45,12 @@
     xinstall -d ${destroot}${docdir}
     xinstall -m 0644 -W ${worksrcpath} AUTHORS COPYING NEWS doc/NOTES doc/FAQ README \
         ${destroot}${docdir}
+
+    # avoid conflict with other python pycairo packages
+    # pkg-config based ports will have to set configure.pkg_config_path to find this package
+    xinstall -d -m 0755 ${destroot}${python_prefix}/lib
+    move ${destroot}${prefix}/lib/pkgconfig ${destroot}${python_prefix}/lib
 }
 
 livecheck.check regex
 livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081226/dc5a1473/attachment.html>


More information about the macports-changes mailing list