Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-ruby/nokogumbo/
Date: Wed, 27 Oct 2021 11:26:35
Message-Id: 1635333984.0339ae2579f61538f90f7e1a568c3d4d5092c4e7.graaff@gentoo
1 commit: 0339ae2579f61538f90f7e1a568c3d4d5092c4e7
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Wed Oct 27 11:26:24 2021 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Wed Oct 27 11:26:24 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0339ae25
7
8 dev-ruby/nokogumbo: update nokogiri dependency
9
10 We need nokogiri 1.11 to build against, but this is not required in
11 runtime. This change makes the upgrade path for nokogiri easier, in
12 particular in relation to dev-ruby/sanitize slots.
13
14 Package-Manager: Portage-3.0.20, Repoman-3.0.3
15 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org>
16
17 dev-ruby/nokogumbo/nokogumbo-2.0.5-r2.ebuild | 46 ++++++++++++++++++++++++++++
18 1 file changed, 46 insertions(+)
19
20 diff --git a/dev-ruby/nokogumbo/nokogumbo-2.0.5-r2.ebuild b/dev-ruby/nokogumbo/nokogumbo-2.0.5-r2.ebuild
21 new file mode 100644
22 index 00000000000..e348dba9886
23 --- /dev/null
24 +++ b/dev-ruby/nokogumbo/nokogumbo-2.0.5-r2.ebuild
25 @@ -0,0 +1,46 @@
26 +# Copyright 1999-2021 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=8
30 +
31 +USE_RUBY="ruby26 ruby27 ruby30"
32 +
33 +RUBY_FAKEGEM_RECIPE_TEST="none"
34 +
35 +RUBY_FAKEGEM_EXTRADOC="README.md"
36 +
37 +RUBY_FAKEGEM_GEMSPEC="nokogumbo.gemspec"
38 +
39 +RUBY_FAKEGEM_EXTENSIONS=(ext/nokogumbo/extconf.rb)
40 +RUBY_FAKEGEM_EXTENSION_LIBDIR=lib/nokogumbo
41 +
42 +inherit ruby-fakegem
43 +
44 +DESCRIPTION="A Nokogiri interface to the Gumbo HTML5 parser"
45 +HOMEPAGE="https://github.com/rubys/nokogumbo"
46 +SRC_URI="https://github.com/rubys/nokogumbo/archive/v${PV}.tar.gz -> ${P}.tar.gz"
47 +
48 +LICENSE="Apache-2.0"
49 +SLOT="2"
50 +KEYWORDS="~amd64 ~x86 ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
51 +IUSE=""
52 +
53 +# Contains a bundled and patched version of dev-libs/gumbo.
54 +
55 +ruby_add_rdepend ">=dev-ruby/nokogiri-1.11.0"
56 +
57 +ruby_add_bdepend "=dev-ruby/nokogiri-1.11*"
58 +
59 +all_ruby_prepare() {
60 + # Define rakehome in scope
61 + sed -i -e "1irakehome=File.expand_path('../../')" ext/nokogumbo/extconf.rb || die
62 +
63 + sed -i -e "s:require_relative ':require './:" ${RUBY_FAKEGEM_GEMSPEC} || die
64 +
65 + # Modern nokogiri doesn't have any ldflags part, rather than an empty one.
66 + sed -i -e '/have_libxml2/ s/empty/nil/' ext/nokogumbo/extconf.rb || die
67 +}
68 +
69 +each_ruby_test() {
70 + ${RUBY} -Ilib:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die
71 +}