Gentoo Archives: gentoo-commits

From: "Michael Sterrett (mr_bones_)" <mr_bones_@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in dev-ruby/rubygems: ChangeLog rubygems-1.1.0.ebuild rubygems-1.1.0-r0.ebuild
Date: Sun, 30 Mar 2008 03:37:40
Message-Id: E1JfoMS-0004bk-MQ@stork.gentoo.org
1 mr_bones_ 08/03/30 03:37:36
2
3 Modified: ChangeLog
4 Added: rubygems-1.1.0.ebuild
5 Removed: rubygems-1.1.0-r0.ebuild
6 Log:
7 rename rubygems-1.1.0-r0.ebuild to match ebuild howto guidelines
8 (Portage version: 2.1.4.4)
9
10 Revision Changes Path
11 1.87 dev-ruby/rubygems/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/ChangeLog?rev=1.87&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/ChangeLog?rev=1.87&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/ChangeLog?r1=1.86&r2=1.87
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v
20 retrieving revision 1.86
21 retrieving revision 1.87
22 diff -u -r1.86 -r1.87
23 --- ChangeLog 29 Mar 2008 15:16:20 -0000 1.86
24 +++ ChangeLog 30 Mar 2008 03:37:36 -0000 1.87
25 @@ -1,6 +1,12 @@
26 # ChangeLog for dev-ruby/rubygems
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.86 2008/03/29 15:16:20 rbrown Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/ChangeLog,v 1.87 2008/03/30 03:37:36 mr_bones_ Exp $
30 +
31 +*rubygems-1.1.0 (30 Mar 2008)
32 +
33 + 30 Mar 2008; Michael Sterrett <mr_bones_@g.o>
34 + +rubygems-1.1.0.ebuild, -rubygems-1.1.0-r0.ebuild:
35 + rename rubygems-1.1.0-r0.ebuild to match ebuild howto guidelines
36
37 *rubygems-1.1.0-r0 (29 Mar 2008)
38
39
40
41
42 1.1 dev-ruby/rubygems/rubygems-1.1.0.ebuild
43
44 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/rubygems-1.1.0.ebuild?rev=1.1&view=markup
45 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-ruby/rubygems/rubygems-1.1.0.ebuild?rev=1.1&content-type=text/plain
46
47 Index: rubygems-1.1.0.ebuild
48 ===================================================================
49 # Copyright 1999-2008 Gentoo Foundation
50 # Distributed under the terms of the GNU General Public License v2
51 # $Header: /var/cvsroot/gentoo-x86/dev-ruby/rubygems/rubygems-1.1.0.ebuild,v 1.1 2008/03/30 03:37:36 mr_bones_ Exp $
52
53 inherit ruby
54
55 DESCRIPTION="Centralized Ruby extension management system"
56 HOMEPAGE="http://rubyforge.org/projects/rubygems/"
57 LICENSE="|| ( Ruby GPL-2 )"
58
59 # Needs to be installed first
60 RESTRICT="test"
61
62 # The URL depends implicitly on the version, unfortunately. Even if you
63 # change the filename on the end, it still downloads the same file.
64 SRC_URI="http://rubyforge.org/frs/download.php/34638/${P}.tgz"
65
66 KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
67 SLOT="0"
68 IUSE="doc server examples"
69 DEPEND=">=dev-lang/ruby-1.8"
70 PDEPEND="server? ( dev-ruby/builder )" # index_gem_repository.rb
71
72 USE_RUBY="ruby18"
73
74 PATCHES="${FILESDIR}/${P}-setup.patch
75 ${FILESDIR}/${P}-dependency-installer-install-dir-fix.patch
76 "
77
78 src_unpack() {
79 ruby_src_unpack
80
81 # Delete mis-packaged . files
82 cd "${S}"
83 find -name '.*' -type f -print0|xargs -0 rm
84
85 }
86
87 src_compile() {
88 # Allowing ruby_src_compile would be bad with the new setup.rb
89 :
90 }
91
92 src_install() {
93 # RUBYOPT=-rauto_gem without rubygems installed will cause ruby to fail, bug #158455
94 export RUBYOPT="${GENTOO_RUBYOPT}"
95
96 ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["ruby_version"]')
97
98 # rubygems tries to create GEM_HOME if it doesn't exist, upsetting sandbox,
99 # bug #202109
100 export GEM_HOME="${D}/usr/$(get_libdir)/ruby/gems/${ver}"
101 keepdir /usr/$(get_libdir)/ruby/gems/$ver/{doc,gems,cache,specifications}
102
103 myconf=""
104 if ! use doc; then
105 myconf="${myconf} --no-ri"
106 myconf="${myconf} --no-rdoc"
107 fi
108
109 ${RUBY} setup.rb $myconf --prefix="${D}" || die "setup.rb install failed"
110
111 dosym /usr/bin/gem18 /usr/bin/gem || die "dosym gem failed"
112
113 #This is used to update rubygems, do not want.
114 rm "${D}/usr/bin/update_rubygems18"
115
116 dodoc README
117 if use examples; then
118 cp -pPR examples "${D}/usr/share/doc/${PF}"
119 fi
120
121 cp "${FILESDIR}/auto_gem.rb" "${D}"/$(${RUBY} -r rbconfig -e 'print Config::CONFIG["sitedir"]')
122 doenvd "${FILESDIR}/10rubygems"
123
124 if use server; then
125 newinitd "${FILESDIR}/init.d-gem_server" gem_server
126 newconfd "${FILESDIR}/conf.d-gem_server" gem_server
127 fi
128 }
129
130 pkg_postinst()
131 {
132 ver=$(${RUBY} -r rbconfig -e 'print Config::CONFIG["ruby_version"]')
133 SOURCE_CACHE="/usr/$(get_libdir)/ruby/gems/$ver/source_cache"
134 if [[ -e "${SOURCE_CACHE}" ]]; then
135 rm "${SOURCE_CACHE}"
136 fi
137
138 ewarn "If you have previously switched to using ruby18_with_gems using ruby-config, this"
139 ewarn "package has removed that file and makes it unnecessary anymore."
140 ewarn "Please use ruby-config to revert back to ruby18."
141 }
142
143 pkg_postrm()
144 {
145 ewarn "If you have uninstalled dev-ruby/rubygems. Ruby applications are unlikely"
146 ewarn "to run in current shells because of missing auto_gem."
147 ewarn "Please run \"unset RUBYOPT\" in your shells before using ruby"
148 ewarn "or start new shells"
149 ewarn
150 ewarn "If you have not uninstalled dev-ruby/rubygems, please do not unset "
151 ewarn "RUBYOPT"
152 }
153
154
155
156 --
157 gentoo-commits@l.g.o mailing list