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

Last change on this file was 114328, checked in by ryandesign@…, 4 years ago

use eq and ne instead of == and != when comparing ${os.arch}, ${configure.build_arch}, ${build_arch}, and some port-specific variables for referring to architectures

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.5 KB
Line 
1# $Id: Portfile 114328 2013-12-05 10:21:52Z ryandesign@macports.org $
2
3PortSystem              1.0
4PortGroup               ruby 1.0
5
6ruby.setup              {cocoa rubycocoa} 1.0.6 install.rb {ChangeLog ReadMe.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 ddc0b4e033e70bbdd8d59901e9631d23 \
22                                rmd160 6dff7373e73924e266d1f760650db97d321d23dc \
23                                sha1 5ab73bceaec2b36955f49f405a9d6001dc01ce15
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}${prefix} \
31                                        --documentation=/share/doc/${name} \
32                                        --examples=/share/doc/${name}/examples
33
34# apply universal_archs or build_arch
35if {[variant_isset universal]} {
36        if {[info exists universal_archs] && $universal_archs != ""} {
37                configure.args-append --target-archs="${universal_archs}"
38        }
39} else {
40        if {[info exists build_arch] && ${build_arch} ne ""} {
41                configure.args-append --target-archs="${build_arch}"
42        }
43}
44
45#test.run yes
46test.cmd ${ruby.bin}
47test.target install.rb test
48
Note: See TracBrowser for help on using the repository browser.