diff options
author | Hans de Graaff <graaff@gentoo.org> | 2018-02-06 07:25:51 +0100 |
---|---|---|
committer | Hans de Graaff <graaff@gentoo.org> | 2018-02-07 07:30:19 +0100 |
commit | de36b5cec77db0e1930e70fcc078b7b03d292e83 (patch) | |
tree | 8e6dd5b6d2ad7ebaf34f6cb04f530710fe568181 /dev-ruby | |
parent | 8618edd3306729a1af7a50c9b650689bfeb4cdad (diff) | |
download | gentoo-de36b5cec77db0e1930e70fcc078b7b03d292e83.tar.gz gentoo-de36b5cec77db0e1930e70fcc078b7b03d292e83.tar.xz |
dev-ruby/nokogumbo: add 1.5.0
Package-Manager: Portage-2.3.19, Repoman-2.3.6
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/nokogumbo/Manifest | 1 | ||||
-rw-r--r-- | dev-ruby/nokogumbo/nokogumbo-1.5.0.ebuild | 44 |
2 files changed, 45 insertions, 0 deletions
diff --git a/dev-ruby/nokogumbo/Manifest b/dev-ruby/nokogumbo/Manifest index f743464cbbd..6173a241143 100644 --- a/dev-ruby/nokogumbo/Manifest +++ b/dev-ruby/nokogumbo/Manifest @@ -1 +1,2 @@ DIST nokogumbo-1.4.13.gem 228352 BLAKE2B 60e85f1cadc2c8b98d067c9bf0f651057e709f204d7ffa7759ec68090b816e8b17a0d12dce4a5d6f6efd372c931f75ef54c439a5496d0fe696edd8795488cd8f SHA512 369743cab4a4bd3ffa5eee4f46074099afd253b66ef5ef9303b79d5e5ce1375f33b73916f1712e256044a00335bdb6595f2ce028e02169607252f32dd9dff9b0 +DIST nokogumbo-1.5.0.gem 228352 BLAKE2B 66740dfb9bd9edea13c6bc872e1cadf855116ee7247c7691210d3eaa81ad4c7b972fe8edd02a6f7ade6c172c870923c9af3fc24b10c5594cd0255b2fa0c2cd82 SHA512 a89ec7ae4d42cce5431070e790f0f10734655654f6f680c0b949fab7527b6a811953f1c3c13d633427b40980f9e9bd434a9afe1a9d1f1e504af05246d96be77e diff --git a/dev-ruby/nokogumbo/nokogumbo-1.5.0.ebuild b/dev-ruby/nokogumbo/nokogumbo-1.5.0.ebuild new file mode 100644 index 00000000000..7ad6e455e8b --- /dev/null +++ b/dev-ruby/nokogumbo/nokogumbo-1.5.0.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +USE_RUBY="ruby22 ruby23 ruby24 ruby25" + +RUBY_FAKEGEM_RECIPE_TEST="none" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" +RUBY_FAKEGEM_EXTRADOC="README.md" + +inherit ruby-fakegem + +DESCRIPTION="A Nokogiri interface to the Gumbo HTML5 parser" +HOMEPAGE="https://github.com/rubys/nokogumbo" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86 ~ppc-macos ~x64-macos ~x86-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" +IUSE="" + +RDEPEND+=">=dev-libs/gumbo-0.10" + +ruby_add_rdepend ">=dev-ruby/nokogiri-1.6.5-r1" + +all_ruby_prepare() { + # Define rakehome in scope + sed -i -e "1irakehome=File.expand_path('../../')" ext/nokogumboc/extconf.rb || die +} + +each_ruby_configure() { + ${RUBY} -Cext/nokogumboc extconf.rb || die + sed -i -e 's:-Wl,--no-undefined::' ext/nokogumboc/Makefile || die +} + +each_ruby_compile() { + emake -Cext/nokogumboc V=1 + cp ext/nokogumboc/nokogumboc.so lib/ || die +} + +each_ruby_test() { + ${RUBY} -Ilib test-nokogumbo.rb || die +} |