diff options
-rw-r--r-- | lang/ruby/modules.mk | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/lang/ruby/modules.mk b/lang/ruby/modules.mk index e33eb1dc265..e5228619601 100644 --- a/lang/ruby/modules.mk +++ b/lang/ruby/modules.mk @@ -1,4 +1,4 @@ -# $NetBSD: modules.mk,v 1.16 2006/01/05 07:04:47 taca Exp $ +# $NetBSD: modules.mk,v 1.17 2006/05/03 02:11:00 minskim Exp $ .if !defined(_RUBY_MODULE_MK) _RUBY_MODULE_MK= # defined @@ -136,8 +136,15 @@ ruby-simple-install: .include "replace.mk" PRINT_PLIST_AWK+= /^@dirrm lib\/ruby$$/ { next; } +PRINT_PLIST_AWK+= /\.${RUBY_DLEXT}$$/ \ + { gsub(/${RUBY_DLEXT}$$/, "$${RUBY_DLEXT}") } +PRINT_PLIST_AWK+= /^@dirrm ${RUBY_SITEARCHLIBDIR:S|${PREFIX}/||:S|/|\\/|g}$$/ \ + { next; } PRINT_PLIST_AWK+= /^@dirrm ${RUBY_SITELIBDIR:S|${PREFIX}/||: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; } |