source: trunk/dports/ruby/rb-rcairo/Portfile @ 74719

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

ruby/rb-rcairo: enable universal variant

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 74719 2010-12-30 17:14:22Z kimuraw@macports.org $
2
3PortSystem              1.0
4PortGroup               muniversal 1.0
5PortGroup               ruby 1.0
6
7ruby.setup              rcairo 1.10.0 extconf.rb {README.rdoc COPYING GPL samples doc}
8revision                1
9maintainers             kimuraw
10description             Ruby bindings for cairo
11long_description \
12                Ruby bindings for Cairo. Cairo is a 2D graphics library \
13                with support for multiple output devices.
14categories-append       graphics
15checksums               md5  4fe76f1069d0d1ccfdf7848e3e928d9f \
16                                rmd160 243e39c25c4c633842f7b9f605de7c192b4ed265 \
17                                sha1 592fe1f19c6608f98d5170324e9ed479249caae7
18platforms               darwin
19
20depends_lib-append              path:lib/pkgconfig/cairo.pc:cairo \
21                                                port:rb-pkg-config
22configure.env-append    PKG_CONFIG=${prefix}/bin/pkg-config
23configure.args-append   --vendor
24
25homepage        http://cairographics.org/rcairo/
26master_sites    http://cairographics.org/releases/
27license                 Ruby
28
29# run extconf.rb with each arch `ruby'
30use_parallel_build      no
31post-configure {
32        if {[variant_isset universal]} {
33                foreach arch ${universal_archs} {
34                        system "/usr/bin/arch -arch ${arch} ${ruby.bin} -C ${worksrcpath}-${arch}/ext/cairo extconf.rb --vendor"
35                }
36        }
37}
38
39test.env-append         PKG_CONFIG=${prefix}/bin/pkg-config
40test.run                yes
41test.dir                ${worksrcpath}
42test.cmd                ${ruby.bin}
43test.target             test/run-test.rb
44test.args               --testcase=PaperTest
45
46livecheck.type  regex
47livecheck.url   ${homepage}
48livecheck.regex {The latest version is <a href="http://cairographics.org/releases/rcairo-([\d.]+).tar.gz">}
Note: See TracBrowser for help on using the repository browser.