source: trunk/dports/python/py-orbit/Portfile

Last change on this file was 129656, checked in by jmr@…, 3 years ago

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

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# $Id: Portfile 129656 2014-12-18 06:53:49Z ryandesign@macports.org $
2
3PortSystem 1.0
4
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.
21
22homepage        http://www.pygtk.org/
23master_sites    gnome:sources/${my_name}/${branch}/
24use_bzip2       yes
25distname        ${my_name}-${version}
26
27checksums       md5     574593815e75ee6e98062c75d6d1581f \
28                sha1    f9877ce9672ed3c3d001b86924f1b6514a79efc9 \
29                rmd160  55aa1c3ac0739d398d8e9bbda93ef36f7c659360
30
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}
39
40if {$subport ne $name} {
41    depends_build   port:pkgconfig
42    depends_lib-append     port:orbit2
43
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 TracBrowser for help on using the repository browser.