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

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

rb-rubygems: rev1, adopted blbmp's doc-patch, removed autoconf as a dependency

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.4 KB
Line 
1# $Id: Portfile 37660 2008-06-17 23:18:16Z mr_bond@macports.org $
2
3PortSystem              1.0
4PortGroup               ruby 1.0
5
6name                    rb-rubygems
7version         1.1.1
8revision                1
9
10homepage                http://www.rubygems.org
11master_sites            http://rubyforge.org/frs/download.php/35283/
12distname                rubygems-${version}
13dist_subdir             ruby
14
15maintainers             mr_bond openmaintainer
16description             a package management framework for Ruby
17long_description        RubyGems is the Ruby standard for publishing and \
18                                        managing third party libraries.
19categories-append       devel
20checksums               md5     1a77c5b6b293a3ccd5261dc120641ccc \
21                        sha1    e1ead11fa2928fb4b7871c17fd1186198c97c11a
22
23
24extract.suffix          .tgz
25platforms               darwin
26
27patchfiles              patch-setup.rb.diff
28post-patch {
29        reinplace "s|@@DESTROOT@@|${destroot}|" ${worksrcpath}/setup.rb
30}
31
32
33configure { }
34build { }
35
36destroot.cmd    ${ruby.bin} setup.rb
37destroot.args   --prefix=${destroot}${prefix}
38destroot.env
39
40set gems_libdir ${destroot}${prefix}/lib/ruby/gems/${ruby.version}
41destroot.keepdirs \
42        ${gems_libdir}/doc \
43        ${gems_libdir}/gems \
44        ${gems_libdir}/specifications
45
46
47post-destroot {
48        file mkdir ${destroot}${ruby.lib}
49        file rename ${destroot}${prefix}/lib/rubygems ${destroot}${ruby.lib}
50        file rename ${destroot}${prefix}/lib/rbconfig ${destroot}${ruby.lib}
51        file rename ${destroot}${prefix}/lib/rubygems.rb ${destroot}${ruby.lib}
52        file rename ${destroot}${prefix}/lib/ubygems.rb ${destroot}${ruby.lib}
53}
54
55depends_lib     port:ruby
56
Note: See TracBrowser for help on using the repository browser.