1 |
commit: f49cd18685bf92a7a7d1eeb57cd6f4b5bf29259e |
2 |
Author: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Feb 17 22:12:17 2016 +0000 |
4 |
Commit: Manuel Rüger <mrueg <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 17 22:12:33 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f49cd186 |
7 |
|
8 |
dev-ruby/stringex: Version bump |
9 |
|
10 |
Package-Manager: portage-2.2.27 |
11 |
|
12 |
dev-ruby/stringex/Manifest | 1 + |
13 |
dev-ruby/stringex/stringex-2.6.0.ebuild | 51 +++++++++++++++++++++++++++++++++ |
14 |
2 files changed, 52 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/stringex/Manifest b/dev-ruby/stringex/Manifest |
17 |
index 80ea041..925f97d 100644 |
18 |
--- a/dev-ruby/stringex/Manifest |
19 |
+++ b/dev-ruby/stringex/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST stringex-2.5.2.gem 128000 SHA256 27a8ee92a808a83284438e51ed391f3539ae6b39731b95cb4ad940974f6d0a94 SHA512 06905b5d59b40f59c0901bbaacbf303cd906be110cd69a4b8cc29cecd69b6aa73d80cee0c9c0e2014f662b9fca1611c0fe334fcba3c4fa686224dac94f4e0d41 WHIRLPOOL 21a66f7babd2424035e4874d9f5168736c81f6da8388764633d9618064998bfeb076076cfd0d9125583903be25070fa329c4e8fccd81ebb8f801c4447e6be7b4 |
22 |
+DIST stringex-2.6.0.gem 129536 SHA256 15611e3765430e6e4cb794d289be6bb7b8a8c873d3ff6fd7dbf8c222c68f7ff6 SHA512 a54bf6ab9fcb0a11f6e27a125e6b1d8a49fa0ef4ca703d512c99a20ad59316184017a30e8fede5e7df3449cac53a395f530dde2033d6b15ca540b2c51aab92eb WHIRLPOOL f9102672888332145cc7548f971d5cde6550391e155c4a27ec5796cfd6aa2cc92dcedd51d431705362fd5b7fe362a713aa718d5741eb35a56348a885f41426f6 |
23 |
|
24 |
diff --git a/dev-ruby/stringex/stringex-2.6.0.ebuild b/dev-ruby/stringex/stringex-2.6.0.ebuild |
25 |
new file mode 100644 |
26 |
index 0000000..c38d197 |
27 |
--- /dev/null |
28 |
+++ b/dev-ruby/stringex/stringex-2.6.0.ebuild |
29 |
@@ -0,0 +1,51 @@ |
30 |
+# Copyright 1999-2016 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+# $Id$ |
33 |
+ |
34 |
+EAPI=5 |
35 |
+USE_RUBY="ruby20 ruby21" |
36 |
+ |
37 |
+RUBY_FAKEGEM_DOC_DIR="rdoc" |
38 |
+RUBY_FAKEGEM_EXTRADOC="README.rdoc" |
39 |
+ |
40 |
+inherit ruby-fakegem |
41 |
+ |
42 |
+DESCRIPTION="Extensions for Ruby's String class" |
43 |
+HOMEPAGE="https://github.com/rsl/stringex" |
44 |
+LICENSE="MIT" |
45 |
+ |
46 |
+SLOT="0" |
47 |
+KEYWORDS="~amd64 ~arm ~ppc ~ppc64 ~x86" |
48 |
+IUSE="test" |
49 |
+ |
50 |
+# we could rely on activerecord[sqlite3], but since we do not remove the |
51 |
+# sqlite3 adapter from activerecord when building -sqlite3, it's easier |
52 |
+# to just add another dependency, so the user doesn't have to change the |
53 |
+# USE flags at all. |
54 |
+ruby_add_bdepend " |
55 |
+ test? ( |
56 |
+ >=dev-ruby/i18n-0.6.9:0.6 |
57 |
+ dev-ruby/redcloth |
58 |
+ dev-ruby/test-unit:2 |
59 |
+ )" |
60 |
+ |
61 |
+USE_RUBY=${USE_RUBY/ruby22/} ruby_add_bdepend "test? ( >=dev-ruby/activerecord-3 dev-ruby/sqlite3 )" |
62 |
+ |
63 |
+all_ruby_prepare() { |
64 |
+ sed -i -e '1agem "i18n", "~>0.6.9"' test/test_helper.rb || die |
65 |
+} |
66 |
+ |
67 |
+each_ruby_prepare() { |
68 |
+ case ${RUBY} in |
69 |
+ *ruby22) |
70 |
+ # Avoid tests depending on Rails until we have a version |
71 |
+ # keyworded. |
72 |
+ rm -rf test/unit/{acts_as_url,localization}* || die |
73 |
+ ;; |
74 |
+ esac |
75 |
+} |
76 |
+ |
77 |
+each_ruby_test() { |
78 |
+ # rake seems to break this |
79 |
+ ruby-ng_testrb-2 -Ilib -Itest test/unit/*/*_test.rb test/performance/*_test.rb || die "tests failed" |
80 |
+} |