diff options
author | obache <obache@pkgsrc.org> | 2008-02-08 15:10:41 +0000 |
---|---|---|
committer | obache <obache@pkgsrc.org> | 2008-02-08 15:10:41 +0000 |
commit | 6ee73476a8d6fec696158af695d94cf562a07adb (patch) | |
tree | bbf820285eb1d1041136830cd06a84f77157b5fe /lang/ruby/modules.mk | |
parent | eab9910e23ff104efc56a8ac1fd2958b42df9b8a (diff) | |
download | pkgsrc-6ee73476a8d6fec696158af695d94cf562a07adb.tar.gz |
Add DESTDIR support for setup.rb>=3.1.1 packages.
Diffstat (limited to 'lang/ruby/modules.mk')
-rw-r--r-- | lang/ruby/modules.mk | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/lang/ruby/modules.mk b/lang/ruby/modules.mk index e5228619601..9e5816b43e3 100644 --- a/lang/ruby/modules.mk +++ b/lang/ruby/modules.mk @@ -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 @@ ruby-setup-build: .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 # |