1 |
commit: c678bec444ff7542d2f4b396b317544b18b203e6 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Jul 21 06:28:44 2017 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Jul 21 06:28:44 2017 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c678bec4 |
7 |
|
8 |
dev-ruby/locale: add ruby24 |
9 |
|
10 |
Package-Manager: Portage-2.3.6, Repoman-2.3.2 |
11 |
|
12 |
dev-ruby/locale/locale-2.1.2-r1.ebuild | 50 ++++++++++++++++++++++++++++++++++ |
13 |
1 file changed, 50 insertions(+) |
14 |
|
15 |
diff --git a/dev-ruby/locale/locale-2.1.2-r1.ebuild b/dev-ruby/locale/locale-2.1.2-r1.ebuild |
16 |
new file mode 100644 |
17 |
index 00000000000..3abd0f05bb3 |
18 |
--- /dev/null |
19 |
+++ b/dev-ruby/locale/locale-2.1.2-r1.ebuild |
20 |
@@ -0,0 +1,50 @@ |
21 |
+# Copyright 1999-2017 Gentoo Foundation |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=5 |
25 |
+ |
26 |
+USE_RUBY="ruby21 ruby22 ruby23 ruby24" |
27 |
+ |
28 |
+RUBY_FAKEGEM_TASK_DOC="" |
29 |
+RUBY_FAKEGEM_DOCDIR="doc/reference" |
30 |
+RUBY_FAKEGEM_EXTRADOC="ChangeLog README.rdoc doc/text/news.md" |
31 |
+ |
32 |
+RUBY_FAKEGEM_TASK_TEST="test" |
33 |
+ |
34 |
+inherit ruby-fakegem |
35 |
+ |
36 |
+DESCRIPTION="A pure ruby library which provides basic APIs for localization" |
37 |
+HOMEPAGE="https://github.com/ruby-gettext/locale" |
38 |
+LICENSE="|| ( Ruby GPL-2 )" |
39 |
+SRC_URI="https://github.com/ruby-gettext/locale/archive/${PV}.tar.gz -> ${P}-git.tgz" |
40 |
+ |
41 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~x86 ~x86-macos" |
42 |
+SLOT="0" |
43 |
+IUSE="" |
44 |
+ |
45 |
+ruby_add_bdepend "doc? ( dev-ruby/yard )" |
46 |
+ |
47 |
+ruby_add_bdepend "test? ( dev-ruby/test-unit:2 dev-ruby/test-unit-rr )" |
48 |
+ |
49 |
+all_ruby_prepare() { |
50 |
+ sed -i -e '/notify/ s:^:#:' test/run-test.rb || die |
51 |
+} |
52 |
+ |
53 |
+all_ruby_compile() { |
54 |
+ all_fakegem_compile |
55 |
+ |
56 |
+ if use doc ; then |
57 |
+ yard || die |
58 |
+ fi |
59 |
+} |
60 |
+ |
61 |
+each_ruby_test() { |
62 |
+ ${RUBY} test/run-test.rb || die |
63 |
+} |
64 |
+ |
65 |
+all_ruby_install() { |
66 |
+ all_fakegem_install |
67 |
+ |
68 |
+ insinto /usr/share/doc/${PF} |
69 |
+ doins -r samples || die |
70 |
+} |