summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-14 15:25:28 +0000
committerjlam <jlam@pkgsrc.org>2008-03-14 15:25:28 +0000
commit228b705253b4e918862de0f3d7137ff69070bd50 (patch)
tree8611f3824d49a66fc6513f0c86facbf806b1bca0 /misc
parente124bc9ab4c79859ce03ae5a739fcb3b9815097d (diff)
downloadpkgsrc-228b705253b4e918862de0f3d7137ff69070bd50.tar.gz
+ Minor improvements to documentation.
+ The local gem is not ${GEMFILE}; it's ${GEM_NAME}.gem. The two can be different due to capitalization/case differences.
Diffstat (limited to 'misc')
-rw-r--r--misc/rubygems/rubygem.mk20
1 files changed, 10 insertions, 10 deletions
diff --git a/misc/rubygems/rubygem.mk b/misc/rubygems/rubygem.mk
index 42ee635bce5..2928709bf62 100644
--- a/misc/rubygems/rubygem.mk
+++ b/misc/rubygems/rubygem.mk
@@ -1,4 +1,4 @@
-# $NetBSD: rubygem.mk,v 1.17 2008/03/14 14:18:21 jlam Exp $
+# $NetBSD: rubygem.mk,v 1.18 2008/03/14 15:25:28 jlam Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install Ruby gems.
@@ -13,14 +13,14 @@
#
# GEM_CLEANBUILD
# A list of shell globs representing files to remove from the
-# gem installed in the buildroot.
+# gem installed in the buildroot. The default is an empty list.
#
# GEM_NAME
# The name of the gem to install. The default value is ${DISTNAME}.
#
# GEMFILE
-# The complete filename of the gem to install. It defaults to
-# ${DISTNAME}.gem.
+# The complete filename of the gem to install. The default value
+# is ${DISTNAME}.gem.
#
# Variables defined in this file:
#
@@ -141,8 +141,8 @@ gem-extract:
###
### gem-build
###
-### The gem-build target builds a new local gem from the extracted
-### gem's contents. The new gem as created as ${WRKSRC}/${GEMFILE}.
+### The gem-build target builds a new local gem from the extracted gem's
+### contents. The new gem as created as ${WRKSRC}/${GEM_NAME}.gem.
###
.PHONY: gem-build gem-gemspec-build gem-rake-build
do-build: gem-build
@@ -154,10 +154,10 @@ gem-gemspec-build:
gem-rake-build:
${RUN} cd ${WRKSRC} && ${RAKE} gem
- ${RUN} cd ${WRKSRC} && rm -f ${GEMFILE}
- ${RUN} cd ${WRKSRC} && find . -name ${GEMFILE} -print | \
+ ${RUN} cd ${WRKSRC} && rm -f ${GEM_NAME}.gem
+ ${RUN} cd ${WRKSRC} && find . -name ${GEM_NAME}.gem -print | \
while read file; do \
- ln -fs "$$file" ${GEMFILE}; \
+ ln -fs "$$file" ${GEM_NAME}.gem; \
exit 0; \
done
@@ -173,7 +173,7 @@ _RUBYGEM_BUILDROOT= ${WRKDIR}/.inst
_RUBYGEM_OPTIONS= --no-update-sources # don't cache the gem index
_RUBYGEM_OPTIONS+= --install-dir ${GEM_HOME}
_RUBYGEM_OPTIONS+= --build-root ${_RUBYGEM_BUILDROOT}
-_RUBYGEM_OPTIONS+= --local ${WRKSRC}/${GEMFILE}
+_RUBYGEM_OPTIONS+= --local ${WRKSRC}/${GEM_NAME}.gem
_RUBYGEM_OPTIONS+= -- --build-args ${CONFIGURE_ARGS}
GENERATE_PLIST+= ${RUBYGEM_GENERATE_PLIST}