[35899] trunk/dports/ruby/rb-rubygems/Portfile

mr_bond at macports.org mr_bond at macports.org
Wed Apr 9 08:55:04 PDT 2008


Revision: 35899
          http://trac.macosforge.org/projects/macports/changeset/35899
Author:   mr_bond at macports.org
Date:     2008-04-09 08:55:00 -0700 (Wed, 09 Apr 2008)

Log Message:
-----------
Bumped version up to 1.1.0, fixes #13815
  - duped some stuff from ruby group resource (untill macports 1.6.1 released)

Modified Paths:
--------------
    trunk/dports/ruby/rb-rubygems/Portfile

Modified: trunk/dports/ruby/rb-rubygems/Portfile
===================================================================
--- trunk/dports/ruby/rb-rubygems/Portfile	2008-04-09 14:31:40 UTC (rev 35898)
+++ trunk/dports/ruby/rb-rubygems/Portfile	2008-04-09 15:55:00 UTC (rev 35899)
@@ -1,37 +1,49 @@
-# $Id$
+# $Id$ 
 
 PortSystem		1.0
 PortGroup		ruby 1.0
 
-ruby.setup		rubygems 0.9.4 setup.rb {README doc examples gemspecs} \
-			rubyforge:20989
-maintainers		nomaintainer
+name			rb-rubygems
+version			1.1.0
+
+homepage		http://www.rubygems.org
+master_sites		http://rubyforge.org/frs/download.php/34638/
+
+distname                rubygems-1.1.0
+dist_subdir             ruby
+
+maintainers		mr_bond openmaintainer
 description		a package management framework for Ruby
 long_description	RubyGems is the Ruby standard for publishing and \
 					managing third party libraries.
 categories-append	devel
-checksums		md5 b5680acaa019c80ea44fe87cc2e227da \
-				sha1 904080d36e34d7a6969c3cef228380eb82688d2a \
-				rmd160 6ee02db45173f05e6f8c5b1ecd5af832fb8601f8
+checksums		md5 	85f994904c5b4045f0a859b29d0be717 \
+			sha1	2379e510267ed1c979987a618c9f139e58266d28
+
 extract.suffix		.tgz
 platforms		darwin
 
-set gems_libdir	${destroot}${prefix}/lib/ruby/gems/${ruby.version}
-post-patch {
-	reinplace "s%Gem.dir%'${gems_libdir}'%" ${worksrcpath}/post-install.rb
-}
+configure { }
+build { }
+
+destroot.cmd	${ruby.bin} setup.rb 
+destroot.args	--prefix=${destroot}${prefix} 
+destroot.env
+
+set gems_libdir ${destroot}${prefix}/lib/ruby/gems/${ruby.version}
 destroot.keepdirs \
-	${gems_libdir}/cache \
-	${gems_libdir}/doc \
-	${gems_libdir}/gems \
-	${gems_libdir}/specifications
-pre-destroot {
-	xinstall -d -m 0755 ${gems_libdir}
-}
+        ${gems_libdir}/doc \
+        ${gems_libdir}/gems \
+        ${gems_libdir}/specifications
+
+
 post-destroot {
-	foreach script {gem gem_mirror gem_server gemlock gemri gemwhich index_gem_repository.rb update_rubygems} {
-		reinplace "s%^#!.*ruby%#!${ruby.bin}%" ${destroot}${prefix}/bin/$script
-	}
+	file mkdir ${destroot}${ruby.lib}
+	file rename ${destroot}${prefix}/lib/rubygems ${destroot}${ruby.lib}
+	file rename ${destroot}${prefix}/lib/rbconfig ${destroot}${ruby.lib}
+	file rename ${destroot}${prefix}/lib/rubygems.rb ${destroot}${ruby.lib}
+	file rename ${destroot}${prefix}/lib/ubygems.rb ${destroot}${ruby.lib}
 }
 
+depends_lib     port:ruby
 depends_build	port:autoconf

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-changes/attachments/20080409/b75f2709/attachment.html


More information about the macports-changes mailing list