source: trunk/dports/gnome/gobject-introspection/Portfile

Last change on this file was 153226, checked in by devans@…, 10 months ago

gobject-introspection: update to version 1.50.0.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.5 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 153226 2016-09-27 16:09:50Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           active_variants 1.1
6
7name                gobject-introspection
8version             1.50.0
9set branch          [join [lrange [split ${version} .] 0 1] .]
10categories          gnome
11platforms           darwin
12# library under LGPL-2+, tools under GPL-2+
13license             {LGPL GPL-2+}
14maintainers         juanrgar devans openmaintainer
15description         GObject Introspection
16long_description    Gobject Introspection acts as a bridge between low-level C+GObject code and \
17                    a managed runtime (JavaScript, Python, Java, Lua, .NET, Scheme, etc.).
18
19homepage            https://wiki.gnome.org/Projects/GObjectIntrospection
20master_sites        gnome:sources/${name}/${branch}/
21use_xz              yes
22
23checksums           rmd160  d2f07bcb3bdb73b09fb59b9d4ced7a7f12660c41 \
24                    sha256  1c6597c666f543c70ef3d7c893ab052968afae620efdc080c36657f4226337c5
25
26depends_build       port:pkgconfig
27
28depends_lib         path:lib/pkgconfig/cairo.pc:cairo \
29                    path:lib/pkgconfig/glib-2.0.pc:glib2 \
30                    port:libffi \
31                    port:py27-mako
32
33depends_run         bin:glibtool:libtool
34
35patchfiles          no-env-shebang.patch
36
37post-patch {
38    reinplace "s|'cc'|'${configure.cc}'|g" ${worksrcpath}/giscanner/sourcescanner.py
39    reinplace "s|'gcc'|'${configure.cc}'|g" ${worksrcpath}/giscanner/dumper.py
40    reinplace "s|libcairo-gobject.2.dylib|${prefix}/lib/libcairo-gobject.2.dylib|g" ${worksrcpath}/configure
41}
42
43configure.python    ${prefix}/bin/python2.7
44
45# GObject introspection doesn't build with tiger's make, #32358
46platform darwin 8 {
47    depends_build-append    port:gmake
48    build.cmd               ${prefix}/bin/gmake
49}
50
51build.args          CC="${configure.cc} ${configure.cc_archflags}" V=1
52
53# gobject-introspection needs to be aware whether it was compiled against python +ucs4, see #35603
54variant python_ucs4 description {Build against Python with +ucs4} {
55    require_active_variants python27 ucs4
56}
57
58if {![variant_isset python_ucs4]} {
59    pre-configure {
60        if {![active_variants python27 "" ucs4]} {
61            error "You have python installed with the +ucs4 variant. Please build ${name} with +python_ucs4"
62        }
63    }
64}
65
66if {![catch {set result [active_variants python27 ucs4]}]} {
67    if {$result} {
68        default_variants +python_ucs4
69    }
70}
71
72livecheck.type      gnome
Note: See TracBrowser for help on using the repository browser.