mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-08-24 18:58:08 -07:00
dev-ruby/nokogiri: drop 1.14.2-r1, 1.14.4
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
DIST nokogiri-1.14.2-git.tgz 10446957 BLAKE2B 0c72c520642bfa3e69a38f5dba8783a4f749d6ab97cf7531432fcd1f5dfba0aeebd2bf49dfa07aed601093f8ad88bc3dfb57c1a901c7e140aa8265749f4ad724 SHA512 18f16e5609e251c6e08787616aa3f444dac1f5f9d9e3bf8f21ce3b95870ce133187d0df02d03ee854fc87a3da04f886600667cec6832c8e8cfe87c6114672916
|
||||
DIST nokogiri-1.14.4-git.tgz 10767764 BLAKE2B b0983b5537ea6ffc86431740e2277bb58ab45a237e47af9a8ef3e98f73872ee81dbd13ae6a9508845dc3d3ba84dc101763e674400e4e5ce98b31defcbbea678d SHA512 09e8bdb660dd2e4340d0bdc701909f066234e70754ad799e21f1462d06f76500ceaf3da074cf792fa690f4717f1126e041a6f3247fd32f5a806404447bdb68be
|
||||
DIST nokogiri-1.15.3-git.tgz 10767496 BLAKE2B d9d2abd3f57fd3f9e3e49e38de7559d5d9bad278166b4108d2edf4f90884256c01bf574cec8a15b6f30420c9f4d501707b710e3af0f32dc5cbcc01b4433c6662 SHA512 9084e97c81bca52c19cf2cd47dcf0d3377705ceda559399aa1cbf1e112845b2a796e34576f08a073377fb523a7a298254bda91563929535734700c31c473cb49
|
||||
DIST nokogiri-1.15.4-git.tgz 10767816 BLAKE2B fe35809f62279ded261c655cc589fdb3447514f6525b62d591da58f91cc9dced34f5ac3e8bde180944ce23a67f56b2f93c90ac9cf69699e331dceee1ea259408 SHA512 f255a51053c55151c6df8937a979833571e2cbc8a25d032674d71d1303267ed4d3a1226d0995e54d9a152f237b31e7fe85e70fb976578902234eb5a2f4f3ce2b
|
||||
DIST nokogiri-1.15.5-git.tgz 10768080 BLAKE2B 25d24799c69a4271ea5283b264061c05f6907635ed55de196f76684d2db3c6c226e7f09f02f30de049b282c17cdea69154dec9a06813cb4f63adaac4876e160c SHA512 1df3f6bf4508a7c84fa22ce774cb878ca47154e69730f1cedb403fad270df42c580526ac03b47e73bf2267ad50d2999ed1341079b10043b450f51ea6b0565da7
|
||||
|
||||
@@ -1,95 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
USE_RUBY="ruby27 ruby30 ruby31 ruby32"
|
||||
|
||||
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/"
|
||||
LICENSE="MIT"
|
||||
SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
KEYWORDS="~alpha amd64 arm arm64 ~hppa ~loong ppc ppc64 ~riscv ~s390 sparc x86 ~arm64-macos"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
RDEPEND="${RDEPEND}
|
||||
>=dev-libs/libxml2-2.10.3:= =dev-libs/libxml2-2.10*
|
||||
>=dev-libs/libxslt-1.1.37
|
||||
sys-libs/zlib
|
||||
virtual/libiconv"
|
||||
DEPEND="${DEPEND}
|
||||
>=dev-libs/libxml2-2.10.3 =dev-libs/libxml2-2.10*
|
||||
>=dev-libs/libxslt-1.1.37
|
||||
>=sys-libs/zlib-1.2.13
|
||||
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 '/simplecov/,/^end/ s:^:#:' \
|
||||
-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() {
|
||||
${RUBY} -Ilib:.:test -e 'Dir["test/**/test_*.rb"].each {|f| require f}' || die
|
||||
}
|
||||
@@ -1,96 +0,0 @@
|
||||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
USE_RUBY="ruby30 ruby31 ruby32"
|
||||
|
||||
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/"
|
||||
LICENSE="MIT"
|
||||
SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P}-git.tgz"
|
||||
|
||||
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||
SLOT="0"
|
||||
IUSE=""
|
||||
|
||||
# https://github.com/sparklemotion/nokogiri/issues/2865 for libxml2-2.10* dep
|
||||
RDEPEND="${RDEPEND}
|
||||
>=dev-libs/libxml2-2.10.4:= =dev-libs/libxml2-2.10*
|
||||
>=dev-libs/libxslt-1.1.37
|
||||
sys-libs/zlib
|
||||
virtual/libiconv"
|
||||
DEPEND="${DEPEND}
|
||||
>=dev-libs/libxml2-2.10.4 =dev-libs/libxml2-2.10*
|
||||
>=dev-libs/libxslt-1.1.37
|
||||
>=sys-libs/zlib-1.2.13
|
||||
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 '/simplecov/,/^end/ s:^:#:' \
|
||||
-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() {
|
||||
${RUBY} -Ilib:.:test -e 'Dir["test/**/test_*.rb"].each {|f| require f}' || die
|
||||
}
|
||||
Reference in New Issue
Block a user