pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/rubygems Use ${BUILD_TARGET} as the Rakefile task...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/2329a2212666
branches:  trunk
changeset: 539975:2329a2212666
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Mar 18 16:35:52 2008 +0000

description:
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:

 misc/rubygems/rubygem.mk |  12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

diffs (33 lines):

diff -r cc8f24e902b9 -r 2329a2212666 misc/rubygems/rubygem.mk
--- a/misc/rubygems/rubygem.mk  Tue Mar 18 15:05:03 2008 +0000
+++ b/misc/rubygems/rubygem.mk  Tue Mar 18 16:35:52 2008 +0000
@@ -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 @@
        ${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 \



Home | Main Index | Thread Index | Old Index