[90041] trunk/dports/python

macsforever2000 at macports.org macsforever2000 at macports.org
Sun Feb 19 21:02:29 PST 2012


Revision: 90041
          http://trac.macports.org/changeset/90041
Author:   macsforever2000 at macports.org
Date:     2012-02-19 21:02:26 -0800 (Sun, 19 Feb 2012)
Log Message:
-----------
py-omniORBpy: unify and update to version 3.6. (#33241)

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

Removed Paths:
-------------
    trunk/dports/python/py25-omniORBpy/
    trunk/dports/python/py26-omniORBpy/

Modified: trunk/dports/python/py-omniORBpy/Portfile
===================================================================
--- trunk/dports/python/py-omniORBpy/Portfile	2012-02-20 04:44:18 UTC (rev 90040)
+++ trunk/dports/python/py-omniORBpy/Portfile	2012-02-20 05:02:26 UTC (rev 90041)
@@ -2,9 +2,10 @@
 # $Id$
 
 PortSystem          1.0
+PortGroup           python 1.0
 
 name                py-omniORBpy
-version             3.4
+version             3.6
 categories          python devel
 maintainers         stromnov openmaintainer
 description         Python bindings for omniORB
@@ -16,22 +17,45 @@
 
 distname            omniORBpy-${version}
 
-checksums           md5     d054e99c89c20f86927c52010e9e7449 \
-                    sha1    e598bd25289d0a2a09da4c7241513202c8b9adb4 \
-                    rmd160  5b389a31907510800ef0913e2e3855038e6a4cf9
+use_bzip2           yes
+checksums           md5     a7ab4789b913313f18a1171ff7a140b7 \
+                    sha1    2def5ded7cd30e8d298113ed450b7bd09eaaf26f \
+                    rmd160  96b73cfcac7f2b8df2894c93b3e422bd85412251
 
-configure.python    ${prefix}/bin/python2.4
+# Use the python subports feature but omniORBpy uses make
+# rather than setup.py for building since there are compiled libraries.
+# So the build procedure must unravel the python PortGroup settings
+# and revert to values compatible with a make environment.
+# Ugly but it works.
 
-depends_lib         port:omniORB \
-                    port:python24
+python.versions     24 25 26 27
+python.default_version 24
 
-patchfiles          patch-dir.mk
+if {$subport != $name} {
+    depends_lib         port:omniORB \
+                        port:python${python.version}
 
-variant ssl description {Enable SSL support} {
-    configure.args-append   --with-openssl
-    depends_lib-append      port:openssl
+    patchfiles          patch-dir.mk
+
+    use_configure       yes
+
+    build.type          gnu
+    build.cmd           make
+    build.target        all
+    build.args          {}
+
+    destroot.cmd        ${build.cmd}
+    destroot.target     install
+    destroot.args       {}
+    destroot.destdir    DESTDIR=${destroot}
+
+    variant ssl description {Enable SSL support} {
+        configure.args-append   --with-openssl
+        depends_lib-append      port:openssl
+    }
+    livecheck.type      none
+} else {
+    livecheck.type      regex
+    livecheck.url       http://omniorb.sourceforge.net/releases/
+    livecheck.regex     "omniORBpy-(\\d+(?:\\.\\d+)*)${extract.suffix}"
 }
-
-livecheck.type      regex
-livecheck.url       http://omniorb.sourceforge.net/releases/
-livecheck.regex     "omniORBpy-(\\d+(?:\\.\\d+)*)${extract.suffix}"
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20120219/eb9b18ca/attachment.html>


More information about the macports-changes mailing list