# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
ruby.branches 2.6 2.5 2.4
ruby.setup nokogiri 1.10.4 gem
maintainers {kimuraw @kimuraw} openmaintainer
description Nokogiri is an HTML, XML, SAX, and Reader parser.
long_description Nokogiri is an HTML, XML, SAX, and Reader parser. \
Among Nokogiri's many features is the ability to search \
documents via XPath or CSS3 selectors.
homepage http://nokogiri.org/
checksums rmd160 bbe35df76428c10446ebc16f7d1e2bd65ff6c0b8 \
sha256 fbf91c487d7ceb2b0593384f175843f99152322754f6ff267740bff031cead5a \
if {${name} ne ${subport}} {
depends_extract port:rb${ruby.suffix}-gem-patch
copy ${filespath}/patch-extconf.rb.diff ${worksrcpath}
reinplace "s|@@PREFIX@@|${prefix}|g" ${worksrcpath}/patch-extconf.rb.diff
system -W ${worksrcpath} "${ruby.gem} patch ${ruby.filename}.gem patch-extconf.rb.diff -o ${ruby.filename}.gem -p0"
depends_lib-append port:libxml2 \
port:rb${ruby.suffix}-mini_portile2
destroot.env-append NOKOGIRI_USE_SYSTEM_LIBRARIES=YES