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

Last change on this file since 85650 was 85650, checked in by kimuraw@…, 8 years ago

ruby/rb-gstreamer: add license.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.3 KB
Line 
1# $Id: Portfile 85650 2011-10-15 13:57:14Z kimuraw@macports.org $
2
3PortSystem              1.0
4PortGroup               muniversal 1.0
5PortGroup               ruby 1.0
6
7ruby.setup              {gstreamer ruby-gnome2} 1.0.3 extconf.rb \
8                                { gstreamer/README gstreamer/sample } \
9                                sourceforge:ruby-gnome2
10revision                0
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 0cabb7cb9cee2bdb2ec47437e9923af7 \
18                                rmd160 bac4a901b3c09f548ced80c2a1cfbea482dc0ead \
19                                sha1 2a280760e411e443e4e617ca5345a3301fbd609d
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:gstreamer port: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.