diff options
author | taca <taca@pkgsrc.org> | 2009-02-15 03:16:37 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2009-02-15 03:16:37 +0000 |
commit | bdf0dc37289e27a38083c69d3c4316cce47a37c9 (patch) | |
tree | 0a5043c8a1783908f6a8e8e82d710ba6e6b9c949 /lang/ruby/modules.mk | |
parent | 821d5a354d9be31cbda105a6b3f56edbadb429bd (diff) | |
download | pkgsrc-bdf0dc37289e27a38083c69d3c4316cce47a37c9.tar.gz |
* Describe USE_RUBY_EXTCONF and USE_RUBY_SETUP.
* Add USE_RUBY_SETUP_PKG which use devel/ruby-setup as setup script
instead of a script bundled with original distfiles since it is
useful to support DESTDIR.
Diffstat (limited to 'lang/ruby/modules.mk')
-rw-r--r-- | lang/ruby/modules.mk | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/lang/ruby/modules.mk b/lang/ruby/modules.mk index fbcfe7edd9a..d0f40c5c901 100644 --- a/lang/ruby/modules.mk +++ b/lang/ruby/modules.mk @@ -1,4 +1,4 @@ -# $NetBSD: modules.mk,v 1.23 2008/06/19 14:30:45 taca Exp $ +# $NetBSD: modules.mk,v 1.24 2009/02/15 03:16:37 taca Exp $ .if !defined(_RUBY_MODULE_MK) _RUBY_MODULE_MK= # defined @@ -16,6 +16,8 @@ CONFIGURE_ENV+= RUBY=${RUBY:Q} RDOC=${RDOC:Q} # # extconf.rb support # +# USE_RUBY_EXTCONF Use extconf script. +# # RUBY_EXTCONF specify extconf script name (default: extconf.rb). # RUBY_EXTCONF_CHECK make sure to check existence of Makefile after # executing extconf script (default: yes). @@ -79,16 +81,28 @@ ruby-extconf-configure: # # setup.rb support # +# USE_RUBY_SETUP Uset setup script. +# USE_RUBY_SETUP_PKG Use pkgsrc's ruby-setup package. +# # RUBY_SETUP specify setup script name (default: setup.rb). # .elif defined(USE_RUBY_SETUP) && empty(USE_RUBY_SETUP:M[nN][oO]) RUBY_SETUP?= setup.rb +.if defined(USE_RUBY_SETUP_PKG) && empty(USE_RUBY_SETUP_PKG:M[nN][oO]) +BUILD_DEPENDS+= ${RUBY_PKGPREFIX}-setup>=3.4.0:../../devel/ruby-setup +.endif + .if !target(do-configure) do-configure: ruby-setup-configure ruby-setup-configure: +.if defined(USE_RUBY_SETUP_PKG) && empty(USE_RUBY_SETUP_PKG:M[nN][oO]) + @${ECHO_MSG} "===> Use pkgsrc's ${RUBY_SETUP}" + ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \ + ${CP} ${PREFIX}/${RUBY_VENDORLIB}/setup.rb ${RUBY_SETUP} +.endif @${ECHO_MSG} "===> Running ${RUBY_SETUP} to configure" ${_PKG_SILENT}${_PKG_DEBUG}cd ${WRKSRC}; \ ${SETENV} ${CONFIGURE_ENV} ${RUBY} ${RUBY_SETUP} config ${CONFIGURE_ARGS} |