summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDiego Elio Pettenò <flameeyes@gentoo.org>2012-08-14 16:57:17 +0000
committerDiego Elio Pettenò <flameeyes@gentoo.org>2012-08-14 16:57:17 +0000
commit7f72d56a2d0f529d9297d9d461c77f9711c6ce0e (patch)
tree3f03c2f954c9c41b8ad2a7c308361c30e2249936
parentRemove app-laptop/omnibook per bug #426542 (diff)
downloadgentoo-2-7f72d56a2d0f529d9297d9d461c77f9711c6ce0e.tar.gz
gentoo-2-7f72d56a2d0f529d9297d9d461c77f9711c6ce0e.tar.bz2
gentoo-2-7f72d56a2d0f529d9297d9d461c77f9711c6ce0e.zip
Disable test task (drops rake dependency for USE=test); use Test::Unit 2 and the ruby-ng helper for tests; respect user-defined CFLAGS and LDFLAGS.
(Portage version: 2.2.0_alpha120/cvs/Linux x86_64)
-rw-r--r--dev-ruby/unf_ext/ChangeLog7
-rw-r--r--dev-ruby/unf_ext/unf_ext-0.0.5.ebuild12
2 files changed, 13 insertions, 6 deletions
diff --git a/dev-ruby/unf_ext/ChangeLog b/dev-ruby/unf_ext/ChangeLog
index 0b802daf09ce..756b92d09b47 100644
--- a/dev-ruby/unf_ext/ChangeLog
+++ b/dev-ruby/unf_ext/ChangeLog
@@ -1,6 +1,10 @@
# ChangeLog for dev-ruby/unf_ext
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/unf_ext/ChangeLog,v 1.2 2012/06/10 06:10:28 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/unf_ext/ChangeLog,v 1.3 2012/08/14 16:57:17 flameeyes Exp $
+
+ 14 Aug 2012; Diego E. Pettenò <flameeyes@gentoo.org> unf_ext-0.0.5.ebuild:
+ Disable test task (drops rake dependency for USE=test); use Test::Unit 2 and
+ the ruby-ng helper for tests; respect user-defined CFLAGS and LDFLAGS.
*unf_ext-0.0.5 (10 Jun 2012)
@@ -12,4 +16,3 @@
09 Apr 2012; Hans de Graaff <graaff@gentoo.org> +unf_ext-0.0.4.ebuild,
+metadata.xml:
Initial import. Implicit dependency for new versions of mechanize.
-
diff --git a/dev-ruby/unf_ext/unf_ext-0.0.5.ebuild b/dev-ruby/unf_ext/unf_ext-0.0.5.ebuild
index fe66cd1b0b1a..d8016e2f55e8 100644
--- a/dev-ruby/unf_ext/unf_ext-0.0.5.ebuild
+++ b/dev-ruby/unf_ext/unf_ext-0.0.5.ebuild
@@ -1,11 +1,12 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/unf_ext/unf_ext-0.0.5.ebuild,v 1.1 2012/06/10 06:10:28 graaff Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/unf_ext/unf_ext-0.0.5.ebuild,v 1.2 2012/08/14 16:57:17 flameeyes Exp $
EAPI=4
USE_RUBY="ruby18 ruby19 ree18"
+RUBY_FAKEGEM_RECIPE_TEST="none"
RUBY_FAKEGEM_DOCDIR="doc"
RUBY_FAKEGEM_EXTRADOC="README.md"
@@ -21,7 +22,10 @@ KEYWORDS="~amd64"
IUSE="doc test"
ruby_add_bdepend "doc? ( dev-ruby/hoe dev-ruby/jeweler )
- test? ( dev-ruby/shoulda )"
+ test? (
+ >=dev-ruby/test-unit-2.5.1-r1
+ dev-ruby/shoulda
+ )"
all_ruby_prepare() {
sed -i -e '/bundler/,/end/ s:^:#:' Rakefile test/helper.rb || die
@@ -32,10 +36,10 @@ each_ruby_configure() {
}
each_ruby_compile() {
- emake -Cext/unf_ext
+ emake -Cext/unf_ext CFLAGS="${CFLAGS} -fPIC" archflag="${LDFLAGS}"
cp ext/unf_ext/*$(get_modname) lib/ || die
}
each_ruby_test() {
- ${RUBY} -S testrb test/test_*.rb || die
+ ruby-ng_testrb-2 test/test_*.rb
}