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
commit0aeb2a0304c8da6769f58a950f0c8b61100660b6 (patch)
tree9e69539815bddb71dd20cd049f6333067c940d0c /misc/rubygems
parent09ff82193672957b290d303257f123d0741183e7 (diff)
downloadpkgsrc-0aeb2a0304c8da6769f58a950f0c8b61100660b6.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