| @@ -1,27 +1,27 @@ | | | @@ -1,27 +1,27 @@ |
1 | # $NetBSD: Makefile,v 1.26 2021/01/13 14:33:44 taca Exp $ | | 1 | # $NetBSD: Makefile,v 1.27 2021/03/22 13:21:53 schmonz Exp $ |
2 | | | 2 | |
3 | DISTNAME= racc-1.5.2 | | 3 | DISTNAME= racc-1.5.2 |
4 | PKGREVISION= 1 | | 4 | PKGREVISION= 1 |
5 | CATEGORIES= devel | | 5 | CATEGORIES= devel |
6 | | | 6 | |
7 | MAINTAINER= taca@NetBSD.org | | 7 | MAINTAINER= taca@NetBSD.org |
8 | HOMEPAGE= https://github.com/tenderlove/racc | | 8 | HOMEPAGE= https://github.com/tenderlove/racc |
9 | COMMENT= LALR(1) parser generator for Ruby | | 9 | COMMENT= LALR(1) parser generator for Ruby |
10 | LICENSE= gnu-lgpl-v2 | | 10 | LICENSE= gnu-lgpl-v2 |
11 | | | 11 | |
12 | RUBYGEM_OPTIONS+= --format-executable | | 12 | RUBYGEM_OPTIONS+= --format-executable |
13 | | | 13 | |
14 | PLIST_VARS+= racc_command | | 14 | PLIST_VARS+= racc_command |
15 | | | 15 | |
16 | .include "../../lang/ruby/rubyversion.mk" | | 16 | .include "../../lang/ruby/rubyversion.mk" |
17 | | | 17 | |
18 | .if ${RUBY_VER} == "27" || ${RUBY_VER} == "30 | | 18 | .if ${RUBY_VER} == "27" || ${RUBY_VER} == "30" |
19 | ALTERNATIVES_SRC= # empty | | 19 | ALTERNATIVES_SRC= # empty |
20 | post-install: | | 20 | post-install: |
21 | ${RM} -f ${DESTDIR}${PREFIX}/bin/racc${RUBY_SUFFIX} | | 21 | ${RM} -f ${DESTDIR}${PREFIX}/bin/racc${RUBY_SUFFIX} |
22 | .else | | 22 | .else |
23 | PLIST.racc_command= yes | | 23 | PLIST.racc_command= yes |
24 | .endif | | 24 | .endif |
25 | | | 25 | |
26 | .include "../../lang/ruby/gem.mk" | | 26 | .include "../../lang/ruby/gem.mk" |
27 | .include "../../mk/bsd.pkg.mk" | | 27 | .include "../../mk/bsd.pkg.mk" |