mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
dev-ruby/nokogiri: drop 1.17.2, 1.18.6
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
DIST nokogiri-1.16.8-git.tgz 11014909 BLAKE2B 55a580c96bb281bd57136488139f01dd5939b9fa8122104b6a19c92a121038215ba63d585e6e229b01b5779b650485cf6ff3585daa048173fc6f539d3b3c25a7 SHA512 bcfd72cd4b2b425d9615d7df095989b2ce39abb01eee3fa2d24e09b5f9f3e25d58879a95c3e869cebf6f6d3c0e94f7c2114da51218d2569d806223bd2654de86
|
||||
DIST nokogiri-1.17.2-git.tgz 11048266 BLAKE2B eb7c1b178d8fbb91e1b398e639a9a68d1b9e62af8de0d41e5b48e681f6359a4501734216431273f4e7d9d3e2aafee9cf9f0237c504e0b0f9cfc848d8cba2ef57 SHA512 9282f38feadd6139e99689706c045c6cc42ef71b7372a6c6d7e684faad6a40249a69553eaa7fbff4f7677e328b4d64b0ab7752415f574f21cca4e2e32ed75852
|
||||
DIST nokogiri-1.18.6-git.tgz 11053802 BLAKE2B 4b955a34c920e51df0ddf5c98374ad4664aa5317bd3d40eb25d85fba704277aa14d740b2dc5e4ea0c0f7f8d473eedc7563e1a9c4ffbd5c72f382ef0fef4ee070 SHA512 489f8a46cbff52ba0bfc1426d0f0839830d53491974ddb45514000bc44dbfc8822ff6f9122486efd253c97463741d84c7b14797d9265e3e674040a65418042ef
|
||||
DIST nokogiri-1.18.7-git.tgz 11053819 BLAKE2B 37feac55a841a8ca0e4b6df023abb28608e30e410ab6fe1fa5d71d8973c186145d006965f9e9ae94c2d1fe6e9d7f7b8a4d267ff047965bb7b133d71811726c93 SHA512 de0e28e566209e41dde9931058aac94a832a68d991881dc51919f69be1eb9a517e25e3b74136b1ba331d40ae940356371240c78610eaf828c9609ce4da3f407d
|
||||
DIST nokogiri-1.18.8-git.tgz 11053885 BLAKE2B 5ff4eac2aba046114be84791a3aafc436558ea52cd537d5ae58b259d30686ac4e6306d7f691a8bd3e6c328b90c03d925ef6f0e6d9e58c148f936e9691fae838b SHA512 cefec463825c7664dc81b8668d8bf18a9fa4b659dbece0d1251c913eeccac1c762fb30fdd183e8fdd4a3da89e8cfa1bf828a1d9b11809c6f8c61fd4efa990306
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
# 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.13.5
|
||||
>=dev-libs/libxslt-1.1.42
|
||||
>=sys-libs/zlib-1.3.1
|
||||
virtual/libiconv"
|
||||
DEPEND="
|
||||
>=dev-libs/libxml2-2.13.5
|
||||
>=dev-libs/libxslt-1.1.42
|
||||
>=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
|
||||
}
|
||||
@@ -1,100 +0,0 @@
|
||||
# Copyright 1999-2025 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
USE_RUBY="ruby31 ruby32 ruby33 ruby34"
|
||||
|
||||
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.13.5
|
||||
>=dev-libs/libxslt-1.1.43
|
||||
>=sys-libs/zlib-1.3.1
|
||||
virtual/libiconv"
|
||||
DEPEND="
|
||||
>=dev-libs/libxml2-2.13.5
|
||||
>=dev-libs/libxslt-1.1.43
|
||||
>=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
|
||||
|
||||
# Avoid a failing test already dropped upstream.
|
||||
sed -e '128 s:^:#:' \
|
||||
-i test/xml/test_document_encoding.rb || 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