| @@ -1,33 +1,31 @@ | | | @@ -1,33 +1,31 @@ |
1 | # $NetBSD: Makefile,v 1.29 2021/12/28 00:34:03 taca Exp $ | | 1 | # $NetBSD: Makefile,v 1.30 2022/01/16 14:55:18 taca Exp $ |
2 | | | 2 | |
3 | DISTNAME= racc-${RACC_VERSION} | | 3 | DISTNAME= racc-1.6.0 |
4 | CATEGORIES= devel | | 4 | CATEGORIES= devel |
5 | | | 5 | |
6 | MAINTAINER= taca@NetBSD.org | | 6 | MAINTAINER= taca@NetBSD.org |
7 | HOMEPAGE= https://github.com/tenderlove/racc | | 7 | HOMEPAGE= https://github.com/tenderlove/racc |
8 | COMMENT= LALR(1) parser generator for Ruby | | 8 | COMMENT= LALR(1) parser generator for Ruby |
9 | LICENSE= gnu-lgpl-v2 | | 9 | LICENSE= gnu-lgpl-v2 |
10 | | | 10 | |
11 | RACC_VERSION= 1.6.0 | | 11 | # |
| | | 12 | # Ruby 3.1 has the same conflicting version 1.6.0. |
| | | 13 | # |
| | | 14 | RUBY_VERSIONS_ACCEPTED= 26 27 30 |
12 | | | 15 | |
13 | RUBYGEM_OPTIONS+= --format-executable | | 16 | RUBYGEM_OPTIONS+= --format-executable |
14 | | | 17 | |
15 | PLIST_VARS+= racc_command | | 18 | PLIST_VARS+= racc_command |
16 | | | 19 | |
17 | .include "../../lang/ruby/rubyversion.mk" | | 20 | .include "../../lang/ruby/rubyversion.mk" |
18 | | | 21 | |
19 | .if !empty(RUBY_RACC_VERSION) | | 22 | .if !empty(RUBY_RACC_VER) |
20 | | | | |
21 | . if ${RACC_VERSION} == "${RUBY_RACC_VERSION}" | | | |
22 | . error "${RUBY_PKGPREFIX}-base contains this package ${PKGBASE}." | | | |
23 | . endif | | | |
24 | | | | |
25 | ALTERNATIVES_SRC= # empty | | 23 | ALTERNATIVES_SRC= # empty |
26 | post-install: | | 24 | post-install: |
27 | ${RM} -f ${DESTDIR}${PREFIX}/bin/racc${RUBY_SUFFIX} | | 25 | ${RM} -f ${DESTDIR}${PREFIX}/bin/racc${RUBY_SUFFIX} |
28 | .else | | 26 | .else |
29 | PLIST.racc_command= yes | | 27 | PLIST.racc_command= yes |
30 | .endif | | 28 | .endif |
31 | | | 29 | |
32 | .include "../../lang/ruby/gem.mk" | | 30 | .include "../../lang/ruby/gem.mk" |
33 | .include "../../mk/bsd.pkg.mk" | | 31 | .include "../../mk/bsd.pkg.mk" |