pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/misc/rubygems Split the do-gem-install target into sma...
details: https://anonhg.NetBSD.org/pkgsrc/rev/982115229256
branches: trunk
changeset: 539779:982115229256
user: jlam <jlam%pkgsrc.org@localhost>
date: Thu Mar 13 15:45:59 2008 +0000
description:
Split the do-gem-install target into smaller sub-targets.
diffstat:
misc/rubygems/rubygem.mk | 21 +++++++++++++++++----
1 files changed, 17 insertions(+), 4 deletions(-)
diffs (45 lines):
diff -r 80b2b0b04852 -r 982115229256 misc/rubygems/rubygem.mk
--- a/misc/rubygems/rubygem.mk Thu Mar 13 14:38:46 2008 +0000
+++ b/misc/rubygems/rubygem.mk Thu Mar 13 15:45:59 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: rubygem.mk,v 1.10 2008/03/13 14:38:46 jlam Exp $
+# $NetBSD: rubygem.mk,v 1.11 2008/03/13 15:45:59 jlam Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install Ruby gems.
@@ -174,12 +174,23 @@
${SORT} -r | ${SED} -e "s,^,@dirrm ," );
-.PHONY: do-gem-install
+_GEM_INSTALL_TARGETS= _gem-install-buildroot
+_GEM_INSTALL_TARGETS+= _gem-install-cleanbuild
+_GEM_INSTALL_TARGETS+= _gem-install-copy
+
+.PHONY: do-gem-install ${_GEM_INSTALL_TARGETS}
+.ORDER: ${_GEM_INSTALL_TARGETS}
+
do-install: do-gem-install
-do-gem-install:
+do-gem-install: ${_GEM_INSTALL_TARGETS}
+
+_gem-install-buildroot:
@${STEP_MSG} "Installing gem into buildroot"
${RUN} ${SETENV} ${INSTALL_ENV} ${MAKE_ENV} \
${RUBYGEM} install ${_RUBYGEM_OPTIONS}
+
+_gem-install-cleanbuild:
+ @${STEP_MSG} "Cleaning intermediate gem build files"
${RUN} if [ -d ${_RUBYGEM_BUILDROOT}${GEM_LIBDIR}/ext ]; then \
cd ${_RUBYGEM_BUILDROOT}${GEM_LIBDIR}/ext && ls | \
while read file; do \
@@ -189,6 +200,8 @@
fi; \
done; \
fi
- @${STEP_MSG} "Copying files into installation directory"
+
+_gem-install-copy:
+ @${STEP_MSG} "Copying gem into installation directory"
${RUN} cd ${_RUBYGEM_BUILDROOT}${PREFIX} && \
pax -rwpe . ${DESTDIR}${PREFIX}
Home |
Main Index |
Thread Index |
Old Index