pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/ruby-nokogiri textproc/ruby-nokogiri: reduce ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b38f98615b2f
branches:  trunk
changeset: 771816:b38f98615b2f
user:      taca <taca%pkgsrc.org@localhost>
date:      Tue Dec 28 00:01:31 2021 +0000

description:
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.

diffstat:

 textproc/ruby-nokogiri/Makefile |  11 ++++++++---
 1 files changed, 8 insertions(+), 3 deletions(-)

diffs (34 lines):

diff -r 52502c33c823 -r b38f98615b2f textproc/ruby-nokogiri/Makefile
--- a/textproc/ruby-nokogiri/Makefile   Mon Dec 27 23:25:08 2021 +0000
+++ b/textproc/ruby-nokogiri/Makefile   Tue Dec 28 00:01:31 2021 +0000
@@ -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 @@
 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 @@
 # 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