Revision: 75475 http://trac.macports.org/changeset/75475 Author: singingwolfboy@macports.org Date: 2011-01-25 20:22:29 -0800 (Tue, 25 Jan 2011) Log Message: ----------- Re-added gtk3 port, created using svn cp Modified Paths: -------------- trunk/dports/gnome/gtk3/Portfile Added Paths: ----------- trunk/dports/gnome/gtk3/ Removed Paths: ------------- trunk/dports/gnome/gtk3/files/ Modified: trunk/dports/gnome/gtk3/Portfile =================================================================== --- trunk/dports/x11/gtk2/Portfile 2011-01-25 21:13:22 UTC (rev 75465) +++ trunk/dports/gnome/gtk3/Portfile 2011-01-26 04:22:29 UTC (rev 75475) @@ -1,48 +1,50 @@ # -*- 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 -PortGroup archcheck 1.0 -PortGroup muniversal 1.0 -PortGroup xcodeversion 1.0 +PortSystem 1.0 +PortGroup archcheck 1.0 +PortGroup muniversal 1.0 +PortGroup xcodeversion 1.0 -name gtk2 -version 2.22.1 -revision 1 -set branch [join [lrange [split ${version} .] 0 1] .] -categories x11 -maintainers nomaintainer -platforms darwin -description Gimp ToolKit version 2 +name gtk3 +set real_name gtk+ +conflicts gtk2 +version 2.99.2 +set branch [join [lrange [split ${version} .] 0 1] .] +categories gnome x11 +maintainers singingwolfboy openmaintainer +platforms darwin +description GTK+ widget toolkit -long_description \ - GTK+, the Gimp ToolKit, is a library for creating graphical user \ - interfaces for the X Window System. +long_description \ + GTK+ is a highly usable, feature rich toolkit for creating graphical \ + user interfaces which boasts cross platform compatibility and an easy \ + to use API. GTK+ it is written in C, but has bindings to many other \ + popular programming languages such as C++, Python and C# among others. -homepage http://www.gtk.org/ -distname gtk+-${version} -use_bzip2 yes +homepage http://www.gtk.org/ +distname ${real_name}-${version} +use_bzip2 yes -master_sites gnome:sources/gtk+/${branch}/ \ - ftp://ftp.gtk.org/pub/gtk/${branch}/ \ - http://ftp.gtk.org/pub/gtk/${branch}/ +master_sites gnome:sources/gtk+/${branch}/ \ + ftp://ftp.gtk.org/pub/gtk/${branch}/ \ + http://ftp.gtk.org/pub/gtk/${branch}/ minimum_xcodeversions {9 3.1} +checksums md5 e727b2bc0d17182d41ddd90a83285b0e \ + sha1 a62753f17e115c8664ec0f3d25ac9486c1fca2e2 \ + rmd160 cbe8228d2c288b8a2e87a7d273d3876b4a3512c4 -checksums md5 fdce46ba354c155230b7d4090b17f7d9 \ - sha1 c88d8be4aebd6e59d6ca44d57f6acd18e2be1c08 \ - rmd160 f7d5cd312dc982a599e6a834c87c1bc07ff87e2d +depends_build port:pkgconfig -patchfiles patch-gtk-builder-convert.diff +depends_lib port:atk \ + path:lib/pkgconfig/pango.pc:pango \ + port:gdk-pixbuf2 \ + port:gobject-introspection \ + port:glib2-devel -depends_build port:pkgconfig +depends_run port:shared-mime-info -depends_lib port:atk \ - path:lib/pkgconfig/pango.pc:pango \ - port:gdk-pixbuf2 - -depends_run port:shared-mime-info - archcheck.files \ lib/libatk-1.0.dylib \ lib/libintl.dylib \ @@ -50,12 +52,12 @@ lib/libpango-1.0.dylib \ lib/libtiff.dylib -configure.args --enable-static \ - --disable-glibtest \ - --disable-introspection \ - gio_can_sniff=yes +configure.args --enable-static \ + --disable-glibtest \ + --disable-introspection \ + gio_can_sniff=yes -configure.ccache no +configure.ccache no configure.cppflags-append -DX_LOCALE configure.cflags-append -fstrict-aliasing @@ -75,8 +77,8 @@ use_parallel_build yes -test.run yes -test.target check +test.run yes +test.target check post-destroot { set docdir ${prefix}/share/doc/${name} @@ -86,16 +88,16 @@ ui_debug "Creating gtk.immodules..." system "DYLD_LIBRARY_PATH=${destroot}${prefix}/lib \ - ${destroot}${prefix}/bin/gtk-query-immodules-2.0 \ - ${destroot}${prefix}/lib/gtk-2.0/2.10.0/immodules/*.so \ - >${destroot}${prefix}/etc/gtk-2.0/gtk.immodules" - reinplace "s|${destroot}||" ${destroot}${prefix}/etc/gtk-2.0/gtk.immodules + ${destroot}${prefix}/bin/gtk-query-immodules-3.0 \ + ${destroot}${prefix}/lib/gtk-3.0/3.0.0/immodules/*.so \ + >${destroot}${prefix}/etc/gtk-3.0/gtk.immodules" + reinplace "s|${destroot}||" ${destroot}${prefix}/etc/gtk-3.0/gtk.immodules } post-activate { ui_debug "Updating gdk-pixbuf.loaders..." system "${prefix}/bin/gdk-pixbuf-query-loaders \ - >${prefix}/etc/gtk-2.0/gdk-pixbuf.loaders" + >${prefix}/etc/gtk-3.0/gdk-pixbuf.loaders" } platform darwin 8 { @@ -155,7 +157,7 @@ if {${run_arch} eq ""} { ui_error "" - ui_error "gtk2 requires at least one architecture runnable on this" + ui_error "${name} requires at least one architecture runnable on this" ui_error "machine to be able to build universally. Please add at least" ui_error "one of the following architectures to `universal_archs` in" ui_error "\"${prefix}/etc/macports/macports.conf\":" @@ -215,5 +217,5 @@ } livecheck.type regex -livecheck.url ftp://ftp.gnome.org/pub/gnome/sources/gtk+/${branch}/ +livecheck.url ftp://ftp.gnome.org/pub/gnome/sources/${real_name}/${branch}/ livecheck.regex {LATEST-IS-(\d+(?:\.\d+)*)}
participants (1)
-
singingwolfboy@macports.org