diff options
author | Nguyen Thai Ngoc Duy <pclouds@gentoo.org> | 2007-03-31 18:11:00 +0000 |
---|---|---|
committer | Nguyen Thai Ngoc Duy <pclouds@gentoo.org> | 2007-03-31 18:11:00 +0000 |
commit | 5466380ec23d04842181ad9e1a83ff6762ae4e66 (patch) | |
tree | c5ca5bce018f9210cae774dab5bfbf94474f3192 /dev-ruby/rubygems | |
parent | ia64 + x86 stable wrt security bug 172527 (diff) | |
download | gentoo-2-5466380ec23d04842181ad9e1a83ff6762ae4e66.tar.gz gentoo-2-5466380ec23d04842181ad9e1a83ff6762ae4e66.tar.bz2 gentoo-2-5466380ec23d04842181ad9e1a83ff6762ae4e66.zip |
Added dev-ruby/rubygems-0.9.2
(Portage version: 2.1.2-r9)
Diffstat (limited to 'dev-ruby/rubygems')
-rw-r--r-- | dev-ruby/rubygems/ChangeLog | 8 | ||||
-rw-r--r-- | dev-ruby/rubygems/files/digest-rubygems-0.9.2 | 3 | ||||
-rw-r--r-- | dev-ruby/rubygems/rubygems-0.9.2.ebuild | 70 |
3 files changed, 80 insertions, 1 deletions
diff --git a/dev-ruby/rubygems/ChangeLog b/dev-ruby/rubygems/ChangeLog index a925304606bd..5c233c085f9f 100644 --- a/dev-ruby/rubygems/ChangeLog +++ b/dev-ruby/rubygems/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for dev-ruby/rubygems # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.51 2007/02/14 16:06:04 kloeri Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.52 2007/03/31 18:11:00 pclouds Exp $ + +*rubygems-0.9.2 (31 Mar 2007) + + 31 Mar 2007; Nguyễn Thái Ngọc Duy <pclouds@gentoo.org> + +rubygems-0.9.2.ebuild: + Version bump 14 Feb 2007; Bryan Østergaard <kloeri@gentoo.org> rubygems-0.8.11-r6.ebuild: diff --git a/dev-ruby/rubygems/files/digest-rubygems-0.9.2 b/dev-ruby/rubygems/files/digest-rubygems-0.9.2 new file mode 100644 index 000000000000..57bc76d6715b --- /dev/null +++ b/dev-ruby/rubygems/files/digest-rubygems-0.9.2 @@ -0,0 +1,3 @@ +MD5 cc525053dd465ab6e33af382166fa808 rubygems-0.9.2.tgz 197256 +RMD160 377695029d862b46dd196ec82a13f1c99fc1a633 rubygems-0.9.2.tgz 197256 +SHA256 2c78ce49761c2d0f3026d3d64197f275e84fc499297f2663bb099c686065ae3a rubygems-0.9.2.tgz 197256 diff --git a/dev-ruby/rubygems/rubygems-0.9.2.ebuild b/dev-ruby/rubygems/rubygems-0.9.2.ebuild new file mode 100644 index 000000000000..d105f2848be7 --- /dev/null +++ b/dev-ruby/rubygems/rubygems-0.9.2.ebuild @@ -0,0 +1,70 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-0.9.2.ebuild,v 1.1 2007/03/31 18:11:00 pclouds Exp $ + +RUBY_BUG_145222=yes +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/17190/${P}.tgz" + +KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +SLOT="0" +IUSE="doc server examples" +DEPEND=">=dev-lang/ruby-1.8" +PDEPEND="server? ( dev-ruby/builder )" # index_gem_repository.rb + +PATCHES="${FILESDIR}/${PN}-0.9.1-no_post_install.patch + ${FILESDIR}/no-system-rubygems.patch" +USE_RUBY="ruby18" + +src_unpack() { + ruby_src_unpack + use doc || epatch "${FILESDIR}/${PN}-0.9.1-no_rdoc_install.patch" + cd ${S} + find -name '.*' -type f -print0|xargs -0 rm +} + +src_compile() { + return +} + +src_install() { + # RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455 + export RUBYOPT="${GENTOO_RUBYOPT}" + ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["MAJOR"] + "." + Config::CONFIG["MINOR"]') + GEM_HOME=${D}usr/lib/ruby/gems/$ver ruby_src_install + cp "${FILESDIR}/auto_gem.rb" "${D}"/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]') + keepdir /usr/lib/ruby/gems/$ver/doc + doenvd "${FILESDIR}/10rubygems" +} + +src_test() { + #rake test || die "test failed" + for i in test/{test,functional}*.rb; do + ruby ${i} || die "$i failed" + done +} + +pkg_postinst() +{ + ewarn "If you have previously switched to using ruby18_with_gems using ruby-config, this" + ewarn "package has removed that file and makes it unnecessary anymore. Please use ruby-config" + ewarn "to revert back to ruby18." +} + +pkg_postrm() +{ + # If we potentially downgraded, then getting rid of RUBYOPT from env.d is probably a smart idea. + env-update + source /etc/profile + ewarn "You have removed dev-ruby/rubygems. Ruby applications are unlikely" + ewarn "to run in current shells because of missing auto_gem." + ewarn "Please source /etc/profile in your shells before using ruby" + ewarn "or start new shells" +} |