pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/lang/ruby Add PRINT_PLIST_AWK patterns for ruby modules.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/9434545a2785
branches:  trunk
changeset: 492320:9434545a2785
user:      minskim <minskim%pkgsrc.org@localhost>
date:      Sun Apr 10 00:57:58 2005 +0000

description:
Add PRINT_PLIST_AWK patterns for ruby modules.

diffstat:

 lang/ruby/modules.mk |  9 ++++++++-
 1 files changed, 8 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r df8c8a212ab8 -r 9434545a2785 lang/ruby/modules.mk
--- a/lang/ruby/modules.mk      Sun Apr 10 00:42:49 2005 +0000
+++ b/lang/ruby/modules.mk      Sun Apr 10 00:57:58 2005 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: modules.mk,v 1.7 2005/04/02 05:10:10 minskim Exp $
+# $NetBSD: modules.mk,v 1.8 2005/04/10 00:57:58 minskim Exp $
 
 .if !defined(_RUBY_MODULE_MK)
 _RUBY_MODULE_MK=       # defined
@@ -142,4 +142,11 @@
 
 .include "replace.mk"
 
+PRINT_PLIST_AWK+=      /^@dirrm lib\/ruby$$/ { next; }
+PRINT_PLIST_AWK+=      /^@dirrm ${RUBY_SITELIBDIR:S|${LOCALBASE}/||:S|/|\\/|g}$$/ \
+                       { next; }
+PRINT_PLIST_AWK+=      /^(@dirrm )?${RUBY_SITELIBDIR:S|${LOCALBASE}/||:S|/|\\/|g}/ \
+                       { gsub(/${RUBY_SITELIBDIR:S|${LOCALBASE}/||:S|/|\\/|g}/, "$${RUBY_SITELIBDIR}"); \
+                       print; next; }
+
 .endif



Home | Main Index | Thread Index | Old Index