pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/lang/gauche Try to inform legacy variables / options. ...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/f1eea5bab423
branches:  trunk
changeset: 524148:f1eea5bab423
user:      uebayasi <uebayasi%pkgsrc.org@localhost>
date:      Fri Jan 19 14:02:39 2007 +0000

description:
Try to inform legacy variables / options.  Minor cleanups.

diffstat:

 lang/gauche/options.mk |  12 +++++++-----
 1 files changed, 7 insertions(+), 5 deletions(-)

diffs (36 lines):

diff -r 33ccc164e750 -r f1eea5bab423 lang/gauche/options.mk
--- a/lang/gauche/options.mk    Fri Jan 19 13:47:07 2007 +0000
+++ b/lang/gauche/options.mk    Fri Jan 19 14:02:39 2007 +0000
@@ -1,10 +1,12 @@
-# $NetBSD: options.mk,v 1.5 2007/01/19 12:59:01 uebayasi Exp $
+# $NetBSD: options.mk,v 1.6 2007/01/19 14:02:39 uebayasi Exp $
 
 PKG_OPTIONS_VAR=       PKG_OPTIONS.gauche
 PKG_OPTIONS_OPTIONAL_GROUPS=   multibyte
 PKG_OPTIONS_GROUP.multibyte=   utf8 eucjp sjis
 PKG_SUPPORTED_OPTIONS= gdbm
 PKG_SUGGESTED_OPTIONS= gdbm utf8
+PKG_OPTIONS_LEGACY_VARS+=      GAUCHE_MULTIBYTE:utf8
+PKG_OPTIONS_LEGACY_OPTS+=      multibyte:utf8
 
 .include "../../mk/bsd.options.mk"
 
@@ -25,14 +27,14 @@
 ###
 ### Multibyte extension.
 ###
-.for __encoding in utf8 eucjp sjis
-.if !empty(PKG_OPTIONS:M${__encoding})
-CONFIGURE_ARGS+=       --enable-multibyte=${__encoding}
+.for encoding in utf8 eucjp sjis
+.if !empty(PKG_OPTIONS:M${encoding})
+CONFIGURE_ARGS+=       --enable-multibyte=${encoding}
 .endif
 .endfor
 
 .if defined(PKG_DEVELOPER)
 .PHONY: print-multibyte-options
 print-multibyte-options:
-       ${SED} -ne '/load "/ { s|^.*load "\([^"]*\)".*$|\1|; p; }' ${WRKSRC}/test/mb-chars.scm
+       ${SED} -ne '/load "/ { s,^.*load "\([^"]*\)".*$$,\1,; p; }' ${WRKSRC}/test/mb-chars.scm
 .endif



Home | Main Index | Thread Index | Old Index