Source-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/textproc/ruby-kramdown textproc/ruby-kramdown: restric...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/10c32e2ec95f
branches:  trunk
changeset: 430860:10c32e2ec95f
user:      taca <taca%pkgsrc.org@localhost>
date:      Tue May 05 06:13:05 2020 +0000

description:
textproc/ruby-kramdown: restrict dependency

Restrict dependency to ruby-rexml before Ruby version 2.6.
Ruby 2.6 and later have bundled rexml.

diffstat:

 textproc/ruby-kramdown/Makefile |  9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diffs (26 lines):

diff -r 9ecff91eb277 -r 10c32e2ec95f textproc/ruby-kramdown/Makefile
--- a/textproc/ruby-kramdown/Makefile   Tue May 05 06:11:29 2020 +0000
+++ b/textproc/ruby-kramdown/Makefile   Tue May 05 06:13:05 2020 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.23 2020/05/05 06:01:51 taca Exp $
+# $NetBSD: Makefile,v 1.24 2020/05/05 06:13:05 taca Exp $
 
 DISTNAME=      kramdown-2.2.1
 CATEGORIES=    textproc
@@ -8,11 +8,14 @@
 COMMENT=       Pure-Ruby Markdown-superset parser and converter
 LICENSE=       mit
 
-DEPENDS+=      ${RUBY_PKGPREFIX}-rexml:../../textproc/ruby-rexml
-
 RUBYGEM_OPTIONS+=      --format-executable
 
 USE_LANGUAGES= # none
 
+.include "../../lang/ruby/rubyversion.mk"
+.if ${RUBY_VER} < 26
+DEPENDS+=      ${RUBY_PKGPREFIX}-rexml:../../textproc/ruby-rexml
+.endif
+
 .include "../../lang/ruby/gem.mk"
 .include "../../mk/bsd.pkg.mk"



Home | Main Index | Thread Index | Old Index