summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2024-02-05 08:09:34 +0100
committerHans de Graaff <graaff@gentoo.org>2024-02-05 08:09:34 +0100
commita0a035114736acd3e27b29720c47382c62921eda (patch)
tree5ade3074f9e265b9e7b973c2a4810d6028a51374 /dev-ruby/nokogiri
parentdev-util/pkgconf: Stabilize 2.1.1 arm, #923778 (diff)
downloadgentoo-a0a035114736acd3e27b29720c47382c62921eda.tar.gz
gentoo-a0a035114736acd3e27b29720c47382c62921eda.tar.bz2
gentoo-a0a035114736acd3e27b29720c47382c62921eda.zip
dev-ruby/nokogiri: add 1.16.2
Signed-off-by: Hans de Graaff <graaff@gentoo.org>
Diffstat (limited to 'dev-ruby/nokogiri')
-rw-r--r--dev-ruby/nokogiri/Manifest1
-rw-r--r--dev-ruby/nokogiri/nokogiri-1.16.2.ebuild96
2 files changed, 97 insertions, 0 deletions
diff --git a/dev-ruby/nokogiri/Manifest b/dev-ruby/nokogiri/Manifest
index ab535e4e0541..dd28f20486ba 100644
--- a/dev-ruby/nokogiri/Manifest
+++ b/dev-ruby/nokogiri/Manifest
@@ -3,3 +3,4 @@ DIST nokogiri-1.15.4-git.tgz 10767816 BLAKE2B fe35809f62279ded261c655cc589fdb344
DIST nokogiri-1.15.5-git.tgz 10768080 BLAKE2B 25d24799c69a4271ea5283b264061c05f6907635ed55de196f76684d2db3c6c226e7f09f02f30de049b282c17cdea69154dec9a06813cb4f63adaac4876e160c SHA512 1df3f6bf4508a7c84fa22ce774cb878ca47154e69730f1cedb403fad270df42c580526ac03b47e73bf2267ad50d2999ed1341079b10043b450f51ea6b0565da7
DIST nokogiri-1.16.0-git.tgz 11010821 BLAKE2B 5b82e28d7d1e7d74e857a997ea32ba406450588f398fa49590d318b194883b2a247b9389b3930583727a34df425034f3cefc4a5cb00f25945a02623872ac3ffa SHA512 0f6740ce69159f878844f2afdddafcc8c8f3bdabee68e5fcedb1526ae9cc48648c6ebda2a272ab1b8776fbde766bae97046802573908bd908cfb908288607e51
DIST nokogiri-1.16.1-git.tgz 11014638 BLAKE2B e03122ba361b03c57e1c4b41e721a497d85e22ab6b6073475c1958f46a0c653b61459c482139c4eeebefdb83759f9af46b8c9c363e5a817d218e9ffd82002517 SHA512 0c821120d8c63f6c9a7440c11c5104d778517be0e0f92c2a787cdd478c0b869565d16f9bad42a66fd541e3dd871a0de98dea22815885e6468224696aba7f25d8
+DIST nokogiri-1.16.2-git.tgz 11014186 BLAKE2B 8b34c586f3326278299786fec8b7513f61d7c147b453d984107d1d6896b42e8e59f078ac32577bebd71fc510e99087e80f8ea4eef822c73a41fc17c0ec079108 SHA512 844a47fcc9ad8677bed5486fd3437e9a685143afc8c8d71464301c14cc09e93827f3a91713df22f741434989adb24ed6d9144b3a4d0f3cb7f63fc83c2d3130a9
diff --git a/dev-ruby/nokogiri/nokogiri-1.16.2.ebuild b/dev-ruby/nokogiri/nokogiri-1.16.2.ebuild
new file mode 100644
index 000000000000..64d7dd3b0f24
--- /dev/null
+++ b/dev-ruby/nokogiri/nokogiri-1.16.2.ebuild
@@ -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/"
+LICENSE="MIT"
+SRC_URI="https://github.com/sparklemotion/nokogiri/archive/v${PV}.tar.gz -> ${P}-git.tgz"
+
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~arm64-macos"
+SLOT="0"
+IUSE="test"
+
+RDEPEND="${RDEPEND}
+ >=dev-libs/libxml2-2.12.5
+ >=dev-libs/libxslt-1.1.39
+ sys-libs/zlib
+ virtual/libiconv"
+DEPEND="${DEPEND}
+ >=dev-libs/libxml2-2.12.5
+ >=dev-libs/libxslt-1.1.39
+ >=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 '/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
+}