[111706] trunk/dports/python/py-shiboken/Portfile

mmoll at macports.org mmoll at macports.org
Sat Sep 28 20:13:44 PDT 2013


Revision: 111706
          https://trac.macports.org/changeset/111706
Author:   mmoll at macports.org
Date:     2013-09-28 20:13:44 -0700 (Sat, 28 Sep 2013)
Log Message:
-----------
py-shiboken: avoid conflicts between subports. closes #40587

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

Modified: trunk/dports/python/py-shiboken/Portfile
===================================================================
--- trunk/dports/python/py-shiboken/Portfile	2013-09-29 02:43:41 UTC (rev 111705)
+++ trunk/dports/python/py-shiboken/Portfile	2013-09-29 03:13:44 UTC (rev 111706)
@@ -7,6 +7,7 @@
 set realname        shiboken
 name                py-${realname}
 version             1.2.1
+revision            1
 python.versions     25 26 27 32 33
 python.default_version 27
 categories-append   devel
@@ -45,7 +46,8 @@
     configure.args-append -DBUILD_TESTS:BOOL=FALSE \
                     -DPYTHON_EXECUTABLE=${python.bin} \
                     -DPYTHON_LIBRARY=${python.lib} \
-                    -DPYTHON_INCLUDE_DIR=${python.include}
+                    -DPYTHON_INCLUDE_DIR=${python.include} \
+                    -DPYTHON_SITE_PACKAGES=${python.pkgd}
     if {${python.version} >= 30} {
         configure.args-append -DUSE_PYTHON3:BOOL=TRUE -DPYTHON3_LIBRARY=${python.lib} -DPYTHON3_INCLUDE_DIR=${python.include}
     }
@@ -53,6 +55,19 @@
     build.target    all
     destroot.cmd    make
     destroot.destdir DESTDIR=${destroot}
+    post-destroot {
+        move ${destroot}${prefix}/bin/shiboken ${destroot}${prefix}/bin/shiboken-${python.branch}
+        move ${destroot}${prefix}/include/shiboken ${destroot}${prefix}/include/shiboken-${python.branch}
+        move ${destroot}${prefix}/share/man/man1/shiboken.1 ${destroot}${prefix}/share/man/man1/shiboken-${python.branch}.1
+        if {${python.version} < 30} {
+            file delete ${destroot}${prefix}/lib/cmake/Shiboken-${version}/ShibokenConfig-python${python.branch}.cmake
+        } else {
+            file delete ${destroot}${prefix}/lib/cmake/Shiboken-${version}/ShibokenConfig.cpython-${python.version}m.cmake
+        }
+        file delete ${destroot}${prefix}/lib/cmake/Shiboken-${version}/ShibokenConfig.cmake
+        file delete ${destroot}${prefix}/lib/cmake/Shiboken-${version}/ShibokenConfigVersion.cmake
+        file delete ${destroot}${prefix}/lib/pkgconfig/shiboken.pc
+    }
 }
 
 if {${name} == ${subport}} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20130928/03606c7f/attachment.html>


More information about the macports-changes mailing list