From 4d2a883e0e6febdfe030e365136533e78bcd6248 Mon Sep 17 00:00:00 2001 From: Sunpoet Po-Chuan Hsieh Date: Fri, 2 Jun 2017 18:14:53 +0000 Subject: [PATCH] Update to 1.4.12 Changes: https://github.com/rubys/nokogumbo/commits/master --- textproc/rubygem-nokogumbo/Makefile | 2 +- textproc/rubygem-nokogumbo/distinfo | 6 +++--- .../files/patch-ext_nokogumboc_extconf.rb | 12 ++++++------ 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/textproc/rubygem-nokogumbo/Makefile b/textproc/rubygem-nokogumbo/Makefile index fb50f4f9e6c2..f25caad75211 100644 --- a/textproc/rubygem-nokogumbo/Makefile +++ b/textproc/rubygem-nokogumbo/Makefile @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= nokogumbo -PORTVERSION= 1.4.11 +PORTVERSION= 1.4.12 CATEGORIES= textproc rubygems MASTER_SITES= RG diff --git a/textproc/rubygem-nokogumbo/distinfo b/textproc/rubygem-nokogumbo/distinfo index 25ccb98b7b6a..bfd0536e00aa 100644 --- a/textproc/rubygem-nokogumbo/distinfo +++ b/textproc/rubygem-nokogumbo/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1495123830 -SHA256 (rubygem/nokogumbo-1.4.11.gem) = cb1c65be1ffc8c2aad77bd35f2822aaf46b118d60deea18b77cbf51936c708c7 -SIZE (rubygem/nokogumbo-1.4.11.gem) = 228352 +TIMESTAMP = 1496418417 +SHA256 (rubygem/nokogumbo-1.4.12.gem) = 99ccae7117b292c05c85fbab6a93652efa25426154a0d2873ad3b5e75dc5f865 +SIZE (rubygem/nokogumbo-1.4.12.gem) = 228352 diff --git a/textproc/rubygem-nokogumbo/files/patch-ext_nokogumboc_extconf.rb b/textproc/rubygem-nokogumbo/files/patch-ext_nokogumboc_extconf.rb index 65ab7235d9a4..9169d2238ad9 100644 --- a/textproc/rubygem-nokogumbo/files/patch-ext_nokogumboc_extconf.rb +++ b/textproc/rubygem-nokogumbo/files/patch-ext_nokogumboc_extconf.rb @@ -1,15 +1,15 @@ ---- ext/nokogumboc/extconf.rb.orig 2015-07-26 21:04:54 UTC +--- ext/nokogumboc/extconf.rb.orig 2017-06-02 16:28:15 UTC +++ ext/nokogumboc/extconf.rb @@ -1,3 +1,4 @@ +require 'rubygems' require 'mkmf' - $CFLAGS += " -std=c99" + $CFLAGS += ' -std=c99' -@@ -10,7 +11,7 @@ if have_library('xml2', 'xmlNewDoc') - select { |name| name.match(%r{gems/nokogiri-([\d.]+)/lib/nokogiri}) }. - sort_by {|name| name[/nokogiri-([\d.]+)/,1].split('.').map(&:to_i)}.last +@@ -12,7 +13,7 @@ if have_library('xml2', 'xmlNewDoc') + .sort_by { |name| name[/nokogiri-([\d.]+)/, 1].split('.').map(&:to_i) } + .last if nokogiri_lib -- nokogiri_ext = nokogiri_lib.sub(%r(lib/nokogiri(.rb)?$), 'ext/nokogiri') +- nokogiri_ext = nokogiri_lib.sub(%r{lib/nokogiri(.rb)?$}, 'ext/nokogiri') + nokogiri_ext = Gem::Specification.find_by_name('nokogiri').extension_dir + "/nokogiri" # if that doesn't work, try workarounds found in Nokogiri's extconf