diff options
author | minskim <minskim@pkgsrc.org> | 2006-05-03 02:11:00 +0000 |
---|---|---|
committer | minskim <minskim@pkgsrc.org> | 2006-05-03 02:11:00 +0000 |
commit | f03fc73c206aa68c46cdfb5edf023062f28e73fc (patch) | |
tree | 8404b551b51b19ed46b799c5c997faac093e8cf3 /lang/ruby/modules.mk | |
parent | ec60df753802b3483fb905b8de52f9ba5ba65a31 (diff) | |
download | pkgsrc-f03fc73c206aa68c46cdfb5edf023062f28e73fc.tar.gz |
Add PRINT_PLIST_AWK patterns for RUBY_SITEARCHLIBDIR and RUBY_DLEXT.
Diffstat (limited to 'lang/ruby/modules.mk')
-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; } |