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

mmoll at macports.org mmoll at macports.org
Sat Jul 5 10:48:12 PDT 2014


Revision: 121727
          https://trac.macports.org/changeset/121727
Author:   mmoll at macports.org
Date:     2014-07-05 10:48:12 -0700 (Sat, 05 Jul 2014)
Log Message:
-----------
py-shiboken: install pkgconfig and cmake files

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

Modified: trunk/dports/python/py-shiboken/Portfile
===================================================================
--- trunk/dports/python/py-shiboken/Portfile	2014-07-05 16:29:41 UTC (rev 121726)
+++ trunk/dports/python/py-shiboken/Portfile	2014-07-05 17:48:12 UTC (rev 121727)
@@ -7,7 +7,7 @@
 set realname        shiboken
 name                py-${realname}
 version             1.2.2
-revision            1
+revision            2
 python.versions     26 27 32 33 34
 python.default_version 27
 categories-append   devel
@@ -34,6 +34,10 @@
         system "mv -v '${worksrcpath}/generator/shiboken' '${worksrcpath}/generator/shiboken.d'"
         reinplace "s|3.2 3.1 3.0|${python.branch}|g" ${worksrcpath}/cmake/Modules/FindPython3Libs.cmake
         reinplace "s|NAMES python3.2mu python3.2m python3.2u python3.2 python3.1 python3.0 python3|NAMES python${python.branch}|g" ${worksrcpath}/cmake/Modules/FindPython3Interp.cmake
+        reinplace "s|@LIB_INSTALL_DIR@|${python.prefix}/lib|g" ${worksrcpath}/data/ShibokenConfig.cmake.in ${worksrcpath}/data/ShibokenConfig-spec.cmake.in
+        reinplace "s|set(shiboken_SUFFIX \"-\$\{shiboken_MAJOR_VERSION\}.\$\{shiboken_MINOR_VERSION\}\")|set(shiboken_SUFFIX \"-${python.branch}\")|g" ${worksrcpath}/libshiboken/CMakeLists.txt
+        reinplace "s|\$\{shibokengenerator_BINARY_DIR\}/shiboken|\$\{shibokengenerator_BINARY_DIR\}/shiboken-${python.branch}|g" ${worksrcpath}/shibokenmodule/CMakeLists.txt
+        reinplace "s|include/shiboken|include/shiboken-${python.branch}|g;s|/@shiboken_SUFFIX@||g" ${worksrcpath}/data/shiboken.pc.in
     }
 
     patchfiles          default_visibility.patch \
@@ -45,6 +49,8 @@
                         port:sparsehash
     use_configure   yes
     configure.args-append -DBUILD_TESTS:BOOL=FALSE \
+                    -DENABLE_VERSION_SUFFIX=ON \
+                    -Dshiboken_SUFFIX="-${python.branch}" \
                     -DPYTHON_EXECUTABLE=${python.bin} \
                     -DPYTHON_LIBRARIES=${python.lib} \
                     -DPYTHON_INCLUDE_DIR=${python.include} \
@@ -58,17 +64,9 @@
     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
+        move ${destroot}${prefix}/lib/cmake ${destroot}${python.prefix}/lib/cmake
+        move ${destroot}${prefix}/lib/pkgconfig ${destroot}${python.prefix}/lib/pkgconfig
     }
 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140705/d0d5bc54/attachment.html>


More information about the macports-changes mailing list