pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/lang/ruby * Describe USE_RUBY_EXTCONF and USE_RUBY_SETUP.
details: https://anonhg.NetBSD.org/pkgsrc/rev/74610808ac23
branches: trunk
changeset: 554451:74610808ac23
user: taca <taca%pkgsrc.org@localhost>
date: Sun Feb 15 03:16:37 2009 +0000
description:
* 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:
lang/ruby/modules.mk | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
diffs (47 lines):
diff -r 099904da342b -r 74610808ac23 lang/ruby/modules.mk
--- a/lang/ruby/modules.mk Sun Feb 15 03:05:46 2009 +0000
+++ b/lang/ruby/modules.mk Sun Feb 15 03:16:37 2009 +0000
@@ -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 @@
#
# 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 @@
#
# 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}
Home |
Main Index |
Thread Index |
Old Index