1 |
commit: ebccde55faac914ea96b744a9723b2ee542f2152 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Aug 15 06:18:59 2020 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Aug 15 06:19:16 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ebccde55 |
7 |
|
8 |
dev-ruby/nokogiri: add 1.10.10 |
9 |
|
10 |
Package-Manager: Portage-2.3.103, Repoman-2.3.23 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/nokogiri/Manifest | 1 + |
14 |
dev-ruby/nokogiri/nokogiri-1.10.10.ebuild | 93 +++++++++++++++++++++++++++++++ |
15 |
2 files changed, 94 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/nokogiri/Manifest b/dev-ruby/nokogiri/Manifest |
18 |
index 3d165204603..ab1c3a6acc6 100644 |
19 |
--- a/dev-ruby/nokogiri/Manifest |
20 |
+++ b/dev-ruby/nokogiri/Manifest |
21 |
@@ -1 +1,2 @@ |
22 |
+DIST nokogiri-1.10.10-git.tgz 5793723 BLAKE2B 13829f6cc31c2b81462fdf306222ff27830d80aeea922ce4c3adceee4ce7486c0571ab76b3f07b14f1767af7b433af9e0eb83d02f8bcea989fa7e96c9cc743f3 SHA512 2d0bf09af417f0f5e7b07b9f2c555ce04e22d69ce73b484906d8a35745f90d6467824d0d56d8dadc53f020c56a7806e7152cd6347e47596e79ddaaadea1ff65a |
23 |
DIST nokogiri-1.10.4-git.tgz 5792963 BLAKE2B 80223c7bda39c56ced8e98d1d9f6858907f2814eb2d9f28d13c9f26fe29ae7f057e5a19765a3b304ffc4f9edd3dd0f77b99d5a673923ce95a8f02135aa9882ca SHA512 c27877297d432b9a9baf3e0639600d6ca5b382a87ff0dc1efb5d9bb3c79aaa31a589a4491f938283e4f9d35e8d29b6f88a60e27a5d4c81e7b491e100f8d06a9d |
24 |
|
25 |
diff --git a/dev-ruby/nokogiri/nokogiri-1.10.10.ebuild b/dev-ruby/nokogiri/nokogiri-1.10.10.ebuild |
26 |
new file mode 100644 |
27 |
index 00000000000..1aff0b2b49c |
28 |
--- /dev/null |
29 |
+++ b/dev-ruby/nokogiri/nokogiri-1.10.10.ebuild |
30 |
@@ -0,0 +1,93 @@ |
31 |
+# Copyright 1999-2020 Gentoo Authors |
32 |
+# Distributed under the terms of the GNU General Public License v2 |
33 |
+ |
34 |
+EAPI=7 |
35 |
+ |
36 |
+USE_RUBY="ruby25 ruby26 ruby27" |
37 |
+ |
38 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md ROADMAP.md STANDARD_RESPONSES.md" |
39 |
+ |
40 |
+RUBY_FAKEGEM_EXTRAINSTALL="ext" |
41 |
+ |
42 |
+inherit ruby-fakegem eutils multilib |
43 |
+ |
44 |
+DESCRIPTION="Nokogiri is an HTML, XML, SAX, and Reader parser" |
45 |
+HOMEPAGE="https://www.nokogiri.org/" |
46 |
+LICENSE="MIT" |
47 |
+SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P}-git.tgz" |
48 |
+ |
49 |
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" |
50 |
+SLOT="0" |
51 |
+IUSE="" |
52 |
+ |
53 |
+RDEPEND="${RDEPEND} |
54 |
+ >=dev-libs/libxml2-2.9.10:= |
55 |
+ >=dev-libs/libxslt-1.1.34 |
56 |
+ virtual/libiconv" |
57 |
+DEPEND="${DEPEND} |
58 |
+ >=dev-libs/libxml2-2.9.10 |
59 |
+ >=dev-libs/libxslt-1.1.34 |
60 |
+ virtual/libiconv" |
61 |
+ |
62 |
+ruby_add_bdepend " |
63 |
+ >=dev-ruby/pkg-config-1.1.7 |
64 |
+ >=dev-ruby/rexical-1.0.7 |
65 |
+ dev-ruby/rdoc |
66 |
+ dev-ruby/racc |
67 |
+ test? ( dev-ruby/minitest )" |
68 |
+ |
69 |
+all_ruby_prepare() { |
70 |
+ sed -i \ |
71 |
+ -e '/tasks\/cross_compile/s:^:#:' \ |
72 |
+ -e '/:test.*prerequisites/s:^:#:' \ |
73 |
+ -e '/license/ s:^:#:' \ |
74 |
+ Rakefile || die |
75 |
+ # Remove the cross compilation options since they interfere with |
76 |
+ # native building. |
77 |
+ sed -i -e 's/cross_compile = true/cross_compile = false/' Rakefile || die |
78 |
+ sed -i -e '/cross_config_options/d' Rakefile || die |
79 |
+ |
80 |
+ sed -i -e '/simplecov/,/^end/ s:^:#:' test/helper.rb || die |
81 |
+} |
82 |
+ |
83 |
+each_ruby_configure() { |
84 |
+ NOKOGIRI_USE_SYSTEM_LIBRARIES=true \ |
85 |
+ ${RUBY} -Cext/${PN} extconf.rb \ |
86 |
+ --with-zlib-include="${EPREFIX}"/usr/include \ |
87 |
+ --with-zlib-lib="${EPREFIX}"/$(get_libdir) \ |
88 |
+ --with-iconv-include="${EPREFIX}"/usr/include \ |
89 |
+ --with-iconv-lib="${EPREFIX}"/$(get_libdir) \ |
90 |
+ --with-xml2-include="${EPREFIX}"/usr/include/libxml2 \ |
91 |
+ --with-xml2-lib="${EPREFIX}"/usr/$(get_libdir) \ |
92 |
+ --with-xslt-dir="${EPREFIX}"/usr \ |
93 |
+ --with-iconvlib=iconv \ |
94 |
+ || die "extconf.rb failed" |
95 |
+} |
96 |
+ |
97 |
+each_ruby_compile() { |
98 |
+ if ! [[ -f lib/nokogiri/css/tokenizer.rb ]]; then |
99 |
+ ${RUBY} -S rake lib/nokogiri/css/tokenizer.rb || die "rexical failed" |
100 |
+ fi |
101 |
+ |
102 |
+ if ! [[ -f lib/nokogiri/css/parser.rb ]]; then |
103 |
+ ${RUBY} -S rake lib/nokogiri/css/parser.rb || die "racc failed" |
104 |
+ fi |
105 |
+ |
106 |
+ emake -Cext/${PN} \ |
107 |
+ V=1 \ |
108 |
+ CFLAGS="${CFLAGS} -fPIC" \ |
109 |
+ archflag="${LDFLAGS}" || die "make extension failed" |
110 |
+ cp -l ext/${PN}/${PN}$(get_modname) lib/${PN}/ || die |
111 |
+} |
112 |
+ |
113 |
+each_ruby_test() { |
114 |
+ ${RUBY} -Ilib:.:test -e 'Dir["test/**/test_*.rb"].each {|f| require f}' || die |
115 |
+} |
116 |
+ |
117 |
+each_ruby_install() { |
118 |
+ # Clean up "ext" directory before installing it. nokogumbo expects |
119 |
+ # the header files and shared object to be in ext. |
120 |
+ rm -rf ext/java ext/nokogiri/*.o ext/nokogiri/{mkmf.log,Makefile} || die |
121 |
+ |
122 |
+ each_fakegem_install |
123 |
+} |