summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2010-02-01 09:49:12 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2010-02-01 09:49:12 +0000
commitf95e4f2de2260c9807073f288b4851fdbb9aac60 (patch)
tree5e9e17ecad64570b6cdfcbf0824a6154b52eefe0 /dev-ruby/ruby-dict
parentAdd EAPI=3 support for java eclasses. Bug #303061 and patch thanks to Ulrich ... (diff)
downloadgentoo-2-f95e4f2de2260c9807073f288b4851fdbb9aac60.tar.gz
gentoo-2-f95e4f2de2260c9807073f288b4851fdbb9aac60.tar.bz2
gentoo-2-f95e4f2de2260c9807073f288b4851fdbb9aac60.zip
Port to ruby-ng, add support for JRuby.
(Portage version: 2.2_rc62/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby/ruby-dict')
-rw-r--r--dev-ruby/ruby-dict/ChangeLog10
-rw-r--r--dev-ruby/ruby-dict/ruby-dict-0.9.4-r1.ebuild (renamed from dev-ruby/ruby-dict/ruby-dict-0.9.4.ebuild)25
2 files changed, 25 insertions, 10 deletions
diff --git a/dev-ruby/ruby-dict/ChangeLog b/dev-ruby/ruby-dict/ChangeLog
index 664c11218520..aa055a9658e2 100644
--- a/dev-ruby/ruby-dict/ChangeLog
+++ b/dev-ruby/ruby-dict/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/ruby-dict
-# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-dict/ChangeLog,v 1.7 2009/03/12 08:06:46 a3li Exp $
+# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-dict/ChangeLog,v 1.8 2010/02/01 09:49:12 flameeyes Exp $
+
+*ruby-dict-0.9.4-r1 (01 Feb 2010)
+
+ 01 Feb 2010; Diego E. Pettenò <flameeyes@gentoo.org>
+ -ruby-dict-0.9.4.ebuild, +ruby-dict-0.9.4-r1.ebuild:
+ Port to ruby-ng, add support for JRuby.
12 Mar 2009; Alex Legler <a3li@gentoo.org> metadata.xml:
Removing flameeyes from metadata, as per his request.
diff --git a/dev-ruby/ruby-dict/ruby-dict-0.9.4.ebuild b/dev-ruby/ruby-dict/ruby-dict-0.9.4-r1.ebuild
index b7e4a12acc40..e05b009a3cde 100644
--- a/dev-ruby/ruby-dict/ruby-dict-0.9.4.ebuild
+++ b/dev-ruby/ruby-dict/ruby-dict-0.9.4-r1.ebuild
@@ -1,8 +1,13 @@
-# Copyright 1999-2009 Gentoo Foundation
+# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-dict/ruby-dict-0.9.4.ebuild,v 1.6 2009/01/18 10:30:59 flameeyes Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-dict/ruby-dict-0.9.4-r1.ebuild,v 1.1 2010/02/01 09:49:12 flameeyes Exp $
-inherit ruby
+EAPI=2
+
+# ruby19 → require 'md5' fails
+USE_RUBY="ruby18 jruby"
+
+inherit ruby-ng
DESCRIPTION="RFC 2229 client in Ruby"
HOMEPAGE="http://www.caliban.org/ruby/ruby-dict.shtml"
@@ -13,17 +18,21 @@ SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86 ~x86-fbsd"
IUSE=""
-USE_RUBY="ruby18"
+each_ruby_test() {
+ ewarn "Tests will use network connection"
-src_compile() { :; }
+ ${RUBY} -Ilib ./rdict test || die
+}
-src_install() {
+each_ruby_install() {
doruby lib/dict.rb || die "doruby failed"
+}
+all_ruby_install() {
dobin rdict || die "rdict failed"
- dodoc README Changelog TODO doc/rfc2229.txt
- dohtml doc/dict.html doc/rdict.html
+ dodoc README Changelog TODO doc/rfc2229.txt || die
+ dohtml doc/dict.html doc/rdict.html || die
# This would probably need a 3rb section..
# doman doc/dict.3