1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-10 07:04:03 +00:00

Update to 1.4.12

Changes:	https://github.com/rubys/nokogumbo/commits/master
This commit is contained in:
Sunpoet Po-Chuan Hsieh 2017-06-02 18:14:53 +00:00
parent f002fc23e5
commit 4d2a883e0e
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=442441
3 changed files with 10 additions and 10 deletions

View File

@ -2,7 +2,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= nokogumbo PORTNAME= nokogumbo
PORTVERSION= 1.4.11 PORTVERSION= 1.4.12
CATEGORIES= textproc rubygems CATEGORIES= textproc rubygems
MASTER_SITES= RG MASTER_SITES= RG

View File

@ -1,3 +1,3 @@
TIMESTAMP = 1495123830 TIMESTAMP = 1496418417
SHA256 (rubygem/nokogumbo-1.4.11.gem) = cb1c65be1ffc8c2aad77bd35f2822aaf46b118d60deea18b77cbf51936c708c7 SHA256 (rubygem/nokogumbo-1.4.12.gem) = 99ccae7117b292c05c85fbab6a93652efa25426154a0d2873ad3b5e75dc5f865
SIZE (rubygem/nokogumbo-1.4.11.gem) = 228352 SIZE (rubygem/nokogumbo-1.4.12.gem) = 228352

View File

@ -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 +++ ext/nokogumboc/extconf.rb
@@ -1,3 +1,4 @@ @@ -1,3 +1,4 @@
+require 'rubygems' +require 'rubygems'
require 'mkmf' require 'mkmf'
$CFLAGS += " -std=c99" $CFLAGS += ' -std=c99'
@@ -10,7 +11,7 @@ if have_library('xml2', 'xmlNewDoc') @@ -12,7 +13,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) }
sort_by {|name| name[/nokogiri-([\d.]+)/,1].split('.').map(&:to_i)}.last .last
if nokogiri_lib 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" + nokogiri_ext = Gem::Specification.find_by_name('nokogiri').extension_dir + "/nokogiri"
# if that doesn't work, try workarounds found in Nokogiri's extconf # if that doesn't work, try workarounds found in Nokogiri's extconf