pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/ruby Add DESTDIR support for setup.rb>=3.1.1 pack...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/d0aa5e3d23b0
branches:  trunk
changeset: 538444:d0aa5e3d23b0
user:      obache <obache%pkgsrc.org@localhost>
date:      Fri Feb 08 15:10:41 2008 +0000

description:
Add DESTDIR support for setup.rb>=3.1.1 packages.

diffstat:

 lang/ruby/modules.mk |  9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diffs (26 lines):

diff -r 63c5e0b0d978 -r d0aa5e3d23b0 lang/ruby/modules.mk
--- a/lang/ruby/modules.mk      Fri Feb 08 14:55:56 2008 +0000
+++ b/lang/ruby/modules.mk      Fri Feb 08 15:10:41 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: modules.mk,v 1.17 2006/05/03 02:11:00 minskim Exp $
+# $NetBSD: modules.mk,v 1.18 2008/02/08 15:10:41 obache Exp $
 
 .if !defined(_RUBY_MODULE_MK)
 _RUBY_MODULE_MK=       # defined
@@ -105,10 +105,15 @@
 .if !target(do-install)
 do-install:    ruby-setup-install
 
+_RUBY_SETUP_INSTALLARGS=   ${INSTALL_TARGET}
+.if ${_USE_DESTDIR} != "no"
+_RUBY_SETUP_INSTALLARGS+=   --prefix=${DESTDIR:Q}
+.endif
+
 ruby-setup-install:
        @${ECHO_MSG} "===>  Running ${RUBY_SETUP} to ${INSTALL_TARGET}"
        ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \
-       ${SETENV} ${MAKE_ENV} ${RUBY} ${RUBY_SETUP} ${INSTALL_TARGET}
+       ${SETENV} ${MAKE_ENV} ${RUBY} ${RUBY_SETUP} ${_RUBY_SETUP_INSTALLARGS}
 .endif
 
 #



Home | Main Index | Thread Index | Old Index