ports/147169: bsd.ruby.mk: Adding GEM_ARGS
Akinori MUSHA
knu at FreeBSD.org
Fri May 28 19:10:02 UTC 2010
>Number: 147169
>Category: ports
>Synopsis: bsd.ruby.mk: Adding GEM_ARGS
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Fri May 28 19:10:01 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Akinori MUSHA
>Release: FreeBSD 8.1-PRERELEASE amd64
>Organization:
>Environment:
System: FreeBSD daemon.musha.org 8.1-PRERELEASE FreeBSD 8.1-PRERELEASE #13: Thu May 27 18:19:01 JST 2010 root at daemon.musha.org:/var/cache/obj/usr/src/sys/DAEMON amd64
>Description:
Please add GEM_ARGS so you can pass extra options to the gem
command.
Suppose you want to make a rubygem port installable for
multiple versions of ruby (1.8 and 1.9) at the same time.
Including RUBY_SUFFIX in PKGNAMEPREFIX is not enough when the
gem has executables in it. To avoid wrapper name conflicts,
the "--format-executable" option must be passed to the gem
command, but there is no way to do that for now. If you have
GEM_ARGS, setting the variable to --format-executable and
suffixing script names in PLIST_FILES with RUBY_SUFFIX will
complete the task.
>How-To-Repeat:
>Fix:
--- bsd.ruby.mk.~1.195.~ 2010-04-30 07:32:15.000000000 +0900
+++ bsd.ruby.mk 2010-05-29 02:59:39.996829900 +0900
@@ -63,6 +63,8 @@
# USE_RUBY_RDTOOL is implied and RUBY_RD_HTML_FILES is
# defined.
# USE_RUBYGEMS - Says that the port uses rubygems packaging system.
+# GEM_ENV - Environment to pass to the gem command.
+# GEM_ARGS - Extra arguments to pass to the gem command.
# RUBYGEM_AUTOPLIST - Generate packing list for rubygems based port
# automatically.
#
@@ -426,7 +428,7 @@
do-install:
.for _D in ${GEMFILES}
- ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} install -l --no-update-sources --no-ri --install-dir ${PREFIX}/lib/ruby/gems/${RUBY_VER} ${DISTDIR}/${DIST_SUBDIR}/${_D} -- --build-args ${CONFIGURE_ARGS}
+ ${SETENV} ${GEM_ENV} ${RUBYGEMBIN} install -l --no-update-sources --no-ri --install-dir ${GEM_ARGS} ${PREFIX}/lib/ruby/gems/${RUBY_VER} ${DISTDIR}/${DIST_SUBDIR}/${_D} -- --build-args ${CONFIGURE_ARGS}
.endfor
. if defined(RUBYGEM_AUTOPLIST)
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list