Info2: << Package: nokogiri-rb%type_pkg[ruby] Version: 1.16.4 Revision: 1 Description: XML and HTML access from Ruby Type: ruby (3.2) License: BSD ## Free to update, modify, and take over. Maintainer: Hanspeter Niederstrasser <nieder@users.sourceforge.net> Depends: << ruby%type_pkg[ruby], mini-portile2-rb%type_pkg[ruby] (>= 2.8.2), libxml2-shlibs (>= 2.9.3), libxslt-shlibs, ppkg-config << BuildDepends: << ruby%type_pkg[ruby]-dev, gem-patch-rb%type_pkg[ruby], pkg-config-rb%type_pkg[ruby] (>= 1.1), libxml2 (>= 2.9.3), libxslt, ppkg-config << Source: https://rubygems.org/downloads/nokogiri-%v.gem Source-Checksum: SHA256(62c116c3a14b4ed4e1faec786da266c4bd4c717a0bd04a9916164a7046040f45) NoSourceDirectory: true PatchFile: %{Ni}.patch PatchFile-MD5: 9d5a57e829c7b1143f8abcad7a7f7e5b PatchScript: << sed 's|@FINK_PREFIX@|%p|g' < %{PatchFile} > %b/%{Ni}.patch # Apply our patch to the downloaded gemfile %p/bin/gem%type_raw[ruby] patch %b/nokogiri-%v.gem %b/%{Ni}.patch -o %b/nokogiri-%v.gem -p1 --verbose << CompileScript: echo "" InstallScript: << #!/bin/sh -ev export RUBYGEMS_PREVENT_UPDATE_SUGGESTION=1 export PKG_CONFIG=%p/bin/ppkg-config PKG_CONFIG_PATH=%p/lib/pkgconfig:%p/share/pkgconfig %p/bin/gem%type_raw[ruby] install \ --local \ --force \ --verbose \ --vendor \ --platform=%m-apple-darwin \ --build-root %d \ --document rdoc \ --ignore-dependencies \ nokogiri-%v.gem \ -- --use-system-libraries \ --with-xml2-dir=%p \ --with-xslt-dir=%p # clean up build time directories rm -rf %i/var/lib/gems/%type_raw[ruby]/cache << PostInstScript: << update-alternatives --install %p/bin/nokogiri nokogiri %p/lib/ruby/vendor_ruby/gems/%type_raw[ruby]/gems/nokogiri-%v/bin/nokogiri %type_pkg[ruby] << PreRmScript: << if [ $1 != "upgrade" ]; then update-alternatives --remove nokogiri %p/lib/ruby/vendor_ruby/gems/%type_raw[ruby]/gems/nokogiri-%v/bin/nokogiri fi << Homepage: https://nokogiri.org/ DescDetail: << Nokogiri makes it easy and painless to work with XML and HTML from Ruby. It provides a sensible, easy-to-understand API for reading, writing, modifying, and querying documents. << DescPort: << Upstream hardcodes libxml2 from the CLT, so we need to patch the gem to our path. << <<