summaryrefslogtreecommitdiff
path: root/lang/ruby
diff options
context:
space:
mode:
authorminskim <minskim@pkgsrc.org>2006-05-03 02:11:00 +0000
committerminskim <minskim@pkgsrc.org>2006-05-03 02:11:00 +0000
commit2a81e1952e69bd9b367b225762c628c83fd78dc6 (patch)
tree8404b551b51b19ed46b799c5c997faac093e8cf3 /lang/ruby
parent65d82c744795170f1ed570b000252ae0aaec0f84 (diff)
downloadpkgsrc-2a81e1952e69bd9b367b225762c628c83fd78dc6.tar.gz
Add PRINT_PLIST_AWK patterns for RUBY_SITEARCHLIBDIR and RUBY_DLEXT.
Diffstat (limited to 'lang/ruby')
-rw-r--r--lang/ruby/modules.mk9
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; }