diff options
author | Hans de Graaff <graaff@gentoo.org> | 2020-12-01 07:20:58 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2020-12-01 07:44:33 +0100 |
commit | 79ea14420aa1557f86f4a0204e83691620f8921c (patch) | |
tree | 06f0f4bfc64774a12732da2e3ea221ddf7cdbbc1 /dev-ruby | |
parent | dev-ruby/listen: add 3.3.3 (diff) | |
download | gentoo-79ea14420aa1557f86f4a0204e83691620f8921c.tar.gz gentoo-79ea14420aa1557f86f4a0204e83691620f8921c.tar.bz2 gentoo-79ea14420aa1557f86f4a0204e83691620f8921c.zip |
dev-ruby/nokogumbo: add 2.0.4
Package-Manager: Portage-3.0.9, Repoman-3.0.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/nokogumbo/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/nokogumbo/nokogumbo-2.0.4.ebuild | 49 |
2 files changed, 50 insertions, 0 deletions
diff --git a/dev-ruby/nokogumbo/Manifest b/dev-ruby/nokogumbo/Manifest index ade4bd0e5ddd..f0b22d88c57d 100644 --- a/dev-ruby/nokogumbo/Manifest +++ b/dev-ruby/nokogumbo/Manifest @@ -1,2 +1,3 @@ DIST nokogumbo-2.0.2.tar.gz 295558 BLAKE2B ce52794eb3359ad34234d8f5faad4aff7c197326f6449a09a2264cb1a3d920886377f805e055980224644223d31a6621300c583a04f48ce8a8abe275b2614470 SHA512 fd115e072d2763ff63c46dc6f6117bb841b2c2ac28df0180d44a581a2a46f0b7b90ec17ae1b629e3e7c2f8a2cade53031cc118c8a946bbfb7e9e8600efefd67c DIST nokogumbo-2.0.3.tar.gz 297394 BLAKE2B f1afcf516c5c47b15c8404e8c218af1f2ca0bce022fefacb39842527be7be38cbaf9d2fe0572afd8d9c1893a82428b903ccb8d4506043f766305d4d43aaf066b SHA512 b44af7394f0b2c7159b34ead2aa15e39cd08348c1e3d7c4d9a2830c0920ae1a0d22ff9ac32db8fa1bd69c8ce55bc4a32069572944b53ef0d743f8a40560bcb47 +DIST nokogumbo-2.0.4.tar.gz 297809 BLAKE2B f55a08417fe46b9cb4e89ea032deab7f4ec8d4c4d377ca87fadfacf12f86fbea6c61de087e88d5de4ab29656276b014b1619ea7d83dae86aac671306ac0b989b SHA512 188ae188bd33969b7282230e18808e52363075723cef21d268af7ad1cfb2a0a93a8cc595297f467a32f475a47249f316836ea40c587f337f35ea57bd60d0699d diff --git a/dev-ruby/nokogumbo/nokogumbo-2.0.4.ebuild b/dev-ruby/nokogumbo/nokogumbo-2.0.4.ebuild new file mode 100644 index 000000000000..43462c380e47 --- /dev/null +++ b/dev-ruby/nokogumbo/nokogumbo-2.0.4.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 +} |