Permalink
Fetching contributors…
Cannot retrieve contributors at this time
43 lines (38 sloc) 1.36 KB
PortSystem 1.0
PortGroup muniversal 1.0
PortGroup ruby 1.0
ruby.setup {gstreamer ruby-gnome2} 1.1.3 extconf.rb \
{ gstreamer/README gstreamer/sample } \
sourceforge:ruby-gnome2
revision 1
maintainers {kimuraw @kimuraw}
platforms darwin
description Ruby/GStreamer is a Ruby binding for GStreamer.
long_description Ruby/GStreamer is a Ruby binding for GStreamer.
categories-append gnome
license LGPL-2
checksums md5 8fa5a2b35f45df722df599fb0765b069 \
rmd160 7f78bd36632bf5547000a92304cefd368da9ad98 \
sha1 f99af53f020136a1e1162e97c792343cd97a9a45
# generate glib-enum-types.h at glib/src (for test)
pre-configure {
system "${ruby.bin} -C ${worksrcpath} extconf.rb --strict glib2"
}
configure.env RUBYOPT=-rvendor-specific
configure.args --strict gstreamer
depends_lib-append port:gstreamer010 port:gstreamer010-gst-plugins-base port:rb-pkg-config \
port:rb-glib2
distname ${ruby.project}-all-${version}
# run extconf.rb with each arch `ruby'
use_parallel_build no
post-configure {
if {[variant_isset universal]} {
foreach arch ${universal_archs} {
system "/usr/bin/arch -${arch} ${ruby.bin} -C ${worksrcpath}-${arch}/glib2/ext/glib2 extconf.rb --vendor"
system "/usr/bin/arch -${arch} ${ruby.bin} -C ${worksrcpath}-${arch}/gstreamer extconf.rb --vendor"
}
}
}
#test.run yes
test.cmd ${ruby.bin}
test.target -C gstreamer test/run-test.rb