diff options
author | taca <taca@pkgsrc.org> | 2008-06-19 14:30:45 +0000 |
---|---|---|
committer | taca <taca@pkgsrc.org> | 2008-06-19 14:30:45 +0000 |
commit | 5e0621752a9886d65a79e8d1bda3f8f80f33362b (patch) | |
tree | 1bf6faa52a24f584be570511f363bf4f8c423977 /lang/ruby/modules.mk | |
parent | 7b26d58cecb721877903c6082d540dfe9bf270d9 (diff) | |
download | pkgsrc-5e0621752a9886d65a79e8d1bda3f8f80f33362b.tar.gz |
Start of updating Ruby to 1.8.7.
* Update RUBY18_VERSION to 1.8.7 and RUBY18_PATCHLEVEL to 17.
* Use vendor_ruby instead for site_ruby.
* Introduce macros for relative path and use them instead of old absolete
path.
RUBY_LIB lib/ruby/${RUBY_VER_DIR}
RUBY_ARCHLIB ${RUBY_LIB}/${RUBY_ARCH}
RUBY_SITELIB_BASE lib/ruby/site_ruby
RUBY_SITELIB ${RUBY_SITELIB_BASE}/${RUBY_VER_DIR}
RUBY_SITEARCHLIB ${RUBY_SITELIB}/${RUBY_ARCH}
RUBY_VENDORLIB_BASE lib/ruby/vendor_ruby
RUBY_VENDORLIB ${RUBY_VENDORLIB_BASE}/${RUBY_VER_DIR}
RUBY_VENDORARCHLIB ${RUBY_VENDORLIB}/${RUBY_ARCH}
RUBY_DOC share/doc/${RUBY_NAME}
RUBY_EG share/examples/${RUBY_NAME}
Old these macros are removed after 2008Q2 branch.
RUBY_LIBDIR
RUBY_ARCHLIBDIR
RUBY_SITELIBDIR
RUBY_SITEARCHLIBDIR
RUBY_VENDORLIBDIR
RUBY_VENDORARCHLIBDIR
RUBY_DOCDIR
RUBY_EXAMPLESDIR
* update PRINT_PLIST_AWK macro to reality and move some of them from
ruby/modules.mk to ruby/rubyversion.mk.
Diffstat (limited to 'lang/ruby/modules.mk')
-rw-r--r-- | lang/ruby/modules.mk | 38 |
1 files changed, 16 insertions, 22 deletions
diff --git a/lang/ruby/modules.mk b/lang/ruby/modules.mk index 68ea3bb4149..fbcfe7edd9a 100644 --- a/lang/ruby/modules.mk +++ b/lang/ruby/modules.mk @@ -1,4 +1,4 @@ -# $NetBSD: modules.mk,v 1.22 2008/03/12 03:18:47 jlam Exp $ +# $NetBSD: modules.mk,v 1.23 2008/06/19 14:30:45 taca Exp $ .if !defined(_RUBY_MODULE_MK) _RUBY_MODULE_MK= # defined @@ -26,7 +26,8 @@ CONFIGURE_ENV+= RUBY=${RUBY:Q} RDOC=${RDOC:Q} RUBY_EXTCONF?= extconf.rb INSTALL_TARGET?= site-install -CONFIGURE_ARGS+= --with-opt-dir=${PREFIX:Q} +CONFIGURE_ARGS+= ${RUBY_EXTCONF_ARGS} +RUBY_EXTCONF_ARGS?= --with-opt-dir=${PREFIX:Q} --vendor RUBY_EXTCONF_CHECK?= yes RUBY_EXTCONF_MAKEFILE?= Makefile @@ -128,6 +129,15 @@ ruby-setup-install: RUBY_SIMPLE_INSTALL?= install.rb INSTALL_TARGET?= # empty +SUBST_CLASSES+= rinstall +SUBST_STAGE.rinstall= pre-install +SUBST_FILES.rinstall= ${RUBY_SIMPLE_INSTALL} +SUBST_SED.rinstall= -e "s|'sitedir'|'vendordir'|g" +SUBST_SED.rinstall+= -e "s|'sitelibdir'|'vendorlibdir'|g" +SUBST_SED.rinstall+= -e 's|"sitelibdir"|"vendorlibdir"|g' +SUBST_SED.rinstall+= -e 's|/site_ruby/|/vendor_ruby/|g' +SUBST_MESSAGE.rinstall= Fixing ${RUBY_SIMPLE_INSTALL} files. + .if !target(do-install) do-install: ruby-simple-install @@ -140,29 +150,13 @@ ruby-simple-install: .include "replace.mk" -PRINT_PLIST_AWK+= /^@dirrm lib\/ruby$$/ { next; } -PRINT_PLIST_AWK+= /^@dirrm lib\/ruby\/site_ruby$$/ { next; } -PRINT_PLIST_AWK+= /\.${RUBY_DLEXT}$$/ \ - { gsub(/${RUBY_DLEXT}$$/, "$${RUBY_DLEXT}") } -PRINT_PLIST_AWK+= /^@dirrm ${RUBY_SITEARCHLIBDIR:S|${PREFIX}/||:S|/|\\/|g}$$/ \ +PRINT_PLIST_AWK+= /^@dirrm ${RUBY_SITEARCHLIB:S|/|\\/|g}$$/ \ { next; } -PRINT_PLIST_AWK+= /^@dirrm ${RUBY_SITELIBDIR:S|${PREFIX}/||:S|/|\\/|g}$$/ \ +PRINT_PLIST_AWK+= /^@dirrm ${RUBY_SITELIB:S|/|\\/|g}$$/ \ { next; } -PRINT_PLIST_AWK+= /^(@dirrm )?${RUBY_SITEARCHLIBDIR:S|${PREFIX}/||:S|/|\\/|g}/ \ - { gsub(/${RUBY_SITEARCHLIBDIR:S|${PREFIX}/||:S|/|\\/|g}/, "$${RUBY_SITEARCHLIBDIR}"); \ - print; next; } -PRINT_PLIST_AWK+= /^(@dirrm )?${RUBY_SITELIBDIR:S|${PREFIX}/||:S|/|\\/|g}/ \ - { gsub(/${RUBY_SITELIBDIR:S|${PREFIX}/||:S|/|\\/|g}/, "$${RUBY_SITELIBDIR}"); \ - print; next; } -PRINT_PLIST_AWK+= /^@dirrm ${RUBY_DOCDIR:S|${PREFIX}/||:S|/|\\/|g}$$/ \ +PRINT_PLIST_AWK+= /^@dirrm ${RUBY_VENDORARCHLIB:S|/|\\/|g}$$/ \ { next; } -PRINT_PLIST_AWK+= /^(@dirrm )?${RUBY_DOCDIR:S|${PREFIX}/||:S|/|\\/|g}/ \ - { gsub(/${RUBY_DOCDIR:S|${PREFIX}/||:S|/|\\/|g}/, "$${RUBY_DOCDIR}"); \ - print; next; } -PRINT_PLIST_AWK+= /^@dirrm ${RUBY_EXAMPLESDIR:S|${PREFIX}/||:S|/|\\/|g}$$/ \ +PRINT_PLIST_AWK+= /^@dirrm ${RUBY_VENDORLIB:S|/|\\/|g}$$/ \ { next; } -PRINT_PLIST_AWK+= /^(@dirrm )?${RUBY_EXAMPLESDIR:S|${PREFIX}/||:S|/|\\/|g}/ \ - { gsub(/${RUBY_EXAMPLESDIR:S|${PREFIX}/||:S|/|\\/|g}/, "$${RUBY_EXAMPLESDIR}"); \ - print; next; } .endif |