diff options
author | Richard Brown <rbrown@gentoo.org> | 2008-04-11 06:55:50 +0000 |
---|---|---|
committer | Richard Brown <rbrown@gentoo.org> | 2008-04-11 06:55:50 +0000 |
commit | 5e1b479b50c592ac90c9c8c1605d16cc0e8f9a0a (patch) | |
tree | 49a2513b4640caecbbe712d11fcf196736b71e18 /dev-ruby/rubygems | |
parent | Version bump, #217158 (diff) | |
download | gentoo-2-5e1b479b50c592ac90c9c8c1605d16cc0e8f9a0a.tar.gz gentoo-2-5e1b479b50c592ac90c9c8c1605d16cc0e8f9a0a.tar.bz2 gentoo-2-5e1b479b50c592ac90c9c8c1605d16cc0e8f9a0a.zip |
Version bump. Use mirror://rubyforge, examples aren't in tarball anymore, stop using broken PATCHES var
(Portage version: 2.1.4.4)
Diffstat (limited to 'dev-ruby/rubygems')
-rw-r--r-- | dev-ruby/rubygems/ChangeLog | 10 | ||||
-rw-r--r-- | dev-ruby/rubygems/files/rubygems-1.1.1-setup.patch | 60 | ||||
-rw-r--r-- | dev-ruby/rubygems/rubygems-1.1.0.ebuild | 6 | ||||
-rw-r--r-- | dev-ruby/rubygems/rubygems-1.1.1.ebuild | 95 |
4 files changed, 167 insertions, 4 deletions
diff --git a/dev-ruby/rubygems/ChangeLog b/dev-ruby/rubygems/ChangeLog index cfa732bb4549..dff77e23bb5b 100644 --- a/dev-ruby/rubygems/ChangeLog +++ b/dev-ruby/rubygems/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for dev-ruby/rubygems # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.88 2008/03/31 20:59:49 rbrown Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.89 2008/04/11 06:55:49 rbrown Exp $ + +*rubygems-1.1.1 (11 Apr 2008) + + 11 Apr 2008; Richard Brown <rbrown@gentoo.org> + +files/rubygems-1.1.1-setup.patch, rubygems-1.1.0.ebuild, + +rubygems-1.1.1.ebuild: + Version bump. Use mirror://rubyforge, examples aren't in tarball anymore, + stop using broken PATCHES var 31 Mar 2008; Richard Brown <rbrown@gentoo.org> rubygems-1.1.0.ebuild: Incorporate suggestions from Message-ID: diff --git a/dev-ruby/rubygems/files/rubygems-1.1.1-setup.patch b/dev-ruby/rubygems/files/rubygems-1.1.1-setup.patch new file mode 100644 index 000000000000..061137077ac8 --- /dev/null +++ b/dev-ruby/rubygems/files/rubygems-1.1.1-setup.patch @@ -0,0 +1,60 @@ +--- setup.rb.orig 2008-04-11 07:18:01.000000000 +0100 ++++ setup.rb 2008-04-11 07:14:53.000000000 +0100 +@@ -94,8 +94,8 @@ + lib_dir = Gem::ConfigMap[:sitelibdir] + bin_dir = Gem::ConfigMap[:bindir] + else +- lib_dir = File.join prefix, 'lib' +- bin_dir = File.join prefix, 'bin' ++ lib_dir = File.join prefix, Gem::ConfigMap[:sitelibdir] ++ bin_dir = File.join prefix, Gem::ConfigMap[:bindir] + + mkdir_p lib_dir + mkdir_p bin_dir +@@ -201,16 +201,6 @@ + end + end + +-# Remove source caches +- +-require 'rubygems/source_info_cache' +- +-user_cache_file = Gem::SourceInfoCache.user_cache_file +-system_cache_file = Gem::SourceInfoCache.system_cache_file +- +-rm_f user_cache_file if File.writable? File.dirname(user_cache_file) +-rm_f system_cache_file if File.writable? File.dirname(system_cache_file) +- + # install RDoc + + gem_doc_dir = File.join Gem.dir, 'doc' +@@ -220,15 +210,11 @@ + if File.writable? gem_doc_dir and + (not File.exist? rubygems_doc_dir or + File.writable? rubygems_doc_dir) then +- puts "Removing old RubyGems RDoc and ri" +- Dir[File.join(Gem.dir, 'doc', 'rubygems-[0-9]*')].each do |dir| +- rm_rf dir +- end + + def run_rdoc(*args) + args << '--quiet' + args << '--main' << 'README' +- args << '.' << 'README' << 'LICENSE.txt' << 'GPL.txt' ++ args << '.' << 'README' + + r = RDoc::RDoc.new + r.document args +@@ -251,6 +237,7 @@ + end + + # Remove stubs ++if false # Don't want this + + def stub?(path) + return unless File.readable? path +@@ -319,3 +306,4 @@ + puts "to remove it by hand." + puts + ++end diff --git a/dev-ruby/rubygems/rubygems-1.1.0.ebuild b/dev-ruby/rubygems/rubygems-1.1.0.ebuild index 0dc1838aa53c..7eff0c23ab12 100644 --- a/dev-ruby/rubygems/rubygems-1.1.0.ebuild +++ b/dev-ruby/rubygems/rubygems-1.1.0.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-1.1.0.ebuild,v 1.2 2008/03/31 20:59:49 rbrown Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-1.1.0.ebuild,v 1.3 2008/04/11 06:55:49 rbrown Exp $ inherit ruby @@ -23,9 +23,9 @@ PDEPEND="server? ( dev-ruby/builder )" # index_gem_repository.rb USE_RUBY="ruby18" -PATCHES="${FILESDIR}/${P}-setup.patch +PATCHES=(${FILESDIR}/${P}-setup.patch ${FILESDIR}/${P}-dependency-installer-install-dir-fix.patch - " + ) src_unpack() { ruby_src_unpack diff --git a/dev-ruby/rubygems/rubygems-1.1.1.ebuild b/dev-ruby/rubygems/rubygems-1.1.1.ebuild new file mode 100644 index 000000000000..5b38c6c42b65 --- /dev/null +++ b/dev-ruby/rubygems/rubygems-1.1.1.ebuild @@ -0,0 +1,95 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-1.1.1.ebuild,v 1.1 2008/04/11 06:55:49 rbrown 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 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" +SLOT="0" +IUSE="doc server" +DEPEND=">=dev-lang/ruby-1.8" +PDEPEND="server? ( dev-ruby/builder )" # index_gem_repository.rb + +USE_RUBY="ruby18" + +src_unpack() { + unpack ${A} + cd "${S}" + + epatch "${FILESDIR}/${P}-setup.patch" + + # Delete mis-packaged . files + find -name '.*' -type f -print0|xargs -0 rm + +} + +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}" + + 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 + export GEM_HOME="${D}/usr/$(get_libdir)/ruby/gems/${ver}" + 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 --prefix="${D}" || die "setup.rb install failed" + + dosym gem18 /usr/bin/gem || die "dosym gem 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_server" 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 + + 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." + ewarn "Please use ruby-config to revert back to ruby18." +} + +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" +} |