summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2010-05-16 16:27:28 +0000
committerHans de Graaff <graaff@gentoo.org>2010-05-16 16:27:28 +0000
commitfbb99698386be9605c8409ebbfb50a2b60ad7b05 (patch)
tree1a5d5b040bf98cf8664d88369e02b2012b5bc156 /dev-ruby
parentalpha stable wrt #306419 (diff)
downloadgentoo-2-fbb99698386be9605c8409ebbfb50a2b60ad7b05.tar.gz
gentoo-2-fbb99698386be9605c8409ebbfb50a2b60ad7b05.tar.bz2
gentoo-2-fbb99698386be9605c8409ebbfb50a2b60ad7b05.zip
Convert to ruby-ng. Run tests.
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/ruby-bsearch/ChangeLog8
-rw-r--r--dev-ruby/ruby-bsearch/ruby-bsearch-1.5-r2.ebuild36
2 files changed, 43 insertions, 1 deletions
diff --git a/dev-ruby/ruby-bsearch/ChangeLog b/dev-ruby/ruby-bsearch/ChangeLog
index cd4f43177df4..a9053cca2ebd 100644
--- a/dev-ruby/ruby-bsearch/ChangeLog
+++ b/dev-ruby/ruby-bsearch/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/ruby-bsearch
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-bsearch/ChangeLog,v 1.18 2010/01/04 11:52:19 fauli Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-bsearch/ChangeLog,v 1.19 2010/05/16 16:27:28 graaff Exp $
+
+*ruby-bsearch-1.5-r2 (16 May 2010)
+
+ 16 May 2010; Hans de Graaff <graaff@gentoo.org>
+ +ruby-bsearch-1.5-r2.ebuild:
+ Convert to ruby-ng. Run tests.
04 Jan 2010; Christian Faulhammer <fauli@gentoo.org>
ruby-bsearch-1.5-r1.ebuild:
diff --git a/dev-ruby/ruby-bsearch/ruby-bsearch-1.5-r2.ebuild b/dev-ruby/ruby-bsearch/ruby-bsearch-1.5-r2.ebuild
new file mode 100644
index 000000000000..d1635ce0f57f
--- /dev/null
+++ b/dev-ruby/ruby-bsearch/ruby-bsearch-1.5-r2.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2010 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/ruby-bsearch/ruby-bsearch-1.5-r2.ebuild,v 1.1 2010/05/16 16:27:28 graaff Exp $
+
+EAPI="2"
+USE_RUBY="ruby18"
+
+inherit ruby-ng
+
+DESCRIPTION="A binary search library for Ruby"
+HOMEPAGE="http://0xcc.net/ruby-bsearch/"
+SRC_URI="http://0xcc.net/ruby-bsearch/${P}.tar.gz"
+LICENSE="Ruby"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~mips ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
+IUSE=""
+
+DOCS="ChangeLog *.rd bsearch.png"
+
+all_ruby_prepare() {
+ sed -i 's/ruby/\$\{RUBY\}/' tests/test.sh || die "Unable to fix tests shell script."
+}
+
+each_ruby_test() {
+ pushd tests
+ RUBY=${RUBY} sh test.sh
+ popd
+}
+
+each_ruby_install() {
+ doruby bsearch.rb
+}
+
+all_ruby_install() {
+ dodoc ${DOCS}
+}