pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/textproc/ruby-nokogiri



Module Name:    pkgsrc
Committed By:   taca
Date:           Tue Dec 28 00:01:31 UTC 2021

Modified Files:
        pkgsrc/textproc/ruby-nokogiri: Makefile

Log Message:
textproc/ruby-nokogiri: reduce dependency

Depends on devel/ruby-racc only on ruby26 since Ruby 2.7 and later contains
racc as bundled gem.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.65 -r1.66 pkgsrc/textproc/ruby-nokogiri/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/textproc/ruby-nokogiri/Makefile
diff -u pkgsrc/textproc/ruby-nokogiri/Makefile:1.65 pkgsrc/textproc/ruby-nokogiri/Makefile:1.66
--- pkgsrc/textproc/ruby-nokogiri/Makefile:1.65 Wed Dec  8 16:06:46 2021
+++ pkgsrc/textproc/ruby-nokogiri/Makefile      Tue Dec 28 00:01:31 2021
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.65 2021/12/08 16:06:46 adam Exp $
+# $NetBSD: Makefile,v 1.66 2021/12/28 00:01:31 taca Exp $
 
 DISTNAME=      nokogiri-1.12.5
-PKGREVISION=   1
+PKGREVISION=   2
 CATEGORIES=    textproc
 
 MAINTAINER=    tsutsui%NetBSD.org@localhost
@@ -9,7 +9,6 @@ HOMEPAGE=       https://nokogiri.org/
 COMMENT=       HTML, XML, SAX, and Reader parser with XPath and CSS selector support
 LICENSE=       mit
 
-DEPENDS+=      ${RUBY_PKGPREFIX}-racc>=1.4.0:../../devel/ruby-racc
 DEPENDS+=      ${RUBY_PKGPREFIX}-mini_portile2>=2.6.1:../../misc/ruby-mini_portile2
 
 USE_GCC_RUNTIME=       yes
@@ -23,6 +22,12 @@ OVERRIDE_GEMSPEC+=   mini_portile2>=2.6.1 
 # XXX: work around bug in bootstrap-mk-files, remove when fixed
 MAKE_ENV.SunOS+=       ARFLAGS=rcv
 
+.include "../../lang/ruby/rubyversion.mk"
+# Ruby 2.7 and later bundles racc
+.if ${RUBY_VER} == "26"
+DEPENDS+=      ${RUBY_PKGPREFIX}-racc>=1.4.0:../../devel/ruby-racc
+.endif
+
 .include "../../devel/ruby-pkg-config/tool.mk"
 .include "../../textproc/libxml2/buildlink3.mk"
 .include "../../textproc/libxslt/buildlink3.mk"



Home | Main Index | Thread Index | Old Index