pkgsrc-Changes archive

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

CVS commit: pkgsrc/lang/ruby



Module Name:    pkgsrc
Committed By:   taca
Date:           Sat Mar 20 06:01:53 UTC 2021

Modified Files:
        pkgsrc/lang/ruby: gem.mk

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

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


To generate a diff of this commit:
cvs rdiff -u -r1.45 -r1.46 pkgsrc/lang/ruby/gem.mk

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

Modified files:

Index: pkgsrc/lang/ruby/gem.mk
diff -u pkgsrc/lang/ruby/gem.mk:1.45 pkgsrc/lang/ruby/gem.mk:1.46
--- pkgsrc/lang/ruby/gem.mk:1.45        Mon Jan 11 11:21:31 2021
+++ pkgsrc/lang/ruby/gem.mk     Sat Mar 20 06:01:53 2021
@@ -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 @@ _GEM_INSTALL_TARGETS+=      _gem-install
 
 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