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

Last change on this file was 103325, checked in by rmstonecipher@…, 5 years ago

gstreamer 0.10.x ports replaced_by gstreamer010, gstreamer010-[foo] ports, gstreamer 1.x ports added as gstreamer1, gstreamer1-[foo], dependents updated to depend upon gstreamer010, gstreamer010-[foo] (55 modified and new ports in total)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 103325 2013-02-22 03:58:11Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               muniversal 1.0
5PortGroup               ruby 1.0
6
7ruby.setup              {gstreamer ruby-gnome2} 1.1.3 extconf.rb \
8                                { gstreamer/README gstreamer/sample } \
9                                sourceforge:ruby-gnome2
10revision                1
11maintainers             kimuraw
12platforms               darwin
13description             Ruby/GStreamer is a Ruby binding for GStreamer.
14long_description        Ruby/GStreamer is a Ruby binding for GStreamer.
15categories-append       gnome
16license                 LGPL-2
17checksums               md5 8fa5a2b35f45df722df599fb0765b069 \
18                                rmd160 7f78bd36632bf5547000a92304cefd368da9ad98 \
19                                sha1 f99af53f020136a1e1162e97c792343cd97a9a45
20# generate glib-enum-types.h at glib/src (for test)
21pre-configure   {
22        system "${ruby.bin} -C ${worksrcpath} extconf.rb --strict glib2"
23}
24configure.env   RUBYOPT=-rvendor-specific
25configure.args  --strict gstreamer
26depends_lib-append      port:gstreamer010 port:gstreamer010-gst-plugins-base port:rb-pkg-config \
27                                        port:rb-glib2
28distname                ${ruby.project}-all-${version}
29
30# run extconf.rb with each arch `ruby'
31use_parallel_build      no
32post-configure {
33        if {[variant_isset universal]} {
34                foreach arch ${universal_archs} {
35                        system "/usr/bin/arch -${arch} ${ruby.bin} -C ${worksrcpath}-${arch}/glib2/ext/glib2 extconf.rb --vendor"
36                        system "/usr/bin/arch -${arch} ${ruby.bin} -C ${worksrcpath}-${arch}/gstreamer extconf.rb --vendor"
37                }
38        }
39}
40
41#test.run               yes
42test.cmd                ${ruby.bin}
43test.target             -C gstreamer test/run-test.rb
44
Note: See TracBrowser for help on using the repository browser.