mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 04:59:14 -07:00
dev-ruby/nokogiri: add 1.16.8
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
DIST nokogiri-1.16.5-git.tgz 11014565 BLAKE2B 0158c23c1479a4c05074906afbb1f7507814f73702bf6c4f5dbf90d130ad61cbd89e9be2957c59dc3a2f5bf1023d625c7c435220e168d76dbc524d314175cd52 SHA512 822acaf88f838e4b2b1840187e62d9d4424a0e552a850a2349541c114f58f3ca1ca83df2d1d1323275bb6847b79ea4afc87b6282c8ebc56094f1eb8b57dda217
|
||||
DIST nokogiri-1.16.6-git.tgz 11014594 BLAKE2B 5a2becbbaf52d753569d778fcf2c84b521a30aa52abeb923970dbc8abea56277b807e70538032edfb883552c9385b7c225885cdbab111462f51a741a0b8d3bd5 SHA512 c90e0dcd9c90980344551a5b660e15cbdf1f42a139c123f936c728952f0d8d07f8ca4810cf6f8dd51070bff66398dca3cb29ed60f8e2242930233dd594efe843
|
||||
DIST nokogiri-1.16.7-git.tgz 11014702 BLAKE2B b300ceb73101c822df040ed99edcae3b1556ca8a9060b05b51107a949d562ffdd02349d2f771207ad6cb8aa6d17725b823f22b086acde638ad36e0ac36c75889 SHA512 6f4c28351bcf1d01e1892eaceb75a6af3fb8399c2cb18c9db1c2a2e65d87103d9a7f8ef4bf6396e2ab8ca6c178125999bd7273893cb43e6ce47c9e46cfb17462
|
||||
DIST nokogiri-1.16.8-git.tgz 11014909 BLAKE2B 55a580c96bb281bd57136488139f01dd5939b9fa8122104b6a19c92a121038215ba63d585e6e229b01b5779b650485cf6ff3585daa048173fc6f539d3b3c25a7 SHA512 bcfd72cd4b2b425d9615d7df095989b2ce39abb01eee3fa2d24e09b5f9f3e25d58879a95c3e869cebf6f6d3c0e94f7c2114da51218d2569d806223bd2654de86
|
||||
|
||||
96
dev-ruby/nokogiri/nokogiri-1.16.8.ebuild
Normal file
96
dev-ruby/nokogiri/nokogiri-1.16.8.ebuild
Normal file
@@ -0,0 +1,96 @@
|
||||
# Copyright 1999-2024 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
USE_RUBY="ruby31 ruby32 ruby33"
|
||||
|
||||
RUBY_FAKEGEM_EXTRADOC="CHANGELOG.md README.md ROADMAP.md SECURITY.md"
|
||||
|
||||
RUBY_FAKEGEM_GEMSPEC="nokogiri.gemspec"
|
||||
|
||||
RUBY_FAKEGEM_EXTENSIONS=(ext/nokogiri/extconf.rb)
|
||||
|
||||
inherit ruby-fakegem multilib
|
||||
|
||||
DESCRIPTION="Nokogiri is an HTML, XML, SAX, and Reader parser"
|
||||
HOMEPAGE="https://nokogiri.org/"
|
||||
SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
LICENSE="MIT"
|
||||
|
||||
SLOT="0"
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos"
|
||||
IUSE="test"
|
||||
|
||||
RDEPEND="
|
||||
>=dev-libs/libxml2-2.12.9
|
||||
>=dev-libs/libxslt-1.1.39
|
||||
>=sys-libs/zlib-1.3.1
|
||||
virtual/libiconv"
|
||||
DEPEND="
|
||||
>=dev-libs/libxml2-2.12.9
|
||||
>=dev-libs/libxslt-1.1.39
|
||||
>=sys-libs/zlib-1.3.1
|
||||
virtual/libiconv"
|
||||
|
||||
ruby_add_rdepend ">=dev-ruby/racc-1.4:0"
|
||||
|
||||
ruby_add_bdepend "
|
||||
dev-ruby/mini_portile2:2.8
|
||||
>=dev-ruby/rexical-1.0.7
|
||||
dev-ruby/rdoc
|
||||
test? ( dev-ruby/minitest dev-ruby/rubyzip )"
|
||||
|
||||
all_ruby_prepare() {
|
||||
sed -i \
|
||||
-e '/tasks\/cross_compile/s:^:#:' \
|
||||
-e '/:test.*prerequisites/s:^:#:' \
|
||||
-e '/license/ s:^:#:' \
|
||||
Rakefile || die
|
||||
# Remove the cross compilation options since they interfere with
|
||||
# native building.
|
||||
sed -i -e 's/cross_compile = true/cross_compile = false/' Rakefile || die
|
||||
sed -i -e '/cross_config_options/d' Rakefile || die
|
||||
|
||||
sed -e '/reporters/I s:^:#:' \
|
||||
-i test/helper.rb || die
|
||||
|
||||
# There is no need for mini_portile2 to be a runtime dependency on Gentoo
|
||||
sed -i -e '/mini_portile2/ s:^:#:' ${RUBY_FAKEGEM_GEMSPEC} || die
|
||||
}
|
||||
|
||||
each_ruby_configure() {
|
||||
NOKOGIRI_USE_SYSTEM_LIBRARIES=true \
|
||||
${RUBY} -Cext/${PN} extconf.rb \
|
||||
--with-zlib-include="${EPREFIX}"/usr/include \
|
||||
--with-zlib-lib="${EPREFIX}"/$(get_libdir) \
|
||||
--with-iconv-include="${EPREFIX}"/usr/include \
|
||||
--with-iconv-lib="${EPREFIX}"/$(get_libdir) \
|
||||
--with-xml2-include="${EPREFIX}"/usr/include/libxml2 \
|
||||
--with-xml2-lib="${EPREFIX}"/usr/$(get_libdir) \
|
||||
--with-xslt-dir="${EPREFIX}"/usr \
|
||||
--with-iconvlib=iconv \
|
||||
|| die "extconf.rb failed"
|
||||
}
|
||||
|
||||
each_ruby_compile() {
|
||||
if ! [[ -f lib/nokogiri/css/tokenizer.rb ]]; then
|
||||
${RUBY} -S rake lib/nokogiri/css/tokenizer.rb || die "rexical failed"
|
||||
fi
|
||||
|
||||
if ! [[ -f lib/nokogiri/css/parser.rb ]]; then
|
||||
${RUBY} -S rake lib/nokogiri/css/parser.rb || die "racc failed"
|
||||
fi
|
||||
|
||||
emake -Cext/${PN} \
|
||||
V=1 \
|
||||
CFLAGS="${CFLAGS} -fPIC" \
|
||||
archflag="${LDFLAGS}" || die "make extension failed"
|
||||
cp -l ext/${PN}/${PN}$(get_modname) lib/${PN}/ || die
|
||||
}
|
||||
|
||||
each_ruby_test() {
|
||||
MT_NO_PLUGINS=1 \
|
||||
RUBY_MEMCHECK_RUNNING=true \
|
||||
${RUBY} -Ilib:.:test -e 'Dir["test/**/test_*.rb"].each {|f| require f}' || die
|
||||
}
|
||||
Reference in New Issue
Block a user