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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Mon Apr 17 23:23:16 2006 UTC (13 years ago) by caleb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
remove old versions
(Portage version: 2.1_pre7-r5)

1 # Copyright 1999-2006 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-r4.ebuild,v 1.3 2006/03/29 14:07:54 agriffis 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 ~ppc-macos ppc64 ~sparc ~x86"
16 SLOT="0"
17 IUSE=""
18 DEPEND=">=dev-lang/ruby-1.8"
19
20 PATCHES="${FILESDIR}/no_post_install.patch"
21 USE_RUBY="ruby18"
22
23 src_compile() {
24 return
25 }
26
27 src_install() {
28 ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["MAJOR"] + "." + Config::CONFIG["MINOR"]')
29 GEM_HOME=${D}/usr/lib/ruby/gems/$ver ruby_src_install
30 cp ${FILESDIR}/auto_gem.rb ${D}/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')
31 keepdir /usr/lib/ruby/gems/$ver/doc
32 doenvd ${FILESDIR}/10rubygems
33 }
34
35 pkg_postinst()
36 {
37 ewarn "If you have previously switched to using ruby18_with_gems using ruby-config, this"
38 ewarn "package has removed that file and makes it unnecessary anymore. Please use ruby-config"
39 ewarn "to revert back to ruby18."
40 }

  ViewVC Help
Powered by ViewVC 1.1.20