pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/ruby lang/ruby/gem.mk: support ${RUBY_SUFFIX} in ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/b607b597cf82
branches:  trunk
changeset: 449045:b607b597cf82
user:      taca <taca%pkgsrc.org@localhost>
date:      Sat Mar 20 06:01:53 2021 +0000

description:
lang/ruby/gem.mk: support ${RUBY_SUFFIX} in print-PLIST

Add limited support for replacing ${RUBY_SUFFIX} in ${PREFIX}/bin
directory.  Notifed by tsutsui@.

diffstat:

 lang/ruby/gem.mk |  5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diffs (19 lines):

diff -r 0a8c93a89b60 -r b607b597cf82 lang/ruby/gem.mk
--- a/lang/ruby/gem.mk  Sat Mar 20 00:44:38 2021 +0000
+++ b/lang/ruby/gem.mk  Sat Mar 20 06:01:53 2021 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: gem.mk,v 1.45 2021/01/11 11:21:31 taca Exp $
+# $NetBSD: gem.mk,v 1.46 2021/03/20 06:01:53 taca Exp $
 #
 # This Makefile fragment is intended to be included by packages that build
 # and install Ruby gems.
@@ -384,6 +384,9 @@
 
 USE_TOOLS+=    pax
 
+PRINT_PLIST_AWK+=      /^bin\/.*${RUBY_SUFFIX}$$/ \
+                       { sub(/${RUBY_SUFFIX}$$/, "$${RUBY_SUFFIX}"); }
+
 do-install: ${_GEM_INSTALL_TARGETS}
 
 .PHONY: _gem-install



Home | Main Index | Thread Index | Old Index