source: trunk/dports/ruby/rb-gtk2/Portfile

Last change on this file was 91955, checked in by kimuraw@…, 5 years ago

ruby/rb-gnome: upgrade to 1.1.3

ruby-gnome2 modules -

rb-glib2, rb-pango, rb-atk, rb-gtk2, rb-rsvg, rb-poppler,
rb-gtksourceview2, rb-gstreamer and rb-vte.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1# $Id: Portfile 91955 2012-04-14 00:36:07Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               muniversal 1.0
5PortGroup               ruby 1.0
6
7ruby.setup              {gtk2 ruby-gnome2} 1.1.3 extconf.rb \
8                                { gtk2/README gtk2/sample gdk_pixbuf2/sample } \
9                                sourceforge:ruby-gnome2
10revision                0
11maintainers             kimuraw
12platforms               darwin
13description             Ruby/GTK2 is a Ruby binding of GTK+-2.0.x. \
14                                Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.
15long_description        Ruby/GTK2 is a Ruby binding of GTK+-2.0.x. \
16                                Ruby/GdkPixbuf2 is a Ruby binding of GdkPixbuf-2.x.
17license                 LGPL-2
18checksums               md5 8fa5a2b35f45df722df599fb0765b069 \
19                                rmd160 7f78bd36632bf5547000a92304cefd368da9ad98 \
20                                sha1 f99af53f020136a1e1162e97c792343cd97a9a45
21# generate glib-enum-types.h at glib/src and glib/pango
22pre-configure   {
23        system "${ruby.bin} -C ${worksrcpath} extconf.rb --strict glib2 pango"
24}
25configure.env   RUBYOPT=-rvendor-specific
26configure.args  --strict gtk2 gdk_pixbuf2
27depends_lib-append      port:gtk2 port:rb-pango port:rb-rcairo port:rb-glib2 \
28                                port:rb-atk port:rb-pkg-config
29distname                ${ruby.project}-all-${version}
30
31# run extconf.rb with each arch `ruby'
32use_parallel_build      no
33post-configure {
34        if {[variant_isset universal]} {
35                foreach arch ${universal_archs} {
36                        foreach submod {glib2 pango gtk2 gdk_pixbuf2} {
37                                system "/usr/bin/arch -${arch} ${ruby.bin} -C ${worksrcpath}-${arch}/${submod}/ext/${submod} extconf.rb --vendor"
38                        }
39                }
40        }
41}
42
43## patch-gtk-test-run-test.rb.diff: do not build dependent libraries at testing
44#patchfiles             patch-gtk2-test-run-test.rb.diff
45## Run Test for developer only, the test launches X11.app
46#test.run               yes
47test.cmd                ${ruby.bin}
48test.target             -C gtk2 test/run-test.rb
49
Note: See TracBrowser for help on using the repository browser.