diff options
author | jlam <jlam> | 2008-03-18 16:35:52 +0000 |
---|---|---|
committer | jlam <jlam> | 2008-03-18 16:35:52 +0000 |
commit | 238b38d4225866a9226dc3940578df1c36f48131 (patch) | |
tree | 7c013733240e8d86ef10504cb275ab49d0b57ca1 /misc/rubygems | |
parent | 60aa9b215eea4889d89b6f4f134ffc79b06b0761 (diff) | |
download | pkgsrc-238b38d4225866a9226dc3940578df1c36f48131.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/rubygems')
-rw-r--r-- | misc/rubygems/rubygem.mk | 12 |
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 \ |