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:           Sun May 26 00:15:32 UTC 2024

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

Log Message:
lang/ruby/gem.mk: try removing empty directories

Try removing empty directories in order to remove junk from
"make print-PLIST".


To generate a diff of this commit:
cvs rdiff -u -r1.53 -r1.54 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.53 pkgsrc/lang/ruby/gem.mk:1.54
--- pkgsrc/lang/ruby/gem.mk:1.53        Thu Nov 30 00:21:12 2023
+++ pkgsrc/lang/ruby/gem.mk     Sun May 26 00:15:32 2024
@@ -1,4 +1,4 @@
-# $NetBSD: gem.mk,v 1.53 2023/11/30 00:21:12 taca Exp $
+# $NetBSD: gem.mk,v 1.54 2024/05/26 00:15:32 taca Exp $
 #
 # This Makefile fragment is intended to be included by packages that build
 # and install Ruby gems.
@@ -333,6 +333,7 @@ _gem-build-install-root:
        @${STEP_MSG} "Installing gem into installation root"
        ${RUN} ${SETENV} ${MAKE_ENV} ${RUBYGEM_ENV} \
                ${RUBYGEM} install --backtrace ${RUBYGEM_OPTIONS} ${_RUBYGEM_OPTIONS}
+       ${RUN} cd ${RUBYGEM_INSTALL_ROOT}${PREFIX}/${GEM_HOME} && rmdir * 2>/dev/null || ${TRUE}
 
 # The ``gem'' command doesn't exit with a non-zero result even if the
 # install of the gem failed, so we do the check and return the proper exit



Home | Main Index | Thread Index | Old Index