summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-18 16:35:52 +0000
committerjlam <jlam@pkgsrc.org>2008-03-18 16:35:52 +0000
commitb0f9c2722ebb48bc84ed1ba8f5261c4b3380c58e (patch)
tree7c013733240e8d86ef10504cb275ab49d0b57ca1 /misc
parenta8b4a5440065361cf29c766730b7de4011045928 (diff)
downloadpkgsrc-b0f9c2722ebb48bc84ed1ba8f5261c4b3380c58e.tar.gz
Use ${BUILD_TARGET} as the Rakefile task invoked to create the local
gem during the build process. This allows for specifying non-standard tasks used by some Ruby packages. It defaults to "gem".
Diffstat (limited to 'misc')
-rw-r--r--misc/rubygems/rubygem.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/misc/rubygems/rubygem.mk b/misc/rubygems/rubygem.mk
index 48d6a78ed31..614cdfc7f8e 100644
--- a/misc/rubygems/rubygem.mk
+++ b/misc/rubygems/rubygem.mk
@@ -1,10 +1,16 @@
-# $NetBSD: rubygem.mk,v 1.24 2008/03/18 04:01:27 jlam Exp $
+# $NetBSD: rubygem.mk,v 1.25 2008/03/18 16:35:52 jlam Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install Ruby gems.
#
# Package-settable variables:
#
+# BUILD_TARGET
+# The Rakefile target that creates a local gem if using the
+# ``rake'' GEM_BUILD method.
+#
+# Default: gem
+#
# GEM_BUILD
# The method used to build the local gem.
#
@@ -167,8 +173,10 @@ gem-gemspec-build:
${RUN} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
${RUBYGEM} build ${_GEMSPEC_FILE}
+BUILD_TARGET?= gem
+
gem-rake-build:
- ${RUN} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${RAKE} gem
+ ${RUN} cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} ${RAKE} ${BUILD_TARGET}
${RUN} cd ${WRKSRC} && rm -f ${GEM_NAME}.gem
${RUN} cd ${WRKSRC} && find . -name ${GEM_NAME}.gem -print | \
while read file; do \