# -*- 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 # $Id$ PortSystem 1.0 name gnome-sharp2 set my_name gnome-sharp version 2.24.1 categories gnome devel platforms darwin maintainers nomaintainer description Gtk bindings for the Mono .NET Development Framework long_description \ This is the Gtk# toolkit for Mono, an implementation \ of the .NET Development Framework. homepage http://gtk-sharp.sourceforge.net/ master_sites http://go-mono.com/sources/${name}/ distname ${my_name}-${version} checksums md5 408f83f790a5189bcf76ea9299bc6410 \ sha1 22ac47dc6dd1ca6858467b9d53affc84a9308baf \ rmd160 f5de37fde1e01d68b02fd1636222ee9a21a20be3 use_bzip2 yes patchfiles patch-gnome-sharp.dll.config.in.diff depends_build port:pkgconfig depends_lib port:mono \ port:gnome-vfs \ port:libgnomeui \ port:libgnomeprintui \ port:gnome-panel \ port:gtk-sharp2 # mono is not universal universal_variant no post-configure { # TODO This shouldn't be needed, we need to fix Mono dllmap library path. fs-traverse {f} ${worksrcpath} { if {[string match *.dll.config ${f}]} { reinplace -E "s|(target=\")|\\1${prefix}/lib/|" ${f} } } reinplace "s/libgtk-x11-2\\.0\\.0\\.dylib/[glob -tail -path $prefix/lib/ libgtk-*-2.0.0.dylib]/" \ $worksrcpath/gnome/gnome-sharp.dll.config # http://mono.1490590.n4.nabble.com/gnome-sharp-compilation-error-td3848979.html reinplace "/^EXTRA_TARGETS/s/TestXfer.exe//" \ $worksrcpath/sample/gnomevfs/Makefile } variant no_x11 { pre-fetch { if {[file exists ${prefix}/lib/pkgconfig/gtk+-x11-2.0.pc]} { ui_error "Please uninstall or deactivate the gtk2 port and reinstall it by running `port install gtk2 +no_x11`." error "gtk2 must be installed with the no_x11 variant enabled." } } patchfiles-append patch-disable-gnomepanel.diff depends_lib-delete port:gnome-panel } livecheck.type regex livecheck.url http://go-mono.com/sources-stable/ livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)