summaryrefslogtreecommitdiff
path: root/lang/ruby
diff options
context:
space:
mode:
authortaca <taca>2013-04-02 15:22:39 +0000
committertaca <taca>2013-04-02 15:22:39 +0000
commit81fb85887d8ee815967d3b020226edf4331945b6 (patch)
tree9548685f49d1d59f0c48186b6d616bb24baf0268 /lang/ruby
parent52fda472f7c33bc112e5984bb9309b87b453d422 (diff)
downloadpkgsrc-81fb85887d8ee815967d3b020226edf4331945b6.tar.gz
Make GEM_PATH environment settable with MAKE_ENV.
Diffstat (limited to 'lang/ruby')
-rw-r--r--lang/ruby/gem.mk12
1 files changed, 10 insertions, 2 deletions
diff --git a/lang/ruby/gem.mk b/lang/ruby/gem.mk
index c3e6bec66ce..39359c0a1e2 100644
--- a/lang/ruby/gem.mk
+++ b/lang/ruby/gem.mk
@@ -1,4 +1,4 @@
-# $NetBSD: gem.mk,v 1.18 2013/03/14 12:57:42 obache Exp $
+# $NetBSD: gem.mk,v 1.19 2013/04/02 15:22:39 taca Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install Ruby gems.
@@ -64,6 +64,11 @@
#
# Default: (empty)
#
+# GEM_PATH
+# Set GEM_PATH; search path for rubygems
+#
+# Default: ${PREFIX}/${GEM_HOME}
+#
# BUILD_TARGET
# The Rakefile target that creates a local gem if using the
# ``rake'' GEM_BUILD method.
@@ -213,8 +218,11 @@ DISTFILES?= ${DISTNAME}${EXTRACT_SUFX}
EXTRACT_ONLY?= # empty
.endif
+# Specify GEM_PATH
+GEM_PATH?= ${PREFIX}/${GEM_HOME}
+
# Base directory for Gems
-MAKE_ENV+= GEM_PATH=${PREFIX}/${GEM_HOME}
+MAKE_ENV+= GEM_PATH=${GEM_PATH}
# Directory for the Gem to install
GEM_NAME?= ${DISTNAME}