summaryrefslogtreecommitdiff
path: root/misc/rubygems
diff options
context:
space:
mode:
authorjlam <jlam>2008-03-18 01:40:48 +0000
committerjlam <jlam>2008-03-18 01:40:48 +0000
commit041a825e57b24f2c2a2eca9ee3274f8a91ddee57 (patch)
tree9e69539815bddb71dd20cd049f6333067c940d0c /misc/rubygems
parentbf6995ededf43d4e6b7e10cef5654c79dd7e3520 (diff)
downloadpkgsrc-041a825e57b24f2c2a2eca9ee3274f8a91ddee57.tar.gz
Installed gems have wrapper scripts that call the right interpreter,
regardless of the #! line at the head of a script, so we can skip the interpreter path check for gems. As a side benefit, the resulting gems are more suitable for distribution to other platforms.
Diffstat (limited to 'misc/rubygems')
-rw-r--r--misc/rubygems/rubygem.mk8
1 files changed, 7 insertions, 1 deletions
diff --git a/misc/rubygems/rubygem.mk b/misc/rubygems/rubygem.mk
index 9015446c171..3309f04353a 100644
--- a/misc/rubygems/rubygem.mk
+++ b/misc/rubygems/rubygem.mk
@@ -1,4 +1,4 @@
-# $NetBSD: rubygem.mk,v 1.21 2008/03/17 19:33:25 jlam Exp $
+# $NetBSD: rubygem.mk,v 1.22 2008/03/18 01:40:48 jlam Exp $
#
# This Makefile fragment is intended to be included by packages that build
# and install Ruby gems.
@@ -93,6 +93,12 @@ GEM_NAME?= ${DISTNAME}
GEM_LIBDIR= ${GEM_HOME}/gems/${GEM_NAME}
GEM_DOCDIR= ${GEM_HOME}/doc/${GEM_NAME}
+# Installed gems have wrapper scripts that call the right interpreter,
+# regardless of the #! line at the head of a script, so we can skip
+# the interpreter path check for gems.
+#
+CHECK_INTERPRETER_SKIP= ${GEM_LIBDIR:S|^${PREFIX}/||}/*
+
RUBYGEM_PKGPREFIX= ${RUBY_PKGPREFIX}
# RUBYGEM holds the path to RubyGems' gem command