[129656] trunk/dports/python/py-orbit

jmr at macports.org jmr at macports.org
Wed Dec 17 22:53:49 PST 2014


Revision: 129656
          https://trac.macports.org/changeset/129656
Author:   jmr at macports.org
Date:     2014-12-17 22:53:49 -0800 (Wed, 17 Dec 2014)
Log Message:
-----------
unify py*-orbit and remove py24 and py25 versions, part 2

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

Added Paths:
-----------
    trunk/dports/python/py-orbit/files/

Modified: trunk/dports/python/py-orbit/Portfile
===================================================================
--- trunk/dports/python/py-orbit/Portfile	2014-12-18 06:53:34 UTC (rev 129655)
+++ trunk/dports/python/py-orbit/Portfile	2014-12-18 06:53:49 UTC (rev 129656)
@@ -2,37 +2,74 @@
 
 PortSystem 1.0
 
-name                py-orbit
-version             2.24.0
-categories          python gnome
-license             LGPL-2.1+
-platforms           darwin
-maintainers         nomaintainer
-description         Python binding for the ORBit2 CORBA ORB - Default branch.
-long_description    PyORBit is a Python binding for the ORBit2 CORBA ORB. It \
-                    was developped to suit the needs of the bonobo bindings \
-                    in GNOME-Python, but is usable for other purposes as well. \
-                    It aims to follow the standard Python language mapping for \
-                    CORBA. It can generate stubs at runtime from typelibs, IDL \
-                    files, or by introspecting remote objects using ORBit2's \
-                    IModule typelib capabilities.
+name            py-orbit
+set my_name     pyorbit
+version         2.24.0
+set branch      [join [lrange [split $version .] 0 1] .]
+categories      python gnome
+license         LGPL-2.1+
+platforms       darwin
+maintainers     nomaintainer
+description     Python binding for the ORBit2 CORBA ORB - Default branch.
+long_description PyORBit is a Python binding for the ORBit2 CORBA ORB. It \
+                was developped to suit the needs of the bonobo bindings \
+                in GNOME-Python, but is usable for other purposes as well. \
+                It aims to follow the standard Python language mapping for \
+                CORBA. It can generate stubs at runtime from typelibs, IDL \
+                files, or by introspecting remote objects using ORBit2's \
+                IModule typelib capabilities.
 
-homepage            http://www.pygtk.org/
-master_sites        gnome:sources/pyorbit/[join [lrange [split $version .] 0 1] .]/
-use_bzip2           yes
-distname            pyorbit-${version}
-checksums           md5     574593815e75ee6e98062c75d6d1581f \
-                    sha1    f9877ce9672ed3c3d001b86924f1b6514a79efc9 \
-                    rmd160  55aa1c3ac0739d398d8e9bbda93ef36f7c659360
+homepage        http://www.pygtk.org/
+master_sites    gnome:sources/${my_name}/${branch}/
+use_bzip2       yes
+distname        ${my_name}-${version}
 
-depends_build       port:pkgconfig
-depends_lib         port:python24 \
-                    port:orbit2
+checksums       md5     574593815e75ee6e98062c75d6d1581f \
+                sha1    f9877ce9672ed3c3d001b86924f1b6514a79efc9 \
+                rmd160  55aa1c3ac0739d398d8e9bbda93ef36f7c659360
 
-configure.python    ${prefix}/bin/python2.4
+subport py27-orbit {
+    set pyversion 2.7
+    depends_lib-append  port:python27
+}
+subport py26-orbit {
+    set pyversion 2.6
+    depends_lib-append  port:python26
+}
 
-build.args          PYTHON_LDFLAGS= PYTHON_LIBS=
+if {$subport ne $name} {
+    depends_build   port:pkgconfig
+    depends_lib-append     port:orbit2
 
-livecheck.type      md5
-livecheck.url       ftp://ftp.gnome.org/pub/GNOME/sources/pyorbit/
-livecheck.md5       c44aad7204b0cc64e524610a82b97340
+    set python.prefix   ${frameworks_dir}/Python.framework/Versions/${pyversion}
+
+    patchfiles      patch-configure.diff
+    post-patch {
+       reinplace "s|@@PYTHON_PREFIX@@|${python.prefix}|g" ${worksrcpath}/configure
+    }
+
+    configure.args  --includedir=${python.prefix}/include/python${pyversion}
+    configure.python ${prefix}/bin/python${pyversion}
+
+    build.args      PYTHON_LDFLAGS= PYTHON_LIBS=
+
+    post-destroot {
+       move ${destroot}${prefix}/lib/pkgconfig ${destroot}${python.prefix}/lib
+    }
+    livecheck.type  none
+} else {
+    livecheck.type  gnome
+    livecheck.name  ${my_name}
+
+    # py-orbit was previously for python 2.4
+    revision            1
+    replaced_by         py27-orbit
+    depends_lib         port:py27-orbit
+    supported_archs     noarch
+    use_configure       no
+    build               {}
+    destroot {
+        xinstall -d ${destroot}${prefix}/share/doc/${name}
+        system "echo This port is a stub. > ${destroot}${prefix}/share/doc/${name}/README"
+    }
+}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20141217/056b08e5/attachment.html>


More information about the macports-changes mailing list