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.
This commit is contained in:
taca 2021-12-28 00:34:03 +00:00
parent c75334338d
commit fa70468855

View file

@ -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}