pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/rubygems Don't try to remove the intermediate bui...
details: https://anonhg.NetBSD.org/pkgsrc/rev/8c387c41daf0
branches: trunk
changeset: 539745:8c387c41daf0
user: jlam <jlam%pkgsrc.org@localhost>
date: Wed Mar 12 20:08:22 2008 +0000
description:
Don't try to remove the intermediate build files unless the ext/ directory
exists.
diffstat:
misc/rubygems/rubygem.mk | 19 ++++++++++---------
1 files changed, 10 insertions(+), 9 deletions(-)
diffs (33 lines):
diff -r 5bbd17434aac -r 8c387c41daf0 misc/rubygems/rubygem.mk
--- a/misc/rubygems/rubygem.mk Wed Mar 12 18:53:35 2008 +0000
+++ b/misc/rubygems/rubygem.mk Wed Mar 12 20:08:22 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rubygem.mk,v 1.5 2008/03/12 18:53:35 jlam Exp $
+# $NetBSD: rubygem.mk,v 1.6 2008/03/12 20:08:22 jlam Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install Ruby gems.
@@ -155,14 +155,15 @@
@${STEP_MSG} "Installing gem into buildroot"
${RUN} ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \
${RUBYGEM} install ${_RUBYGEM_OPTIONS}
- @${STEP_MSG} "Cleaning up intermediate gem build files"
- ${RUN} cd ${_RUBYGEM_BUILDROOT}${GEM_LIBDIR}/ext && ls | \
- while read file; do \
- if [ ! -f ${WRKSRC}/ext/$$file ]; then \
- echo "rm "${GEM_LIBDIR:T}"/ext/$$file"; \
- rm -f $$file; \
- fi; \
- done
+ ${RUN} if [ -d ${_RUBYGEM_BUILDROOT}${GEM_LIBDIR}/ext ]; then \
+ cd ${_RUBYGEM_BUILDROOT}${GEM_LIBDIR}/ext && ls | \
+ while read file; do \
+ if [ ! -f ${WRKSRC}/ext/$$file ]; then \
+ echo "rm "${GEM_LIBDIR:T}"/ext/$$file"; \
+ rm -f $$file; \
+ fi; \
+ done; \
+ fi
@${STEP_MSG} "Copying files into installation directory"
${RUN} cd ${_RUBYGEM_BUILDROOT}${PREFIX} && \
pax -rwpe . ${DESTDIR}${PREFIX}
Home |
Main Index |
Thread Index |
Old Index