summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--dev-ruby/bundler/Manifest14
-rw-r--r--dev-ruby/rubygems/ChangeLog10
-rw-r--r--dev-ruby/rubygems/Manifest11
-rw-r--r--dev-ruby/rubygems/rubygems-1.3.5-r1.ebuild93
4 files changed, 121 insertions, 7 deletions
diff --git a/dev-ruby/bundler/Manifest b/dev-ruby/bundler/Manifest
new file mode 100644
index 000000000000..1008dbfe9cfe
--- /dev/null
+++ b/dev-ruby/bundler/Manifest
@@ -0,0 +1,14 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+DIST bundler-git-0.8.1.tgz 37199 RMD160 e71626e8e497d6e523a35ef871ddac21a051e0cf SHA1 0dd30a1b23ebf17ef3aac5de6c65248114dfd286 SHA256 caae41d8b6f722e164e1120faba6d366ca4bb857120e1a4d3a28b22d53db2c70
+EBUILD bundler-0.8.1.ebuild 993 RMD160 2791333377e551d1be6d40f6aabc04fd2630e3e2 SHA1 74e5cd662599d235347523cc5e1c946015e1fa43 SHA256 911435793c4d620b3f0c20ccb2c15973e7011bbbc575536b9b5f1deca529e151
+MISC ChangeLog 445 RMD160 d3a531eaa7825fda379d6589b03edfe809a9486b SHA1 eab7f17c01d6d97c23a305d541bc93230fa9e9b6 SHA256 a6cc06b407a8f863f791047685b800059d384629558c030aa902551471a522cd
+MISC metadata.xml 157 RMD160 5d9e2c7ecba96ffebd936d38acedf859cdea84e1 SHA1 8ce15dcc608eeb5616aeec610dc695cbe6f93e02 SHA256 11fba03a217e2d996f5cd8895493a5692ece8ddac2c1a2dfc71d0e830555121c
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.14 (GNU/Linux)
+
+iEYEARECAAYFAktg3ywACgkQAiZjviIA2XgMCQCguyIMPyoywooA0to2SzFa2FVL
+OnUAn3OG5gL/9B0ZhYIabMWhSwGQLZXu
+=iuKK
+-----END PGP SIGNATURE-----
diff --git a/dev-ruby/rubygems/ChangeLog b/dev-ruby/rubygems/ChangeLog
index 85fec6429240..80fd309f8fde 100644
--- a/dev-ruby/rubygems/ChangeLog
+++ b/dev-ruby/rubygems/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/rubygems
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.130 2009/12/21 12:13:35 a3li Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.131 2010/01/28 00:49:41 flameeyes Exp $
+
+*rubygems-1.3.5-r1 (28 Jan 2010)
+
+ 28 Jan 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+ +rubygems-1.3.5-r1.ebuild:
+ Port to ruby-ng, try to keep differences to minimal for now.
21 Dec 2009; Alex Legler <a3li@gentoo.org> -rubygems-1.3.1.ebuild,
-files/rubygems-1.3.1-gentoo.patch, -files/rubygems-1.3.1-proxy.patch,
diff --git a/dev-ruby/rubygems/Manifest b/dev-ruby/rubygems/Manifest
index e9941c704497..e41314f584aa 100644
--- a/dev-ruby/rubygems/Manifest
+++ b/dev-ruby/rubygems/Manifest
@@ -9,13 +9,14 @@ AUX init.d-gem_server2 502 RMD160 baf764bc5ad41adce73576b2376093744ddd3917 SHA1
AUX rubygems-1.3.3-gentoo.patch 1422 RMD160 e39a2042170399d0e98c772b0572026d6057353d SHA1 11cb4656b77185c78df809d3180061e5fe41139b SHA256 95e6c7ea38177b0798562be5abaf040e72db4a27f851502d91c4453890e630b0
AUX rubygems-1.3.5-setup.patch 942 RMD160 69e8714f72482387019bad7b9254110c6bb8b957 SHA1 ba58de08e29731de4ce820f7d8e4c60de2fcee6e SHA256 d3e7c43ff20a649d1c731e27b0791f110b920201a28607091da0166495709b97
DIST rubygems-1.3.5.tgz 278469 RMD160 2d17f0de2d387bd2a034916cb79531110f3be196 SHA1 8545f25d00c757a310b879a2580e56d6012fc981 SHA256 c0928cc1ae54dedfb5f57ad3829882c1f90e42bc17bf50491aa6f93a937546ac
+EBUILD rubygems-1.3.5-r1.ebuild 2809 RMD160 beafa61db1cc38a9ddfdb33ec70109bfbf1310c8 SHA1 1118c3f668f1fea1b4e6e74a051a668d8c78f42c SHA256 08cc7b6c18304a5a99d7527525ca8825b8828884a70a7d66325bf6bfa43ee089
EBUILD rubygems-1.3.5.ebuild 3166 RMD160 95a7edee644212eabf8a86f1dc42d06c14a3deed SHA1 8c1b5af2fd039e655628a1884697883824b0bafc SHA256 14822c8c0b156a93a8ab2215b5502f7cea55c2cbce8a57b5ddd7eec2753338b1
-MISC ChangeLog 19573 RMD160 8f62bafb7732b2ed61d7fd0d44ca7e25ce362fdf SHA1 b91c1252cae12e3d21fff9214b546bbf68772f92 SHA256 2976dfe31628c994f59a70548812c9bb3f4163f6b8c68b1d7920ca9797be10c5
+MISC ChangeLog 19761 RMD160 4347dc11b362de0b4e7f2fad4ee8221d6e416c3f SHA1 7a64c36c481da0a81184244f9198e9b970873384 SHA256 26812d9fcbd78c7b47ee84d28182ea06408d8054bb154b79b75b3a2f04dd1811
MISC metadata.xml 247 RMD160 eb1d10b4366542ce2f232dcaf7317341b6b5608f SHA1 fcb6e2a1d6cda6d45640f9c5a5dfcc0fd4f3ab3b SHA256 633ae9912e8dd27f76b9cf53f5ad0d3222db85d9a19a76da7fd5e26f40b144e3
-----BEGIN PGP SIGNATURE-----
-Version: GnuPG v2.0.13 (GNU/Linux)
+Version: GnuPG v2.0.14 (GNU/Linux)
-iEYEARECAAYFAksvZnUACgkQTEkQYPgooqFMIQCgsjvQGQsXdRS1diJDdIqRv0Vb
-qzIAoIywfSxtxAnDGFSgDCmNj3ISMQ8w
-=+/Z0
+iEYEARECAAYFAktg3ukACgkQAiZjviIA2XglhwCfUCxNXT3K98BDvmOn03WxbGWv
+pNcAoOwO8ptcL2QNNL8ma4nA9L+YzhK+
+=G1i5
-----END PGP SIGNATURE-----
diff --git a/dev-ruby/rubygems/rubygems-1.3.5-r1.ebuild b/dev-ruby/rubygems/rubygems-1.3.5-r1.ebuild
new file mode 100644
index 000000000000..5e5cd63e108d
--- /dev/null
+++ b/dev-ruby/rubygems/rubygems-1.3.5-r1.ebuild
@@ -0,0 +1,93 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-1.3.5-r1.ebuild,v 1.1 2010/01/28 00:49:41 flameeyes Exp $
+
+EAPI="2"
+
+USE_RUBY="ruby18"
+
+inherit ruby-ng
+
+DESCRIPTION="Centralized Ruby extension management system"
+HOMEPAGE="http://rubyforge.org/projects/rubygems/"
+LICENSE="|| ( Ruby GPL-2 )"
+
+# Needs to be installed first
+RESTRICT="test"
+
+SRC_URI="mirror://rubyforge/${PN}/${P}.tgz"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
+SLOT="0"
+IUSE="doc server"
+PDEPEND="server? ( dev-ruby/builder[ruby_targets_ruby18] )" # index_gem_repository.rb
+
+all_ruby_prepare() {
+ epatch "${FILESDIR}/${PN}-1.3.5-setup.patch"
+ # Fixes a new "feature" that would prevent us from recognizing installed
+ # gems inside the sandbox
+ epatch "${FILESDIR}/${PN}-1.3.3-gentoo.patch"
+}
+
+each_ruby_install() {
+ # RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455
+ export RUBYOPT="${GENTOO_RUBYOPT}"
+ ewarn "RUBYOPT=${RUBYOPT}"
+
+ ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["ruby_version"]')
+
+ # rubygems tries to create GEM_HOME if it doesn't exist, upsetting sandbox,
+ # bug #202109. Since 1.2.0 we also need to set GEM_PATH
+ # for this reason, bug #230163.
+ export GEM_HOME="${D}/usr/$(get_libdir)/ruby/gems/${ver}"
+ export GEM_PATH="${GEM_HOME}/"
+ keepdir /usr/$(get_libdir)/ruby/gems/$ver/{doc,gems,cache,specifications}
+
+ myconf=""
+ if ! use doc; then
+ myconf="${myconf} --no-ri"
+ myconf="${myconf} --no-rdoc"
+ fi
+
+ ${RUBY} setup.rb $myconf --destdir="${D}" || die "setup.rb install failed"
+
+ doruby "${FILESDIR}/auto_gem.rb"
+}
+
+all_ruby_install() {
+ dodoc README || die "dodoc README failed"
+
+ doenvd "${FILESDIR}/10rubygems" || die "doenvd 10rubygems failed"
+
+ if use server; then
+ newinitd "${FILESDIR}/init.d-gem_server2" gem_server || die "newinitd failed"
+ newconfd "${FILESDIR}/conf.d-gem_server" gem_server || die "newconfd failed"
+ fi
+}
+
+pkg_postinst() {
+ SOURCE_CACHE="/usr/$(get_libdir)/ruby/gems/$ver/source_cache"
+ if [[ -e "${SOURCE_CACHE}" ]]; then
+ rm "${SOURCE_CACHE}"
+ fi
+
+ if [[ ! -n $(readlink "${ROOT}"usr/bin/gem) ]] ; then
+ eselect ruby set ruby18
+ fi
+
+ ewarn
+ ewarn "This ebuild is compatible to eselect-ruby"
+ ewarn "To switch between available Ruby profiles, execute as root:"
+ ewarn "\teselect ruby set ruby(18|19|...)"
+ ewarn
+}
+
+pkg_postrm() {
+ ewarn "If you have uninstalled dev-ruby/rubygems, Ruby applications are unlikely"
+ ewarn "to run in current shells because of missing auto_gem."
+ ewarn "Please run \"unset RUBYOPT\" in your shells before using ruby"
+ ewarn "or start new shells"
+ ewarn
+ ewarn "If you have not uninstalled dev-ruby/rubygems, please do not unset "
+ ewarn "RUBYOPT"
+}