pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/misc/rubygems Installed gems have wrapper scripts that...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/ee4340e889d9
branches:  trunk
changeset: 539966:ee4340e889d9
user:      jlam <jlam%pkgsrc.org@localhost>
date:      Tue Mar 18 01:40:48 2008 +0000

description:
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:

 misc/rubygems/rubygem.mk |  8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)

diffs (22 lines):

diff -r 770fd7ad1268 -r ee4340e889d9 misc/rubygems/rubygem.mk
--- a/misc/rubygems/rubygem.mk  Mon Mar 17 23:05:39 2008 +0000
+++ b/misc/rubygems/rubygem.mk  Tue Mar 18 01:40:48 2008 +0000
@@ -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_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



Home | Main Index | Thread Index | Old Index