/[gentoo-x86]/dev-ruby/rubygems/rubygems-0.9.0-r1.ebuild
Gentoo

Contents of /dev-ruby/rubygems/rubygems-0.9.0-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Fri Jan 26 15:39:28 2007 UTC (12 years, 2 months ago) by pclouds
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +1 -1 lines
FILE REMOVED
#163536 and cleanup for 0.9.1
(Portage version: 2.1.2_rc4-r5)
 (Unsigned Manifest commit)

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.9.0-r1.ebuild,v 1.2 2007/01/21 08:15:04 pclouds Exp $
4
5 RUBY_BUG_145222=yes
6 inherit ruby
7
8 DESCRIPTION="Centralized Ruby extension management system"
9 HOMEPAGE="http://rubyforge.org/projects/rubygems/"
10 LICENSE="Ruby"
11
12 # The URL depends implicitly on the version, unfortunately. Even if you
13 # change the filename on the end, it still downloads the same file.
14 SRC_URI="http://rubyforge.org/frs/download.php/11289/${P}.tgz"
15
16 KEYWORDS="~amd64 ~hppa ~ia64 ~ppc ~ppc-macos ~ppc64 ~sparc ~x86 ~x86-fbsd"
17 SLOT="0"
18 IUSE="examples"
19 DEPEND=">=dev-lang/ruby-1.8"
20
21 PATCHES="${FILESDIR}/no_post_install.patch
22 ${FILESDIR}/${P}-build-c-extensions.patch"
23 USE_RUBY="ruby18"
24
25 src_compile() {
26 return
27 }
28
29 src_install() {
30 ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["MAJOR"] + "." + Config::CONFIG["MINOR"]')
31 GEM_HOME=${D}/usr/lib/ruby/gems/$ver ruby_src_install
32 cp "${FILESDIR}/auto_gem.rb" "${D}"/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')
33 keepdir /usr/lib/ruby/gems/$ver/doc
34 doenvd "${FILESDIR}/10rubygems"
35 }
36
37 pkg_postinst()
38 {
39 ewarn "If you have previously switched to using ruby18_with_gems using ruby-config, this"
40 ewarn "package has removed that file and makes it unnecessary anymore. Please use ruby-config"
41 ewarn "to revert back to ruby18."
42 }
43
44 pkg_postrm()
45 {
46 # If we potentially downgraded, then getting rid of RUBYOPT from env.d is probably a smart idea.
47 env-update
48 source /etc/profile
49 }

  ViewVC Help
Powered by ViewVC 1.1.20