This updates nokogiri to the latest version.  Only major change is that
this fixes some deprecation warnings when using ruby 2.4.0. Changelog at
https://github.com/sparklemotion/nokogiri/blob/master/CHANGELOG.md

Ports wise, only significant change is we need to force cc as the
compiler, as otherwise the build system forces egcc.  egcc is not
needed when using the --use-system-libraries flags, and this is
the easiest way to work around it.  I'm working with upstream so
that this can be removed in the next version.

Tested on amd64, will be committing in a few days unless I hear
objections.

Thanks,
Jeremy

Index: Makefile
===================================================================
RCS file: /cvs/ports/textproc/ruby-nokogiri/Makefile,v
retrieving revision 1.27
diff -u -p -r1.27 Makefile
--- Makefile    8 Nov 2016 14:47:22 -0000       1.27
+++ Makefile    9 Jan 2017 16:44:16 -0000
@@ -2,24 +2,27 @@
 
 COMMENT=               HTML, XML, SAX and Reader parser
 
-DISTNAME=              nokogiri-1.6.8.1
-REVISION=              0
+DISTNAME=              nokogiri-1.7.0.1
 CATEGORIES=            textproc
 
 HOMEPAGE=              http://nokogiri.org/
 
 MAINTAINER =           Jeremy Evans <jer...@openbsd.org>
 
-# BSD
+# MIT
 PERMIT_PACKAGE_CDROM=  Yes
 
-WANTLIB=               exslt gcrypt gpg-error iconv lzma xml2 xslt z
-LIB_DEPENDS=           converters/libiconv \
-                       textproc/libxslt
+WANTLIB=               exslt xml2 xslt
+LIB_DEPENDS=           textproc/libxslt
 
 MODULES=               lang/ruby
 
 CONFIGURE_STYLE=       ruby gem ext
+
+# Work around default build forcing egcc when not necessary
+CONFIGURE_ENV=         CC=cc
+MAKE_ENV=              CC=cc
+
 CONFIGURE_ARGS=                --use-system-libraries \
                        --with-xml2-include=${LOCALBASE}/include/libxml2/
 
Index: distinfo
===================================================================
RCS file: /cvs/ports/textproc/ruby-nokogiri/distinfo,v
retrieving revision 1.10
diff -u -p -r1.10 distinfo
--- distinfo    4 Nov 2016 21:41:54 -0000       1.10
+++ distinfo    9 Jan 2017 16:44:22 -0000
@@ -1,2 +1,2 @@
-SHA256 (nokogiri-1.6.8.1.gem) = koFKf/Zy5Ctg/VwC11tiq4/S3zr7rCecyNraw8FrvRA=
-SIZE (nokogiri-1.6.8.1.gem) = 9147904
+SHA256 (nokogiri-1.7.0.1.gem) = Y9cC9OZoRSPwj30P1I2eQslWkyB7oarvEbB57sCDqoM=
+SIZE (nokogiri-1.7.0.1.gem) = 9147904
Index: pkg/PLIST
===================================================================
RCS file: /cvs/ports/textproc/ruby-nokogiri/pkg/PLIST,v
retrieving revision 1.11
diff -u -p -r1.11 PLIST
--- pkg/PLIST   4 Nov 2016 21:41:54 -0000       1.11
+++ pkg/PLIST   9 Jan 2017 16:47:00 -0000
@@ -7,7 +7,7 @@ ${GEM_LIB}/gems/${DISTNAME}/.cross_rubie
 ${GEM_LIB}/gems/${DISTNAME}/.editorconfig
 ${GEM_LIB}/gems/${DISTNAME}/.gemtest
 ${GEM_LIB}/gems/${DISTNAME}/.travis.yml
-${GEM_LIB}/gems/${DISTNAME}/CHANGELOG.rdoc
+${GEM_LIB}/gems/${DISTNAME}/CHANGELOG.md
 ${GEM_LIB}/gems/${DISTNAME}/CONTRIBUTING.md
 ${GEM_LIB}/gems/${DISTNAME}/C_CODING_STYLE.rdoc
 ${GEM_LIB}/gems/${DISTNAME}/Gemfile

Reply via email to