/[gentoo-x86]/dev-ruby/rubygems/rubygems-0.8.11-r5.ebuild
Gentoo

Contents of /dev-ruby/rubygems/rubygems-0.8.11-r5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.12 - (show annotations) (download)
Tue May 1 17:23:00 2007 UTC (11 years, 11 months ago) by graaff
Branch: MAIN
CVS Tags: HEAD
Changes since 1.11: +1 -1 lines
FILE REMOVED
Remove old version
(Portage version: 2.1.2.2)

1 # Copyright 1999-2007 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-0.8.11-r5.ebuild,v 1.11 2007/02/28 22:07:44 genstef Exp $
4
5 inherit ruby
6
7 DESCRIPTION="Centralized Ruby extension management system"
8 HOMEPAGE="http://rubyforge.org/projects/rubygems/"
9 LICENSE="Ruby"
10
11 # The URL depends implicitly on the version, unfortunately. Even if you
12 # change the filename on the end, it still downloads the same file.
13 SRC_URI="http://rubyforge.org/frs/download.php/5207/${P}.tgz"
14
15 KEYWORDS="amd64 ia64 ppc ppc64 sparc x86 ~x86-fbsd"
16 SLOT="0"
17 IUSE=""
18 DEPEND=">=dev-lang/ruby-1.8"
19
20 PATCHES="${FILESDIR}/no_post_install.patch
21 ${FILESDIR}/no-manage_gems.patch"
22 USE_RUBY="ruby18"
23
24 src_compile() {
25 return
26 }
27
28 src_install() {
29 # RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455
30 export RUBYOPT="${GENTOO_RUBYOPT}"
31 ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["MAJOR"] + "." + Config::CONFIG["MINOR"]')
32 GEM_HOME=${D}usr/lib/ruby/gems/$ver ruby_src_install
33 cp ${FILESDIR}/auto_gem.rb ${D}/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')
34 keepdir /usr/lib/ruby/gems/$ver/doc
35 doenvd ${FILESDIR}/10rubygems
36 }
37
38 pkg_postinst()
39 {
40 ewarn "If you have previously switched to using ruby18_with_gems using ruby-config, this"
41 ewarn "package has removed that file and makes it unnecessary anymore. Please use ruby-config"
42 ewarn "to revert back to ruby18."
43 }
44
45 pkg_postrm()
46 {
47 # If we potentially downgraded, then getting rid of RUBYOPT from env.d is probably a smart idea.
48 env-update
49 source /etc/profile
50 }

  ViewVC Help
Powered by ViewVC 1.1.20