diff options
author | Hans de Graaff <graaff@gentoo.org> | 2016-07-15 07:37:57 +0200 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2016-07-15 07:37:57 +0200 |
commit | 6e97fe62daa9020aed2b14642cbcf7a45253cbb5 (patch) | |
tree | 84a99ab097f3317d26f292e54659d061efa2101f /dev-ruby/stringex | |
parent | dev-ruby/mime-types: add ruby23 (diff) | |
download | gentoo-6e97fe62daa9020aed2b14642cbcf7a45253cbb5.tar.gz gentoo-6e97fe62daa9020aed2b14642cbcf7a45253cbb5.tar.bz2 gentoo-6e97fe62daa9020aed2b14642cbcf7a45253cbb5.zip |
dev-ruby/stringex: add ruby23
Package-Manager: portage-2.2.28
Diffstat (limited to 'dev-ruby/stringex')
-rw-r--r-- | dev-ruby/stringex/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/stringex/stringex-2.6.1.ebuild | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/dev-ruby/stringex/Manifest b/dev-ruby/stringex/Manifest index 925f97d72976..3f52e80ea10c 100644 --- a/dev-ruby/stringex/Manifest +++ b/dev-ruby/stringex/Manifest @@ -1,2 +1,3 @@ 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 +DIST stringex-2.6.1.gem 130048 SHA256 e19fcf32cc429a12d454b14db3a43a6227ee9da233b10240fe1572c9aae7ce65 SHA512 b2ca4de05a8a1e3ef9fa85324f2280a27de7ef04ac3eb0f76006e07d86e5fa0fc84acd4ee6d39f86416bc769cf4e2804421703533b8609a18228cdfeb769a841 WHIRLPOOL 41e78d6563c166bd2e933caee86d3f61538b60d643344a576c7d636d2664e885c95ff6fafaa42c0563aaf8b9ef8f246016523544dbf88bfc8686be2d34b4ddb1 diff --git a/dev-ruby/stringex/stringex-2.6.1.ebuild b/dev-ruby/stringex/stringex-2.6.1.ebuild new file mode 100644 index 000000000000..5d8da227c4e5 --- /dev/null +++ b/dev-ruby/stringex/stringex-2.6.1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 +USE_RUBY="ruby20 ruby21 ruby22" + +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 + >=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_test() { + # rake seems to break this + ruby-ng_testrb-2 -Ilib -Itest test/unit/*/*_test.rb test/performance/*_test.rb || die "tests failed" +} |