Changeset 129656


Ignore:
Timestamp:
Dec 18, 2014, 6:53:49 AM (4 years ago)
Author:
jmr@…
Message:

unify py*-orbit and remove py24 and py25 versions, part 2

Location:
trunk/dports/python/py-orbit
Files:
1 edited
1 copied

Legend:

Unmodified
Added
Removed
  • trunk/dports/python/py-orbit/Portfile

    r85525 r129656  
    33PortSystem 1.0
    44
    5 name                py-orbit
    6 version             2.24.0
    7 categories          python gnome
    8 license             LGPL-2.1+
    9 platforms           darwin
    10 maintainers         nomaintainer
    11 description         Python binding for the ORBit2 CORBA ORB - Default branch.
    12 long_description    PyORBit is a Python binding for the ORBit2 CORBA ORB. It \
    13                     was developped to suit the needs of the bonobo bindings \
    14                     in GNOME-Python, but is usable for other purposes as well. \
    15                     It aims to follow the standard Python language mapping for \
    16                     CORBA. It can generate stubs at runtime from typelibs, IDL \
    17                     files, or by introspecting remote objects using ORBit2's \
    18                     IModule typelib capabilities.
     5name            py-orbit
     6set my_name     pyorbit
     7version         2.24.0
     8set branch      [join [lrange [split $version .] 0 1] .]
     9categories      python gnome
     10license         LGPL-2.1+
     11platforms       darwin
     12maintainers     nomaintainer
     13description     Python binding for the ORBit2 CORBA ORB - Default branch.
     14long_description PyORBit is a Python binding for the ORBit2 CORBA ORB. It \
     15                was developped to suit the needs of the bonobo bindings \
     16                in GNOME-Python, but is usable for other purposes as well. \
     17                It aims to follow the standard Python language mapping for \
     18                CORBA. It can generate stubs at runtime from typelibs, IDL \
     19                files, or by introspecting remote objects using ORBit2's \
     20                IModule typelib capabilities.
    1921
    20 homepage            http://www.pygtk.org/
    21 master_sites        gnome:sources/pyorbit/[join [lrange [split $version .] 0 1] .]/
    22 use_bzip2           yes
    23 distname            pyorbit-${version}
    24 checksums           md5     574593815e75ee6e98062c75d6d1581f \
    25                     sha1    f9877ce9672ed3c3d001b86924f1b6514a79efc9 \
    26                     rmd160  55aa1c3ac0739d398d8e9bbda93ef36f7c659360
     22homepage        http://www.pygtk.org/
     23master_sites    gnome:sources/${my_name}/${branch}/
     24use_bzip2       yes
     25distname        ${my_name}-${version}
    2726
    28 depends_build       port:pkgconfig
    29 depends_lib         port:python24 \
    30                     port:orbit2
     27checksums       md5     574593815e75ee6e98062c75d6d1581f \
     28                sha1    f9877ce9672ed3c3d001b86924f1b6514a79efc9 \
     29                rmd160  55aa1c3ac0739d398d8e9bbda93ef36f7c659360
    3130
    32 configure.python    ${prefix}/bin/python2.4
     31subport py27-orbit {
     32    set pyversion 2.7
     33    depends_lib-append  port:python27
     34}
     35subport py26-orbit {
     36    set pyversion 2.6
     37    depends_lib-append  port:python26
     38}
    3339
    34 build.args          PYTHON_LDFLAGS= PYTHON_LIBS=
     40if {$subport ne $name} {
     41    depends_build   port:pkgconfig
     42    depends_lib-append     port:orbit2
    3543
    36 livecheck.type      md5
    37 livecheck.url       ftp://ftp.gnome.org/pub/GNOME/sources/pyorbit/
    38 livecheck.md5       c44aad7204b0cc64e524610a82b97340
     44    set python.prefix   ${frameworks_dir}/Python.framework/Versions/${pyversion}
     45
     46    patchfiles      patch-configure.diff
     47    post-patch {
     48       reinplace "s|@@PYTHON_PREFIX@@|${python.prefix}|g" ${worksrcpath}/configure
     49    }
     50
     51    configure.args  --includedir=${python.prefix}/include/python${pyversion}
     52    configure.python ${prefix}/bin/python${pyversion}
     53
     54    build.args      PYTHON_LDFLAGS= PYTHON_LIBS=
     55
     56    post-destroot {
     57       move ${destroot}${prefix}/lib/pkgconfig ${destroot}${python.prefix}/lib
     58    }
     59    livecheck.type  none
     60} else {
     61    livecheck.type  gnome
     62    livecheck.name  ${my_name}
     63
     64    # py-orbit was previously for python 2.4
     65    revision            1
     66    replaced_by         py27-orbit
     67    depends_lib         port:py27-orbit
     68    supported_archs     noarch
     69    use_configure       no
     70    build               {}
     71    destroot {
     72        xinstall -d ${destroot}${prefix}/share/doc/${name}
     73        system "echo This port is a stub. > ${destroot}${prefix}/share/doc/${name}/README"
     74    }
     75}
Note: See TracChangeset for help on using the changeset viewer.