Gtk-sharp2 version 2.12.9 - How to Download and Install on Mac OS X
Sunday the 22nd of November, 2009

    gtk-sharp2  most recent diff


    version 2.12.9

      View the most recent changes for the gtk-sharp2 port at: gtk-sharp2.darwinports.com/diff
      Scroll down toward the bottom of the page to get installation instructions for gtk-sharp2.
      The raw portfile for gtk-sharp2 2.12.9 is located here:
      http://gtk-sharp2.darwinports.com/dports/x11/gtk-sharp2/Portfile
      Find related portfiles with the unique DarwinPorts.com search feature.
      Check for any related Fink projects here: pdb.finkproject.org/pdb/package.php/gtk-sharp2


      # -*- 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
      The gtk-sharp2 Portfile 57375 2009-09-10 08:16:41Z ryandesign macports.org $

      PortSystem 1.0

      Name: gtk-sharp2
      set my_name gtk-sharp
      Version: 2.12.9
      set branch [join [lrange [split ${version} .] 0 1] ""]
      Category: x11 devel
      Platform: darwin
      Maintainers: nox openmaintainer
      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/${my_name}${branch}/
      distname ${my_name}-${version}

      Checksums: md5 2619f6cbba514f10582f8961ed84063b sha1 a218d10ade40cb84155c570b94f09a76ed79f0d9 rmd160 3cc5b9041e4abddc62f4f329cfff2bd1c9232463

      use_bzip2 yes

      Patch Files: patch-gdk-sharp.dll.config.in.diff patch-glade-sharp.dll.config.in.diff patch-glib-sharp.dll.config.in.diff patch-gtk-sharp.dll.config.in.diff patch-pango-sharp.dll.config.in.diff

      depends_lib port:mono path:lib/pkgconfig/glib-2.0.pc:glib2 port:atk path:lib/pkgconfig/pango.pc:pango port:gtk2 port:libglade2

      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/gtk/gtk-sharp.dll.config

      reinplace "s/libgdk-x11-2\\.0\\.0\\.dylib/[glob -tail -path $prefix/lib/ libgdk-*-2.0.0.dylib]/" $worksrcpath/gdk/gdk-sharp.dll.config $worksrcpath/gtkdotnet/gtk-dotnet.dll.config
      }

      use_parallel_build no

      post-destroot {
      set docdir ${prefix}/share/doc/${my_name}-${version}
      xinstall -d ${destroot}${docdir}
      xinstall -m 644 -W ${worksrcpath} AUTHORS COPYING README README.generator ${destroot}${docdir}
      }

      Variant: debug description {Enable debug build} {
      configure.args-append --enable-debug
      }

      livecheck.type regex
      livecheck.url http://go-mono.com/sources-stable/
      livecheck.regex ${my_name}-(\\d+(?:\\.\\d+)*)

    If you haven't already installed Darwin Ports, you can find easy instructions for doing so at the main Darwin Ports page.

    Once Darwin Ports has been installed, in a terminal window and while online, type the following and hit return:


      %  cd /opt/local/bin/portslocation/dports/gtk-sharp2
      % sudo port install gtk-sharp2
      Password:
    You will then be prompted for your root password, which you should enter. You may have to wait for a few minutes while the software is retrieved from the network and installed for you. Y ou should see something that looks similar to:

      ---> Fetching gtk-sharp2
      ---> Verifying checksum for gtk-sharp2
      ---> Extracting gtk-sharp2
      ---> Configuring gtk-sharp2
      ---> Building gtk-sharp2 with target all
      ---> Staging gtk-sharp2 into destroot
      ---> Installing gtk-sharp2
    - Make sure that you do not close the terminal window while Darwin Ports is working. Once the software has been installed, you can find further information about using gtk-sharp2 with these commands:
      %  man gtk-sharp2
      % apropos gtk-sharp2
      % which gtk-sharp2
      % locate gtk-sharp2

     Where to find more information:

    Darwin Ports



    Lightbox this page.