summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorManuel Rüger <mrueg@gentoo.org>2016-02-17 23:12:17 +0100
committerManuel Rüger <mrueg@gentoo.org>2016-02-17 23:12:33 +0100
commitf49cd18685bf92a7a7d1eeb57cd6f4b5bf29259e (patch)
treeebe48af292b8a1cdb99e87d1fa57bc9d7286d666 /dev-ruby/stringex
parentsys-devel/llvm: Bump the live ebuild to EAPI 6 (diff)
downloadgentoo-f49cd18685bf92a7a7d1eeb57cd6f4b5bf29259e.tar.gz
gentoo-f49cd18685bf92a7a7d1eeb57cd6f4b5bf29259e.tar.bz2
gentoo-f49cd18685bf92a7a7d1eeb57cd6f4b5bf29259e.zip
dev-ruby/stringex: Version bump
Package-Manager: portage-2.2.27
Diffstat (limited to 'dev-ruby/stringex')
-rw-r--r--dev-ruby/stringex/Manifest1
-rw-r--r--dev-ruby/stringex/stringex-2.6.0.ebuild51
2 files changed, 52 insertions, 0 deletions
diff --git a/dev-ruby/stringex/Manifest b/dev-ruby/stringex/Manifest
index 80ea04191a3d..925f97d72976 100644
--- a/dev-ruby/stringex/Manifest
+++ b/dev-ruby/stringex/Manifest
@@ -1 +1,2 @@
DIST stringex-2.5.2.gem 128000 SHA256 27a8ee92a808a83284438e51ed391f3539ae6b39731b95cb4ad940974f6d0a94 SHA512 06905b5d59b40f59c0901bbaacbf303cd906be110cd69a4b8cc29cecd69b6aa73d80cee0c9c0e2014f662b9fca1611c0fe334fcba3c4fa686224dac94f4e0d41 WHIRLPOOL 21a66f7babd2424035e4874d9f5168736c81f6da8388764633d9618064998bfeb076076cfd0d9125583903be25070fa329c4e8fccd81ebb8f801c4447e6be7b4
+DIST stringex-2.6.0.gem 129536 SHA256 15611e3765430e6e4cb794d289be6bb7b8a8c873d3ff6fd7dbf8c222c68f7ff6 SHA512 a54bf6ab9fcb0a11f6e27a125e6b1d8a49fa0ef4ca703d512c99a20ad59316184017a30e8fede5e7df3449cac53a395f530dde2033d6b15ca540b2c51aab92eb WHIRLPOOL f9102672888332145cc7548f971d5cde6550391e155c4a27ec5796cfd6aa2cc92dcedd51d431705362fd5b7fe362a713aa718d5741eb35a56348a885f41426f6
diff --git a/dev-ruby/stringex/stringex-2.6.0.ebuild b/dev-ruby/stringex/stringex-2.6.0.ebuild
new file mode 100644
index 000000000000..c38d1978ebcf
--- /dev/null
+++ b/dev-ruby/stringex/stringex-2.6.0.ebuild
@@ -0,0 +1,51 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+EAPI=5
+USE_RUBY="ruby20 ruby21"
+
+RUBY_FAKEGEM_DOC_DIR="rdoc"
+RUBY_FAKEGEM_EXTRADOC="README.rdoc"
+
+inherit ruby-fakegem
+
+DESCRIPTION="Extensions for Ruby's String class"
+HOMEPAGE="https://github.com/rsl/stringex"
+LICENSE="MIT"
+
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86"
+IUSE="test"
+
+# we could rely on activerecord[sqlite3], but since we do not remove the
+# sqlite3 adapter from activerecord when building -sqlite3, it's easier
+# to just add another dependency, so the user doesn't have to change the
+# USE flags at all.
+ruby_add_bdepend "
+ test? (
+ >=dev-ruby/i18n-0.6.9:0.6
+ dev-ruby/redcloth
+ dev-ruby/test-unit:2
+ )"
+
+USE_RUBY=${USE_RUBY/ruby22/} ruby_add_bdepend "test? ( >=dev-ruby/activerecord-3 dev-ruby/sqlite3 )"
+
+all_ruby_prepare() {
+ sed -i -e '1agem "i18n", "~>0.6.9"' test/test_helper.rb || die
+}
+
+each_ruby_prepare() {
+ case ${RUBY} in
+ *ruby22)
+ # Avoid tests depending on Rails until we have a version
+ # keyworded.
+ rm -rf test/unit/{acts_as_url,localization}* || die
+ ;;
+ esac
+}
+
+each_ruby_test() {
+ # rake seems to break this
+ ruby-ng_testrb-2 -Ilib -Itest test/unit/*/*_test.rb test/performance/*_test.rb || die "tests failed"
+}