diff options
author | Caleb Tennis <caleb@gentoo.org> | 2006-01-02 23:46:01 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2006-01-02 23:46:01 +0000 |
commit | b86eb02963da316fb597ee986c5b0fffd7aaa196 (patch) | |
tree | 276f72ebf2aab8122266e358b78db91a1ac673c5 /dev-ruby/rubygems | |
parent | New version, which allows us to specify config versions like 'ruby18_with_gems' (diff) | |
download | gentoo-2-b86eb02963da316fb597ee986c5b0fffd7aaa196.tar.gz gentoo-2-b86eb02963da316fb597ee986c5b0fffd7aaa196.tar.bz2 gentoo-2-b86eb02963da316fb597ee986c5b0fffd7aaa196.zip |
New version which adds a new configurable Ruby version that automatically loads rubygems for you
(Portage version: 2.1_pre3-r1)
Diffstat (limited to 'dev-ruby/rubygems')
-rw-r--r-- | dev-ruby/rubygems/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/rubygems/Manifest | 2 | ||||
-rw-r--r-- | dev-ruby/rubygems/files/digest-rubygems-0.8.11-r3 | 1 | ||||
-rw-r--r-- | dev-ruby/rubygems/rubygems-0.8.11-r3.ebuild | 44 |
4 files changed, 54 insertions, 1 deletions
diff --git a/dev-ruby/rubygems/ChangeLog b/dev-ruby/rubygems/ChangeLog index 13d0cd6bae2b..63fd0f77cba6 100644 --- a/dev-ruby/rubygems/ChangeLog +++ b/dev-ruby/rubygems/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/rubygems # Copyright 1999-2006 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.21 2006/01/02 22:37:11 caleb Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.22 2006/01/02 23:46:01 caleb Exp $ + +*rubygems-0.8.11-r3 (02 Jan 2006) + + 02 Jan 2006; Caleb Tennis <caleb@gentoo.org> +rubygems-0.8.11-r3.ebuild: + New version which adds a new configurable Ruby version that automatically + loads rubygems for you *rubygems-0.8.11-r2 (02 Jan 2006) diff --git a/dev-ruby/rubygems/Manifest b/dev-ruby/rubygems/Manifest index 18bf3bfe2b93..1f7dcccee1ad 100644 --- a/dev-ruby/rubygems/Manifest +++ b/dev-ruby/rubygems/Manifest @@ -4,9 +4,11 @@ MD5 8bbad53ea0e9bb1a53892ef892176238 files/digest-rubygems-0.8.10 64 MD5 c4cfa55864944c9d028da394e1565262 files/digest-rubygems-0.8.11 64 MD5 c4cfa55864944c9d028da394e1565262 files/digest-rubygems-0.8.11-r1 64 MD5 c4cfa55864944c9d028da394e1565262 files/digest-rubygems-0.8.11-r2 64 +MD5 c4cfa55864944c9d028da394e1565262 files/digest-rubygems-0.8.11-r3 64 MD5 664d3edb96dfbb4c5e2a3f6cbb12d566 files/no_post_install.patch 204 MD5 3eec9f3fe48b51f49dbc1f171a3b026f metadata.xml 157 MD5 be4b9fbb36f41acbaccc1e403faaa500 rubygems-0.8.10.ebuild 902 MD5 673f3d86269b325f58b8bb8ef1d4f1c5 rubygems-0.8.11-r1.ebuild 993 MD5 586158c52800766e93bd3fbdc739fc3f rubygems-0.8.11-r2.ebuild 962 +MD5 136f41be8958ba611748abd8636a22d0 rubygems-0.8.11-r3.ebuild 1367 MD5 ed04a907d861cd1bc1ca9aa0835e355d rubygems-0.8.11.ebuild 899 diff --git a/dev-ruby/rubygems/files/digest-rubygems-0.8.11-r3 b/dev-ruby/rubygems/files/digest-rubygems-0.8.11-r3 new file mode 100644 index 000000000000..5d069befbe71 --- /dev/null +++ b/dev-ruby/rubygems/files/digest-rubygems-0.8.11-r3 @@ -0,0 +1 @@ +MD5 aa363b428c4c1fc2e076a4ff77b957d7 rubygems-0.8.11.tgz 160265 diff --git a/dev-ruby/rubygems/rubygems-0.8.11-r3.ebuild b/dev-ruby/rubygems/rubygems-0.8.11-r3.ebuild new file mode 100644 index 000000000000..d6af97c11267 --- /dev/null +++ b/dev-ruby/rubygems/rubygems-0.8.11-r3.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-0.8.11-r3.ebuild,v 1.1 2006/01/02 23:46:01 caleb Exp $ + +inherit ruby + +DESCRIPTION="Centralized Ruby extension management system" +HOMEPAGE="http://rubyforge.org/projects/rubygems/" +LICENSE="Ruby" + +# The URL depends implicitly on the version, unfortunately. Even if you +# change the filename on the end, it still downloads the same file. +SRC_URI="http://rubyforge.org/frs/download.php/5207/${P}.tgz" + +KEYWORDS="~amd64 ~ppc ~ppc64 ~ppc-macos ~sparc ~x86" +SLOT="0" +IUSE="" +DEPEND=">=dev-lang/ruby-1.8 + >=dev-ruby/ruby-config-0.3.2" + +PATCHES="${FILESDIR}/no_post_install.patch" +USE_RUBY="ruby18" + +src_compile() { + return +} + +src_install() { + ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["MAJOR"] + "." + Config::CONFIG["MINOR"]') + GEM_HOME=${D}/usr/lib/ruby/gems/$ver ruby_src_install + keepdir /usr/lib/ruby/gems/$ver/doc + + echo "RUBYOPT=\"-rubygems\" /usr/bin/ruby${ver/\./} \"\$@\"" > ${D}/usr/bin/ruby${ver/\./}_with_gems + chmod 755 ${D}/usr/bin/ruby${ver/\./}_with_gems +} + +pkg_postinst() { + einfo + einfo + einfo "In order to take advantage of automatic gem require for Ruby, please change your" + einfo "Ruby version to the _with_gems version listed via /usr/sbin/ruby-config -l" + einfo + einfo +} |