summaryrefslogtreecommitdiff
path: root/misc
diff options
context:
space:
mode:
authorjlam <jlam@pkgsrc.org>2008-03-18 01:40:48 +0000
committerjlam <jlam@pkgsrc.org>2008-03-18 01:40:48 +0000
commit501981a89a93c362e62e5e9534bbd628dc543052 (patch)
tree9e69539815bddb71dd20cd049f6333067c940d0c /misc
parent0d9ac397b78fc7c49341c6fee202c5de897de5f9 (diff)
downloadpkgsrc-501981a89a93c362e62e5e9534bbd628dc543052.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')
-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