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

Last change on this file was 130247, checked in by mf2k@…, 3 years ago

asterisk dtach dynamips-devel libdmtx mtr rb-rubygems: Ports abandoned. (#44845)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.4 KB
Line 
1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
2# $Id: Portfile 130247 2014-12-29 20:23:19Z ryandesign@macports.org $
3
4PortSystem          1.0
5PortGroup           ruby 1.0
6
7name                rb-rubygems
8categories          ruby devel
9license             {Ruby GPL-2}
10version             1.3.7
11revision            2
12
13homepage            http://rubygems.org/
14master_sites        http://production.cf.rubygems.org/rubygems
15
16
17distname            rubygems-${version}
18dist_subdir         ruby
19
20maintainers         nomaintainer
21description         a package management framework for Ruby
22long_description    RubyGems is the Ruby standard for publishing and \
23                    managing third party libraries.
24
25checksums           md5     e85cfadd025ff6ab689375adbf344bbe \
26                    sha1    68ad2970963db9893b76acc8777be72a77c4bee4 \
27                    rmd160  2ea8e16d1535216045798258603d5f2f9e3dbfea
28
29patchfiles          patch-lib_rubygems_commands_setup_command.rb.diff
30
31
32extract.suffix      .tgz
33platforms           darwin
34supported_archs     noarch
35
36use_configure       no
37build { }
38
39destroot.cmd        ${ruby.bin} setup.rb
40destroot.args       --prefix=${prefix} --destdir=${destroot}
41destroot.env
42
43set gems_libdir ${destroot}${prefix}/lib/ruby/gems/${ruby.api_version}
44destroot.keepdirs \
45    ${gems_libdir}/doc \
46    ${gems_libdir}/gems \
47    ${gems_libdir}/specifications
48
49variant ruby conflicts ruby186 description {add Ruby 1.8.7 support} {
50    depends_lib-append      port:ruby
51    destroot.args-append    --vendor --no-format-executable
52    ruby.branch             1.8
53    post-destroot {
54        xinstall -d ${destroot}${ruby.bindir}
55        move ${destroot}${prefix}/bin/gem ${destroot}${ruby.bindir}/gem
56        ln -s ${ruby.bindir}/gem ${destroot}${prefix}/bin/gem${ruby.link_binaries_suffix}
57    }
58}
59
60variant ruby186 conflicts ruby description {add Ruby 1.8.6 support} {
61    depends_lib-append      port:ruby186
62}
63
64if {![variant_isset ruby186]} {
65    default_variants +ruby
66}
67
68# clean up mess from previous portfile that bypassed the destroot
69pre-activate {
70    set docpath "${prefix}/lib/ruby/gems/1.8/doc/rubygems-1.3.7"
71    set adocfile "${docpath}/rdoc/classes/Gem/Builder.html"
72    if {[file exists $adocfile] && [registry_file_registered $adocfile] == "0"} {
73        delete $docpath
74    }
75}
76
77livecheck.type      regex
78livecheck.url       https://rubygems.org/pages/download
79livecheck.regex     {v([0-9.]+)}
Note: See TracBrowser for help on using the repository browser.