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/nokogumbo/nokogumbo-2.0.4.ebuild | |
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/nokogumbo/nokogumbo-2.0.4.ebuild')
-rw-r--r-- | dev-ruby/nokogumbo/nokogumbo-2.0.4.ebuild | 49 |
1 files changed, 49 insertions, 0 deletions
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 +} |