source: trunk/dports/gnome/gnome-sharp2/Portfile

Last change on this file was 121926, checked in by mojca@…, 3 years ago

gnome-sharp2: whitespace only

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 121926 2014-07-11 19:05:46Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                gnome-sharp2
7set my_name         gnome-sharp
8version             2.24.2
9revision            1
10set branch          [join [lrange [split ${version} .] 0 1] .]
11categories          gnome devel
12license             LGPL-2
13platforms           darwin
14maintainers         nomaintainer
15description         Gtk bindings for the Mono .NET Development Framework
16
17long_description    This is the Gtk# toolkit for Mono, an implementation \
18                    of the .NET Development Framework.
19
20homepage            http://www.mono-project.com/GtkSharp
21master_sites        gnome:sources/${my_name}/${branch}
22distname            ${my_name}-${version}
23
24use_bzip2           yes
25
26checksums           rmd160  7cd495debeb92a8517c809f7e9c8d9803e16038c \
27                    sha256  122b1e03966d63ec3389decf5440fb94285907d1b6be48352dcf6aca292cf7b0
28
29# Errors creating policy.*.dll multiple times in parallel
30use_parallel_build  no
31
32patchfiles          patch-gnome-sharp.dll.config.in.diff
33
34depends_build       port:pkgconfig
35
36depends_lib         port:mono \
37                    port:gtk-sharp2 \
38                    port:libart_lgpl \
39                    port:gnome-vfs \
40                    port:libgnomecanvas \
41                    port:libgnomeui
42
43# mono is not universal
44universal_variant   no
45
46post-configure {
47    # TODO This shouldn't be needed, we need to fix Mono dllmap library path.
48    fs-traverse {f} ${worksrcpath} {
49        if {[string match *.dll.config ${f}]} {
50            reinplace -E "s|(target=\")|\\1${prefix}/lib/|" ${f}
51        }
52    }
53
54    reinplace "s/libgtk-x11-2\\.0\\.0\\.dylib/[glob -tail -path $prefix/lib/ libgtk-*-2.0.0.dylib]/" \
55        $worksrcpath/gnome/gnome-sharp.dll.config
56
57    # http://mono.1490590.n4.nabble.com/gnome-sharp-compilation-error-td3848979.html
58    reinplace "/^EXTRA_TARGETS/s/TestXfer.exe//" \
59        $worksrcpath/sample/gnomevfs/Makefile
60}
61
62variant x11 {}
63
64default_variants    +x11
65
66if {![variant_isset x11]} {
67    pre-fetch {
68        if {[file exists ${prefix}/lib/pkgconfig/gtk+-x11-2.0.pc]} {
69            ui_error "Please uninstall or deactivate the gtk2 port and reinstall it by running `port install gtk2 +quartz`."
70            error "gtk2 must be installed with the quartz variant enabled."
71        }
72    }
73}
74
75livecheck.type      gnome
76livecheck.name      ${my_name}
Note: See TracBrowser for help on using the repository browser.