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

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

ruby/rb-cocoa: upgrade to 1.0.1

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.8 KB
Line 
1# $Id: Portfile 59632 2009-10-18 11:11: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                0
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
27patchfiles-append       patch-ext-rubycocoa-extconf.rb.in.diff
28
29configure.args          --install-prefix=${destroot}${prefix} \
30                                        --install-root=${destroot} \
31                                        --documentation=${prefix}/share/doc/${name} \
32                                        --examples=${prefix}/share/examples/${name}
33destroot.violate_mtree  yes
34
35# apply universal_archs or build_arch
36if {[variant_isset universal]} {
37        if {[info exists universal_archs] && $universal_archs != ""} {
38                configure.args-append --target-archs="${universal_archs}"
39        }
40} else {
41        if {[info exists build_arch] && $build_arch != ""} {
42                configure.args-append --target-archs="${build_arch}"
43        }
44}
45
46# by default, do not install Xcode templates. #18708
47variant xcode description {install project templates for Xcode} { }
48if {![variant_isset xcode]} {
49        configure.args-append \
50                --xcode-extras="${prefix}/share/doc/${name}/project-templates"
51}
52
53#test.run yes
54test.cmd ${ruby.bin}
55test.target install.rb test
56
Note: See TracBrowser for help on using the repository browser.