source: trunk/dports/ruby/rb-cocoa/Portfile @ 82060

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

ruby/rb-cocoa: fix #30563, build failure on Lion.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 82060 2011-08-07 06:50:57Z kimuraw@macports.org $
2
3PortSystem              1.0
4PortGroup               ruby 1.0
5
6ruby.setup              {cocoa rubycocoa} 1.0.1 install.rb {ChangeLog ReadMe.html ReadMe.ja.html}
7revision                1
8maintainers             kimuraw
9description             Ruby bindings for writing cocoa programs
10long_description        RubyCocoa is a Ruby library for using Cocoa Objects \
11                                        on Mac OS X in Ruby scripts. You can use RubyCocoa \
12                                        to work with Cocoa objects in Ruby scripts, write \
13                                        Cocoa applications with Ruby and Interface Builder, \
14                                        develop small scale simple Cocoa applications and \
15                                        such.
16categories-append       devel
17homepage                http://${ruby.project}.sourceforge.net/
18license                 LGPL/Ruby
19master_sites    sourceforge:${ruby.project}
20distname                RubyCocoa-${version}
21checksums               md5 067ab6fdc92273b752b75d78cfce5f89 \
22                                rmd160 ae578de14a43ac6648683657ff952246ebc9726d \
23                                sha1 ae7e325468e817acf37633b5abae7ddc1634ea75
24platforms               darwin
25
26# fix #16928: allow non Mac OS X's make, like gmake
27# fix #30563: build failure on Lion
28patchfiles-append       patch-ext-rubycocoa-extconf.rb.in.diff \
29                                        patch-install.rb.diff
30
31configure.args          --install-prefix=${destroot}${prefix} \
32                                        --install-root=${destroot} \
33                                        --documentation=${prefix}/share/doc/${name} \
34                                        --examples=${prefix}/share/examples/${name}
35destroot.violate_mtree  yes
36
37# apply universal_archs or build_arch
38if {[variant_isset universal]} {
39        if {[info exists universal_archs] && $universal_archs != ""} {
40                configure.args-append --target-archs="${universal_archs}"
41        }
42} else {
43        if {[info exists build_arch] && $build_arch != ""} {
44                configure.args-append --target-archs="${build_arch}"
45        }
46}
47
48# by default, do not install Xcode templates. #18708
49variant xcode description {install project templates for Xcode} { }
50if {![variant_isset xcode]} {
51        configure.args-append \
52                --xcode-extras="${prefix}/share/doc/${name}/project-templates"
53}
54
55#test.run yes
56test.cmd ${ruby.bin}
57test.target install.rb test
58
Note: See TracBrowser for help on using the repository browser.