1 |
commit: 55435958a8ae262f74e62cd75f0023627c3a1b99 |
2 |
Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sun Oct 3 06:02:07 2021 +0000 |
4 |
Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Oct 3 06:02:16 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55435958 |
7 |
|
8 |
dev-ruby/nokogiri: add 1.12.5 |
9 |
|
10 |
Package-Manager: Portage-3.0.20, Repoman-3.0.3 |
11 |
Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> |
12 |
|
13 |
dev-ruby/nokogiri/Manifest | 1 + |
14 |
dev-ruby/nokogiri/nokogiri-1.12.5.ebuild | 96 ++++++++++++++++++++++++++++++++ |
15 |
2 files changed, 97 insertions(+) |
16 |
|
17 |
diff --git a/dev-ruby/nokogiri/Manifest b/dev-ruby/nokogiri/Manifest |
18 |
index 9ec8e80892a..047746c6abc 100644 |
19 |
--- a/dev-ruby/nokogiri/Manifest |
20 |
+++ b/dev-ruby/nokogiri/Manifest |
21 |
@@ -1,3 +1,4 @@ |
22 |
DIST nokogiri-1.11.4-git.tgz 5867481 BLAKE2B d9b0df4d6301a510824f8f31bd51e0f3beaf3cf7d3685a703782ae5fab0667b6276c0ccea20032252efc6c2dd6515577fcb21942f5d27a65815bc48f8af91137 SHA512 ca4bf385b06416f5a5b7f8fd742739181cccf93b42590c7d2d4f666846fd3a25d45c16717ae50bacd85e25644efe8584e195df7174450b8a59f2c6ef47624354 |
23 |
DIST nokogiri-1.11.6-git.tgz 5869434 BLAKE2B 222b6b9e871c124a14ac5d9ac3901d9edfa057daaba7e1179853746af50d661bd70568b326603663f890b4b0d80fbb68f8cc22637ca340fa49699f475cce1bec SHA512 a9d2977ba5a12cb252ee615cffbbf043227e78d746ecba4bfcd82fa825f5ef9fdb74feae27115b16cd65da6dd189e4ac88f1d605e776dfbc52aaf2e0e3044381 |
24 |
DIST nokogiri-1.11.7-git.tgz 5871407 BLAKE2B c0449b5cb8210d22be31f1f9a43c0c13c7ab21feae2d731bf30475fc21c69a3928395109936b9ff242a89da424a5192c8a8cb0ede9d05d6d9ac16c1d6e5a7f63 SHA512 f355185f490e0ce73fdfb496f49e36b39c89835ebef2cbe3aecbfc5aceb5a9757dc07738a709059c3e22b5808fac11e7b340b7ebbb3b2c1b5ea3df8aff0db131 |
25 |
+DIST nokogiri-1.12.5-git.tgz 6158880 BLAKE2B 994fd89c5163d92110de40e2dc654698b11d5a18524cc4b7b668ec1475e7167014e1c7604932686e6ad888f352b04ac26a7fbe526d814b20e686c5d9da95c5df SHA512 36d233df250213c4614c34d045c4fbea099e81e991a6da49067c165bc95f36b281c58cc79deb3b6a8aaccc50743a79efa27969e067cc2b546bef7615b139d79b |
26 |
|
27 |
diff --git a/dev-ruby/nokogiri/nokogiri-1.12.5.ebuild b/dev-ruby/nokogiri/nokogiri-1.12.5.ebuild |
28 |
new file mode 100644 |
29 |
index 00000000000..1a26469da1c |
30 |
--- /dev/null |
31 |
+++ b/dev-ruby/nokogiri/nokogiri-1.12.5.ebuild |
32 |
@@ -0,0 +1,96 @@ |
33 |
+# Copyright 1999-2021 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+USE_RUBY="ruby26 ruby27 ruby30" |
39 |
+ |
40 |
+RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md ROADMAP.md SECURITY.md" |
41 |
+ |
42 |
+RUBY_FAKEGEM_GEMSPEC="nokogiri.gemspec" |
43 |
+ |
44 |
+RUBY_FAKEGEM_EXTENSIONS=(ext/nokogiri/extconf.rb) |
45 |
+ |
46 |
+inherit ruby-fakegem multilib |
47 |
+ |
48 |
+DESCRIPTION="Nokogiri is an HTML, XML, SAX, and Reader parser" |
49 |
+HOMEPAGE="https://www.nokogiri.org/" |
50 |
+LICENSE="MIT" |
51 |
+SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P}-git.tgz" |
52 |
+ |
53 |
+KEYWORDS="~amd64" |
54 |
+SLOT="0" |
55 |
+IUSE="" |
56 |
+ |
57 |
+RDEPEND="${RDEPEND} |
58 |
+ >=dev-libs/libxml2-2.9.12:= |
59 |
+ >=dev-libs/libxslt-1.1.34 |
60 |
+ sys-libs/zlib |
61 |
+ virtual/libiconv" |
62 |
+DEPEND="${DEPEND} |
63 |
+ >=dev-libs/libxml2-2.9.12 |
64 |
+ >=dev-libs/libxslt-1.1.34 |
65 |
+ sys-libs/zlib |
66 |
+ virtual/libiconv" |
67 |
+ |
68 |
+ruby_add_rdepend ">=dev-ruby/racc-1.4:0" |
69 |
+ |
70 |
+ruby_add_bdepend " |
71 |
+ dev-ruby/mini_portile2:2.6 |
72 |
+ >=dev-ruby/pkg-config-1.1.7 |
73 |
+ >=dev-ruby/rexical-1.0.7 |
74 |
+ dev-ruby/rdoc |
75 |
+ test? ( dev-ruby/minitest )" |
76 |
+ |
77 |
+all_ruby_prepare() { |
78 |
+ sed -i \ |
79 |
+ -e '/tasks\/cross_compile/s:^:#:' \ |
80 |
+ -e '/:test.*prerequisites/s:^:#:' \ |
81 |
+ -e '/license/ s:^:#:' \ |
82 |
+ Rakefile || die |
83 |
+ # Remove the cross compilation options since they interfere with |
84 |
+ # native building. |
85 |
+ sed -i -e 's/cross_compile = true/cross_compile = false/' Rakefile || die |
86 |
+ sed -i -e '/cross_config_options/d' Rakefile || die |
87 |
+ |
88 |
+ sed -e '/simplecov/,/^end/ s:^:#:' \ |
89 |
+ -e '/reporters/I s:^:#:' \ |
90 |
+ -i test/helper.rb || die |
91 |
+ |
92 |
+ # There is no need for mini_portile2 to be a runtime dependency on Gentoo |
93 |
+ sed -i -e '/mini_portile2/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die |
94 |
+} |
95 |
+ |
96 |
+each_ruby_configure() { |
97 |
+ NOKOGIRI_USE_SYSTEM_LIBRARIES=true \ |
98 |
+ ${RUBY} -Cext/${PN} extconf.rb \ |
99 |
+ --with-zlib-include="${EPREFIX}"/usr/include \ |
100 |
+ --with-zlib-lib="${EPREFIX}"/$(get_libdir) \ |
101 |
+ --with-iconv-include="${EPREFIX}"/usr/include \ |
102 |
+ --with-iconv-lib="${EPREFIX}"/$(get_libdir) \ |
103 |
+ --with-xml2-include="${EPREFIX}"/usr/include/libxml2 \ |
104 |
+ --with-xml2-lib="${EPREFIX}"/usr/$(get_libdir) \ |
105 |
+ --with-xslt-dir="${EPREFIX}"/usr \ |
106 |
+ --with-iconvlib=iconv \ |
107 |
+ || die "extconf.rb failed" |
108 |
+} |
109 |
+ |
110 |
+each_ruby_compile() { |
111 |
+ if ! [[ -f lib/nokogiri/css/tokenizer.rb ]]; then |
112 |
+ ${RUBY} -S rake lib/nokogiri/css/tokenizer.rb || die "rexical failed" |
113 |
+ fi |
114 |
+ |
115 |
+ if ! [[ -f lib/nokogiri/css/parser.rb ]]; then |
116 |
+ ${RUBY} -S rake lib/nokogiri/css/parser.rb || die "racc failed" |
117 |
+ fi |
118 |
+ |
119 |
+ emake -Cext/${PN} \ |
120 |
+ V=1 \ |
121 |
+ CFLAGS="${CFLAGS} -fPIC" \ |
122 |
+ archflag="${LDFLAGS}" || die "make extension failed" |
123 |
+ cp -l ext/${PN}/${PN}$(get_modname) lib/${PN}/ || die |
124 |
+} |
125 |
+ |
126 |
+each_ruby_test() { |
127 |
+ ${RUBY} -Ilib:.:test -e 'Dir["test/**/test_*.rb"].each {|f| require f}' || die |
128 |
+} |