1 |
commit: de36b5cec77db0e1930e70fcc078b7b03d292e83 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Tue Feb 6 06:25:51 2018 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Feb 7 06:30:19 2018 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=de36b5ce |
7 |
|
8 |
dev-ruby/nokogumbo: add 1.5.0 |
9 |
|
10 |
Package-Manager: Portage-2.3.19, Repoman-2.3.6 |
11 |
|
12 |
dev-ruby/nokogumbo/Manifest | 1 + |
13 |
dev-ruby/nokogumbo/nokogumbo-1.5.0.ebuild | 44 +++++++++++++++++++++++++++++++ |
14 |
2 files changed, 45 insertions(+) |
15 |
|
16 |
diff --git a/dev-ruby/nokogumbo/Manifest b/dev-ruby/nokogumbo/Manifest |
17 |
index f743464cbbd..6173a241143 100644 |
18 |
--- a/dev-ruby/nokogumbo/Manifest |
19 |
+++ b/dev-ruby/nokogumbo/Manifest |
20 |
@@ -1 +1,2 @@ |
21 |
DIST nokogumbo-1.4.13.gem 228352 BLAKE2B 60e85f1cadc2c8b98d067c9bf0f651057e709f204d7ffa7759ec68090b816e8b17a0d12dce4a5d6f6efd372c931f75ef54c439a5496d0fe696edd8795488cd8f SHA512 369743cab4a4bd3ffa5eee4f46074099afd253b66ef5ef9303b79d5e5ce1375f33b73916f1712e256044a00335bdb6595f2ce028e02169607252f32dd9dff9b0 |
22 |
+DIST nokogumbo-1.5.0.gem 228352 BLAKE2B 66740dfb9bd9edea13c6bc872e1cadf855116ee7247c7691210d3eaa81ad4c7b972fe8edd02a6f7ade6c172c870923c9af3fc24b10c5594cd0255b2fa0c2cd82 SHA512 a89ec7ae4d42cce5431070e790f0f10734655654f6f680c0b949fab7527b6a811953f1c3c13d633427b40980f9e9bd434a9afe1a9d1f1e504af05246d96be77e |
23 |
|
24 |
diff --git a/dev-ruby/nokogumbo/nokogumbo-1.5.0.ebuild b/dev-ruby/nokogumbo/nokogumbo-1.5.0.ebuild |
25 |
new file mode 100644 |
26 |
index 00000000000..7ad6e455e8b |
27 |
--- /dev/null |
28 |
+++ b/dev-ruby/nokogumbo/nokogumbo-1.5.0.ebuild |
29 |
@@ -0,0 +1,44 @@ |
30 |
+# Copyright 1999-2018 Gentoo Foundation |
31 |
+# Distributed under the terms of the GNU General Public License v2 |
32 |
+ |
33 |
+EAPI=6 |
34 |
+ |
35 |
+USE_RUBY="ruby22 ruby23 ruby24 ruby25" |
36 |
+ |
37 |
+RUBY_FAKEGEM_RECIPE_TEST="none" |
38 |
+ |
39 |
+RUBY_FAKEGEM_RECIPE_DOC="rdoc" |
40 |
+RUBY_FAKEGEM_EXTRADOC="README.md" |
41 |
+ |
42 |
+inherit ruby-fakegem |
43 |
+ |
44 |
+DESCRIPTION="A Nokogiri interface to the Gumbo HTML5 parser" |
45 |
+HOMEPAGE="https://github.com/rubys/nokogumbo" |
46 |
+ |
47 |
+LICENSE="Apache-2.0" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
50 |
+IUSE="" |
51 |
+ |
52 |
+RDEPEND+=">=dev-libs/gumbo-0.10" |
53 |
+ |
54 |
+ruby_add_rdepend ">=dev-ruby/nokogiri-1.6.5-r1" |
55 |
+ |
56 |
+all_ruby_prepare() { |
57 |
+ # Define rakehome in scope |
58 |
+ sed -i -e "1irakehome=File.expand_path('../../')" ext/nokogumboc/extconf.rb || die |
59 |
+} |
60 |
+ |
61 |
+each_ruby_configure() { |
62 |
+ ${RUBY} -Cext/nokogumboc extconf.rb || die |
63 |
+ sed -i -e 's:-Wl,--no-undefined::' ext/nokogumboc/Makefile || die |
64 |
+} |
65 |
+ |
66 |
+each_ruby_compile() { |
67 |
+ emake -Cext/nokogumboc V=1 |
68 |
+ cp ext/nokogumboc/nokogumboc.so lib/ || die |
69 |
+} |
70 |
+ |
71 |
+each_ruby_test() { |
72 |
+ ${RUBY} -Ilib test-nokogumbo.rb || die |
73 |
+} |