diff options
author | taca <taca@pkgsrc.org> | 2021-12-28 00:34:03 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2021-12-28 00:34:03 +0000 |
commit | e90c5cce81cc53d9f841ce41b280cacf72abefc9 (patch) | |
tree | 153113fc7c8115b3a2fe0bdc6a7e340ef67140ef | |
parent | c55bd82011827447fd86920e6c7896343c0b2313 (diff) | |
download | pkgsrc-e90c5cce81cc53d9f841ce41b280cacf72abefc9.tar.gz |
devel/ruby-racc: take care of bundled racc gem
Take care of bundled racc gem in ruby*-base package.
It is no effect for pkgsrc HEAD tree.
-rw-r--r-- | devel/ruby-racc/Makefile | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/devel/ruby-racc/Makefile b/devel/ruby-racc/Makefile index 64585ca2a61..b1cd6a6aaf0 100644 --- a/devel/ruby-racc/Makefile +++ b/devel/ruby-racc/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.28 2021/11/09 14:20:04 taca Exp $ +# $NetBSD: Makefile,v 1.29 2021/12/28 00:34:03 taca Exp $ -DISTNAME= racc-1.6.0 +DISTNAME= racc-${RACC_VERSION} CATEGORIES= devel MAINTAINER= taca@NetBSD.org @@ -8,13 +8,20 @@ HOMEPAGE= https://github.com/tenderlove/racc COMMENT= LALR(1) parser generator for Ruby LICENSE= gnu-lgpl-v2 +RACC_VERSION= 1.6.0 + RUBYGEM_OPTIONS+= --format-executable PLIST_VARS+= racc_command .include "../../lang/ruby/rubyversion.mk" -.if ${RUBY_VER} == "27" || ${RUBY_VER} == "30" +.if !empty(RUBY_RACC_VERSION) + +. if ${RACC_VERSION} == "${RUBY_RACC_VERSION}" +. error "${RUBY_PKGPREFIX}-base contains this package ${PKGBASE}." +. endif + ALTERNATIVES_SRC= # empty post-install: ${RM} -f ${DESTDIR}${PREFIX}/bin/racc${RUBY_SUFFIX} |