summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlex Legler <a3li@gentoo.org>2009-07-05 18:27:15 +0000
committerAlex Legler <a3li@gentoo.org>2009-07-05 18:27:15 +0000
commit5322ba02c73c154c1721670c82628157754bade0 (patch)
treefbb6af850ca8727df15f471de7776cfddb3a1f6b
parentInitial import. (diff)
downloadhistorical-5322ba02c73c154c1721670c82628157754bade0.tar.gz
historical-5322ba02c73c154c1721670c82628157754bade0.tar.bz2
historical-5322ba02c73c154c1721670c82628157754bade0.zip
Version bump
Package-Manager: portage-2.2_rc33/cvs/Linux x86_64
-rw-r--r--dev-ruby/rubygems/ChangeLog7
-rw-r--r--dev-ruby/rubygems/Manifest14
-rw-r--r--dev-ruby/rubygems/rubygems-1.3.4.ebuild105
3 files changed, 124 insertions, 2 deletions
diff --git a/dev-ruby/rubygems/ChangeLog b/dev-ruby/rubygems/ChangeLog
index 8a5560129bec..c94e63c12436 100644
--- a/dev-ruby/rubygems/ChangeLog
+++ b/dev-ruby/rubygems/ChangeLog
@@ -1,6 +1,11 @@
# 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.122 2009/06/07 17:40:29 armin76 Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.123 2009/07/05 18:27:15 a3li Exp $
+
+*rubygems-1.3.4 (05 Jul 2009)
+
+ 05 Jul 2009; Alex Legler <a3li@gentoo.org> +rubygems-1.3.4.ebuild:
+ Version bump.
07 Jun 2009; Raúl Porcel <armin76@gentoo.org> rubygems-1.3.3.ebuild:
Add ~arm/~s390
diff --git a/dev-ruby/rubygems/Manifest b/dev-ruby/rubygems/Manifest
index feec5914f0e2..cbda88cde5e6 100644
--- a/dev-ruby/rubygems/Manifest
+++ b/dev-ruby/rubygems/Manifest
@@ -1,3 +1,6 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
AUX 10rubygems 21 RMD160 02441be7de6307bbb859fbc2bf5891809fe9ecf8 SHA1 3f98150bfb39a3f3f1dfabcf2d9bf80051960d81 SHA256 8c30de9ba7f327237af47f85d8f7f6701d34c9a8780ff7303244667568ca5833
AUX auto_gem.rb 159 RMD160 fbf261e5cf0a8450c51c33a7ad4dafbab21bd518 SHA1 8dde3d73f65998f4c5552924ad49e1441e1b211d SHA256 fe1efe24cd0ba36c55449e9623cd0be394980f37d12468624dad7ffdef72f4dc
AUX conf.d-gem_server 81 RMD160 8c5c57e989e009b87fcb345185f3f1e3acaf517d SHA1 4d43d760253a478adbce597148ff1c4e414e8eea SHA256 aa850780bebe0e31da9732d8707a748567ca72716fd91e294dc712e71f82db2f
@@ -10,7 +13,16 @@ AUX rubygems-1.3.3-gentoo.patch 1422 RMD160 e39a2042170399d0e98c772b0572026d6057
AUX rubygems-1.3.3-setup.patch 886 RMD160 fa4610c20574a42f2703748359dd0bf50b83892e SHA1 54fcc6dc9dd4435a1d043fdf8f10e1d0756722fe SHA256 5220a63f1c8a231a0f8d7dfa938ef4351764a76aa82cf941fdd9dd6b83c7b6bf
DIST rubygems-1.3.1.tgz 263748 RMD160 898f33bf49ac6d29d8980cb4feaf30ade0125248 SHA1 a21ae466146bffb28ece05cddbdced0b908ca74f SHA256 361f02e9e3bf1b6625f0e2146553b12c3003d36336cacba51410740f544a8d3b
DIST rubygems-1.3.3.tgz 292766 RMD160 a9dffb8b93e1ef5cc0679a1555d0899859d770a3 SHA1 395de32c37518041f0bea242fa343f521b8dc100 SHA256 22744ae3994939a198707b9d573d19432c34960220afd2d196ed718bfebee6d7
+DIST rubygems-1.3.4.tgz 293275 RMD160 451797299921cac9997fc93a85601d6f28f17cf5 SHA1 b973b4748c0bc08f9a62b3312bde935dda2eac6f SHA256 1eb4b0a24ed589c40c2b2c3583bd39c52e841afedd55958cc191b3e31adfbbfc
EBUILD rubygems-1.3.1.ebuild 2692 RMD160 939c06d8f9012240bd5b6ea3064cb8f61542b232 SHA1 427ce6a6afe5f5cacc93cc2f1cd3508e2ebd16e9 SHA256 09aef68efa11323e0c61fad32d50878d1e27af3fc19f6c4eaa9829690af44e47
EBUILD rubygems-1.3.3.ebuild 3192 RMD160 73a18f41a57573fbd40837953b5d738642222473 SHA1 497e45de4315ca49105d925452e6699b6bce5b56 SHA256 65f8c1a130cbdfe8ee9e756e9a3388402d3b8f22cd881cabb722d74745c4e046
-MISC ChangeLog 18530 RMD160 acf16311248582a721e442de044a0fdbcd7e0bd6 SHA1 b412d12ca4eeb9322c6d6acd23193f2dc0746a2f SHA256 b1e91e4fb92131258d93eaa27d9ae68ee015da2c8a0fa9d9799e1bb3eb60779f
+EBUILD rubygems-1.3.4.ebuild 3189 RMD160 cac5fbc72bb5e9041b3e434b11b390653c9097b4 SHA1 13077c588ec3b6c304d15e74529c0df686a3bd57 SHA256 f7f74943d27b82112af0be50fddd5aed7113592af50862a41d3c4a65133147a1
+MISC ChangeLog 18644 RMD160 d13a8381d354cd00905c3afac1b608f10d16f754 SHA1 f17e49ff92797fdb2a54f09458c291856fcf812d SHA256 0cf26c2735b56f6f65ed908d5b057e5111cc46f43e10f3c34418920989c4b3a4
MISC metadata.xml 247 RMD160 eb1d10b4366542ce2f232dcaf7317341b6b5608f SHA1 fcb6e2a1d6cda6d45640f9c5a5dfcc0fd4f3ab3b SHA256 633ae9912e8dd27f76b9cf53f5ad0d3222db85d9a19a76da7fd5e26f40b144e3
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.11 (GNU/Linux)
+
+iEYEARECAAYFAkpQ8JAACgkQaGsKqSU7eCSwkwCfS8U/M9LF0B2dKF/AIE6otzzt
+sWMAniGK2RuaXqordSIXqk0jIWDWiEey
+=UAhy
+-----END PGP SIGNATURE-----
diff --git a/dev-ruby/rubygems/rubygems-1.3.4.ebuild b/dev-ruby/rubygems/rubygems-1.3.4.ebuild
new file mode 100644
index 000000000000..ee403601231c
--- /dev/null
+++ b/dev-ruby/rubygems/rubygems-1.3.4.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-1.3.4.ebuild,v 1.1 2009/07/05 18:27:15 a3li Exp $
+
+inherit ruby
+
+DESCRIPTION="Centralized Ruby extension management system"
+HOMEPAGE="http://rubyforge.org/projects/rubygems/"
+LICENSE="|| ( Ruby GPL-2 )"
+
+# Needs to be installed first
+RESTRICT="test"
+
+# 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="mirror://rubyforge/${PN}/${P}.tgz"
+
+KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~x86-fbsd"
+SLOT="0"
+IUSE="doc server"
+DEPEND="=dev-lang/ruby-1.8*"
+RDEPEND="${DEPEND}"
+PDEPEND="server? ( dev-ruby/builder )" # index_gem_repository.rb
+
+USE_RUBY="ruby18"
+
+src_unpack() {
+ unpack ${A}
+ cd "${S}"
+
+ epatch "${FILESDIR}/${PN}-1.3.3-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"
+}
+
+src_compile() {
+ # Allowing ruby_src_compile would be bad with the new setup.rb
+ :
+}
+
+src_install() {
+ # RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455
+ export RUBYOPT="${GENTOO_RUBYOPT}"
+ ewarn "RUBYOPT=${RUBYOPT}"
+
+ # Force ebuild to use Ruby 1.8
+ export RUBY="/usr/bin/ruby18"
+
+ 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"
+
+ dodoc README || die "dodoc README failed"
+
+ cp "${FILESDIR}/auto_gem.rb" "${D}"/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]') || die "cp auto_gem.rb 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"
+}