summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatsuu Takuto <matsuu@gentoo.org>2010-05-29 16:21:09 +0000
committerMatsuu Takuto <matsuu@gentoo.org>2010-05-29 16:21:09 +0000
commit2bb196dea45944430dd843560aab91e46c1359ba (patch)
treeb053ba72722d2d1948084c67974487e6c846e52c /dev-ruby
parentx86 stable wrt security bug #315235 (diff)
downloadgentoo-2-2bb196dea45944430dd843560aab91e46c1359ba.tar.gz
gentoo-2-2bb196dea45944430dd843560aab91e46c1359ba.tar.bz2
gentoo-2-2bb196dea45944430dd843560aab91e46c1359ba.zip
Convert to ruby-ng.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/refe/ChangeLog13
-rw-r--r--dev-ruby/refe/files/refe-0.8.0-ruby19.patch12
-rw-r--r--dev-ruby/refe/refe-0.8.0-r1.ebuild35
3 files changed, 58 insertions, 2 deletions
diff --git a/dev-ruby/refe/ChangeLog b/dev-ruby/refe/ChangeLog
index 7bb2353d8084..f412a5eea082 100644
--- a/dev-ruby/refe/ChangeLog
+++ b/dev-ruby/refe/ChangeLog
@@ -1,6 +1,15 @@
# ChangeLog for dev-ruby/refe
-# Copyright 2000-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/refe/ChangeLog,v 1.12 2009/04/14 17:37:07 graaff Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/refe/ChangeLog,v 1.13 2010/05/29 16:21:08 matsuu Exp $
+
+ 29 May 2010; MATSUU Takuto <matsuu@gentoo.org> +refe-0.8.0-r1.ebuild,
+ +files/refe-0.8.0-ruby19.patch:
+ Convert to ruby-ng.
+
+*refe-0.8.0-r1 (29 May 2010)
+
+ 29 May 2010; MATSUU Takuto <matsuu@gentoo.org> +refe-0.8.0-r1.ebuild:
+ Convert to ruby-ng.
14 Apr 2009; Hans de Graaff <graaff@gentoo.org> refe-0.8.0.ebuild:
Fix deprecated use of USE_RUBY="any".
diff --git a/dev-ruby/refe/files/refe-0.8.0-ruby19.patch b/dev-ruby/refe/files/refe-0.8.0-ruby19.patch
new file mode 100644
index 000000000000..9b4b3fd8104b
--- /dev/null
+++ b/dev-ruby/refe/files/refe-0.8.0-ruby19.patch
@@ -0,0 +1,12 @@
+diff -Naur refe-0.8.0.orig/lib/refe/mygetopt.rb refe-0.8.0/lib/refe/mygetopt.rb
+--- refe-0.8.0.orig/lib/refe/mygetopt.rb 2003-04-02 07:38:41.000000000 +0900
++++ refe-0.8.0/lib/refe/mygetopt.rb 2010-05-30 00:54:04.000000000 +0900
+@@ -11,7 +11,7 @@
+ alias orignew new
+
+ def new( usage, descripter )
+- parser = orignew( * descripter.map {|line|
++ parser = orignew( * descripter.split(/^/).map {|line|
+ line.strip!
+ next if line.empty?
+ display, shortopt, longopt, takearg, doc = line.split(/\s+/, 5)
diff --git a/dev-ruby/refe/refe-0.8.0-r1.ebuild b/dev-ruby/refe/refe-0.8.0-r1.ebuild
new file mode 100644
index 000000000000..e1147a7461fe
--- /dev/null
+++ b/dev-ruby/refe/refe-0.8.0-r1.ebuild
@@ -0,0 +1,35 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/refe/refe-0.8.0-r1.ebuild,v 1.1 2010/05/29 16:21:08 matsuu Exp $
+
+EAPI="2"
+USE_RUBY="ruby18 ruby19 ree18 jruby"
+
+inherit ruby-ng
+
+DESCRIPTION="ReFe is an interactive reference for Japanese Ruby manual"
+HOMEPAGE="http://www.loveruby.net/ja/prog/refe.html"
+SRC_URI="http://www.loveruby.net/archive/refe/${P}-withdoc.tar.gz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86"
+IUSE=""
+
+RUBY_PATCHES=( "${FILESDIR}/${P}-ruby19.patch" )
+
+each_ruby_configure() {
+ ${RUBY} setup.rb config --data-dir="/usr/share" || die
+}
+
+each_ruby_compile() {
+ ${RUBY} setup.rb setup || die
+}
+
+each_ruby_install() {
+ ${RUBY} setup.rb install --prefix="${D}" || die
+}
+
+all_ruby_install() {
+ dodoc ChangeLog NEWS README* TODO || die
+}