pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/ruby-racc



Module Name:    pkgsrc
Committed By:   taca
Date:           Wed Jan 13 14:33:44 UTC 2021

Modified Files:
        pkgsrc/devel/ruby-racc: Makefile PLIST

Log Message:
devel/ruby-racc: fix conflict with ruby27-base

Fix conflict with ruby27-base and add support for forthcoming ruby30.

Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.25 -r1.26 pkgsrc/devel/ruby-racc/Makefile
cvs rdiff -u -r1.17 -r1.18 pkgsrc/devel/ruby-racc/PLIST

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/ruby-racc/Makefile
diff -u pkgsrc/devel/ruby-racc/Makefile:1.25 pkgsrc/devel/ruby-racc/Makefile:1.26
--- pkgsrc/devel/ruby-racc/Makefile:1.25        Sun Jan 10 15:51:47 2021
+++ pkgsrc/devel/ruby-racc/Makefile     Wed Jan 13 14:33:44 2021
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.25 2021/01/10 15:51:47 taca Exp $
+# $NetBSD: Makefile,v 1.26 2021/01/13 14:33:44 taca Exp $
 
 DISTNAME=      racc-1.5.2
+PKGREVISION=   1
 CATEGORIES=    devel
 
 MAINTAINER=    taca%NetBSD.org@localhost
@@ -10,5 +11,17 @@ LICENSE=     gnu-lgpl-v2
 
 RUBYGEM_OPTIONS+=      --format-executable
 
+PLIST_VARS+=   racc_command
+
+.include "../../lang/ruby/rubyversion.mk"
+
+.if ${RUBY_VER} == "27" || ${RUBY_VER} == "30
+ALTERNATIVES_SRC=      # empty
+post-install:
+       ${RM} -f ${DESTDIR}${PREFIX}/bin/racc${RUBY_SUFFIX}
+.else
+PLIST.racc_command=    yes
+.endif
+
 .include "../../lang/ruby/gem.mk"
 .include "../../mk/bsd.pkg.mk"

Index: pkgsrc/devel/ruby-racc/PLIST
diff -u pkgsrc/devel/ruby-racc/PLIST:1.17 pkgsrc/devel/ruby-racc/PLIST:1.18
--- pkgsrc/devel/ruby-racc/PLIST:1.17   Mon Apr 27 06:53:18 2020
+++ pkgsrc/devel/ruby-racc/PLIST        Wed Jan 13 14:33:44 2021
@@ -1,5 +1,5 @@
-@comment $NetBSD: PLIST,v 1.17 2020/04/27 06:53:18 taca Exp $
-bin/racc${RUBY_SUFFIX}
+@comment $NetBSD: PLIST,v 1.18 2021/01/13 14:33:44 taca Exp $
+${PLIST.racc_command}bin/racc${RUBY_SUFFIX}
 ${GEM_HOME}/cache/${GEM_NAME}.gem
 ${GEM_EXTSDIR}/gem.build_complete
 ${GEM_EXTSDIR}/racc/cparse.${RUBY_DLEXT}



Home | Main Index | Thread Index | Old Index