diff options
author | Hans de Graaff <graaff@gentoo.org> | 2020-11-22 07:46:19 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2020-11-22 07:46:19 +0100 |
commit | 6c313ffab605e9ac2020fee120ddae7f128aeb4c (patch) | |
tree | 7a76f60a97ab79525e3bcd6e2874b4b71b362b85 /dev-ruby/nokogumbo | |
parent | net-irc/inspircd: Drop 3.8.0 (diff) | |
download | gentoo-6c313ffab605e9ac2020fee120ddae7f128aeb4c.tar.gz gentoo-6c313ffab605e9ac2020fee120ddae7f128aeb4c.tar.bz2 gentoo-6c313ffab605e9ac2020fee120ddae7f128aeb4c.zip |
dev-ruby/nokogumbo: add 2.0.3
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/nokogumbo')
-rw-r--r-- | dev-ruby/nokogumbo/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/nokogumbo/nokogumbo-2.0.3.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/nokogumbo/Manifest b/dev-ruby/nokogumbo/Manifest index 234c2b7fbd5f..ade4bd0e5ddd 100644 --- a/dev-ruby/nokogumbo/Manifest +++ b/dev-ruby/nokogumbo/Manifest @@ -1 +1,2 @@ DIST nokogumbo-2.0.2.tar.gz 295558 BLAKE2B ce52794eb3359ad34234d8f5faad4aff7c197326f6449a09a2264cb1a3d920886377f805e055980224644223d31a6621300c583a04f48ce8a8abe275b2614470 SHA512 fd115e072d2763ff63c46dc6f6117bb841b2c2ac28df0180d44a581a2a46f0b7b90ec17ae1b629e3e7c2f8a2cade53031cc118c8a946bbfb7e9e8600efefd67c +DIST nokogumbo-2.0.3.tar.gz 297394 BLAKE2B f1afcf516c5c47b15c8404e8c218af1f2ca0bce022fefacb39842527be7be38cbaf9d2fe0572afd8d9c1893a82428b903ccb8d4506043f766305d4d43aaf066b SHA512 b44af7394f0b2c7159b34ead2aa15e39cd08348c1e3d7c4d9a2830c0920ae1a0d22ff9ac32db8fa1bd69c8ce55bc4a32069572944b53ef0d743f8a40560bcb47 diff --git a/dev-ruby/nokogumbo/nokogumbo-2.0.3.ebuild b/dev-ruby/nokogumbo/nokogumbo-2.0.3.ebuild new file mode 100644 index 000000000000..43462c380e47 --- /dev/null +++ b/dev-ruby/nokogumbo/nokogumbo-2.0.3.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +USE_RUBY="ruby25 ruby26 ruby27" + +RUBY_FAKEGEM_RECIPE_TEST="none" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.md" + +RUBY_FAKEGEM_GEMSPEC="nokogumbo.gemspec" + +inherit ruby-fakegem + +DESCRIPTION="A Nokogiri interface to the Gumbo HTML5 parser" +HOMEPAGE="https://github.com/rubys/nokogumbo" +SRC_URI="https://github.com/rubys/nokogumbo/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0" +SLOT="2" +KEYWORDS="~amd64 ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +# Contains a bundled and patched version of dev-libs/gumbo. + +ruby_add_rdepend ">=dev-ruby/nokogiri-1.8.4" + +all_ruby_prepare() { + # Define rakehome in scope + sed -i -e "1irakehome=File.expand_path('../../')" ext/nokogumbo/extconf.rb || die + + sed -i -e "s:require_relative ':require './:" ${RUBY_FAKEGEM_GEMSPEC} || die +} + +each_ruby_configure() { + ${RUBY} -Cext/nokogumbo extconf.rb || die + sed -i -e 's:-Wl,--no-undefined::' ext/nokogumbo/Makefile || die +} + +each_ruby_compile() { + emake -Cext/nokogumbo V=1 + cp ext/nokogumbo/nokogumbo.so lib/nokogumbo/ || die +} + +each_ruby_test() { + ${RUBY} -Ilib:. -e 'Dir["test/test_*.rb"].each{|f| require f}' || die +} |