pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/editors/nvi-m17n Convert to options framework.
details: https://anonhg.NetBSD.org/pkgsrc/rev/ad726584bd2a
branches: trunk
changeset: 503882:ad726584bd2a
user: wiz <wiz%pkgsrc.org@localhost>
date: Thu Dec 01 18:29:58 2005 +0000
description:
Convert to options framework.
Fix lots of pkglint warnings while here.
Simplify PLIST handling.
diffstat:
editors/nvi-m17n/Makefile | 63 +++++++++++++---------------------
editors/nvi-m17n/PLIST | 20 ++++++++--
editors/nvi-m17n/distinfo | 8 ++--
editors/nvi-m17n/options.mk | 15 ++++++++
editors/nvi-m17n/patches/patch-aa | 6 +-
editors/nvi-m17n/patches/patch-ab | 6 +-
editors/nvi-m17n/patches/patch-global | 46 ++++++++++++------------
7 files changed, 88 insertions(+), 76 deletions(-)
diffs (truncated from 341 to 300 lines):
diff -r 965df7f1cafd -r ad726584bd2a editors/nvi-m17n/Makefile
--- a/editors/nvi-m17n/Makefile Thu Dec 01 18:26:01 2005 +0000
+++ b/editors/nvi-m17n/Makefile Thu Dec 01 18:29:58 2005 +0000
@@ -1,8 +1,7 @@
-# $NetBSD: Makefile,v 1.32 2005/08/08 14:44:07 taca Exp $
+# $NetBSD: Makefile,v 1.33 2005/12/01 18:29:58 wiz Exp $
DISTNAME= nvi-1.79
PKGNAME= nvi-m17n-1.79.20040401
-#PKGREVISION=
CATEGORIES= editors
MASTER_SITES= ftp://ftp.foretune.co.jp/pub/tools/nvi-m17n/
@@ -14,46 +13,35 @@
CONFLICTS= vigor-[0-9]* nvi-[0-9]*
-WRKSRC= ${WRKDIR}/${DISTNAME}/build
+CONFIGURE_DIRS= ${WRKSRC}/build
GNU_CONFIGURE= YES
-PATCH_DIST_ARGS=-d ${WRKSRC}/.. --forward --quiet -E -f
-CONFIGURE_ENV= OPTFLAG='-D_PATH_SYSEXRC=\"${PREFIX}/etc/vi.exrc\"'
-CONFIGURE_ARGS+=--enable-multibyte --program-prefix=n
-CONFIGURE_ENV+= vi_cv_path_shell=${TOOLS_SH}
-USE_TOOLS+= sh
-
-.include "../../mk/bsd.prefs.mk"
-
+PATCH_DIST_ARGS+= -d ${WRKSRC} --forward --quiet -E -f
PATCH_FUZZ_FACTOR= -F1
-.if !defined(USE_CANNA) || ${USE_CANNA} == YES
-.include "../../inputmethod/canna-lib/buildlink3.mk"
-CONFIGURE_ARGS+=--enable-canna=${BUILDLINK_PREFIX.canna-lib}
-CANNA_OPT.euc-jp=canna cannactrl cannakey=
-CANNA_OPT.sjis=${CANNA_OPT.euc-jp}
-CANNA_OPT.iso-2022-jp=${CANNA_OPT.euc-jp}
-.endif
+CONFIGURE_ENV+= OPTFLAG='-D_PATH_SYSEXRC=\"${PREFIX}/etc/vi.exrc\"'
+CONFIGURE_ARGS+=--enable-multibyte --program-prefix=n
+
+CONFIGURE_ENV+= vi_cv_path_shell=${TOOLS_SH:Q}
+USE_TOOLS+= sh
-PLIST_TMP= ${WRKDIR}/PLIST
-PLIST_SRC+= ${PKGDIR}/PLIST ${PLIST_TMP}
+.include "options.mk"
+AUTODETECT.big5=cn
+AUTODETECT.euc-cn=cn
AUTODETECT.euc-jp=jp
-AUTODETECT.sjis=jp
-AUTODETECT.iso-2022-jp=jp
-
-AUTODETECT.euc-cn=cn
-AUTODETECT.big5=cn
+AUTODETECT.euc-kr=kr
+AUTODETECT.euc-tw=tw
AUTODETECT.hz=cn
AUTODETECT.iso-2022-cn=cn
-
-AUTODETECT.euc-tw=tw
+AUTODETECT.iso-2022-jp=jp
+AUTODETECT.iso-2022-kr=kr
+AUTODETECT.sjis=jp
-AUTODETECT.euc-kr=kr
-AUTODETECT.iso-2022-kr=kr
+ENCODINGS+= iso-2022-cn iso-2022-jp iso-2022-kr
+ENCODINGS+= euc-jp euc-cn euc-kr sjis big5 euc-tw hz
-ENCODING+= iso-2022-cn iso-2022-jp iso-2022-kr
-ENCODING+= euc-jp euc-cn euc-kr sjis big5 euc-tw hz
+.include "../../mk/bsd.prefs.mk"
.if ${OPSYS} == "NetBSD"
# XXX ignore NetBSD 2.0F and later's grantpt(3) and SysV pty for just now
@@ -62,26 +50,25 @@
post-patch:
.if ${OPSYS} == "NetBSD"
- ${RM} -f ${WRKSRC}/../include/sys/queue.h
+ ${RM} -f ${WRKSRC}/include/sys/queue.h
.endif
post-build:
-.for encoding in ${ENCODING}
+.for encoding in ${ENCODINGS}
@${SED} -e 's|$${CANNA_OPT}|${CANNA_OPT.${encoding}}|' \
-e 's|$${AUTODETECT}|${AUTODETECT.${encoding}}|' \
-e 's|$${ENCODING}|${encoding}|g' \
-e 's|$${PREFIX}|${PREFIX}|' \
${FILESDIR}/nvi-m17n > ${WRKDIR}/nvi-${encoding}
- @${ECHO} "bin/nvi-${encoding}" >> ${PLIST_TMP}
.endfor
post-install:
-.for encoding in ${ENCODING}
- @${INSTALL_SCRIPT} ${WRKDIR}/nvi-${encoding} ${PREFIX}/bin
+.for encoding in ${ENCODINGS}
+ ${INSTALL_SCRIPT} ${WRKDIR}/nvi-${encoding} ${PREFIX}/bin
.endfor
- @${CP} ${WRKSRC}/../README.english \
+ ${INSTALL_DATA} ${WRKSRC}/README.english \
${PREFIX}/share/vi/
- @${CP} ${WRKSRC}/../README.japanese \
+ ${INSTALL_DATA} ${WRKSRC}/README.japanese \
${PREFIX}/share/vi/
.include "../../mk/bsd.pkg.mk"
diff -r 965df7f1cafd -r ad726584bd2a editors/nvi-m17n/PLIST
--- a/editors/nvi-m17n/PLIST Thu Dec 01 18:26:01 2005 +0000
+++ b/editors/nvi-m17n/PLIST Thu Dec 01 18:29:58 2005 +0000
@@ -1,15 +1,24 @@
-@comment $NetBSD: PLIST,v 1.1 2001/10/31 21:23:16 zuntum Exp $
+@comment $NetBSD: PLIST,v 1.2 2005/12/01 18:29:58 wiz Exp $
+bin/nex
bin/nvi
-bin/nex
+bin/nvi-big5
+bin/nvi-euc-cn
+bin/nvi-euc-jp
+bin/nvi-euc-kr
+bin/nvi-euc-tw
+bin/nvi-hz
+bin/nvi-iso-2022-cn
+bin/nvi-iso-2022-jp
+bin/nvi-iso-2022-kr
+bin/nvi-sjis
bin/nview
+bin/qregular
bin/regular
-bin/qregular
+man/man1/nex.1
man/man1/nvi.1
-man/man1/nex.1
man/man1/nview.1
share/vi/README.english
share/vi/README.japanese
-share/vi/recover
share/vi/catalog/dutch
share/vi/catalog/english
share/vi/catalog/french
@@ -21,6 +30,7 @@
share/vi/perl/make.pl
share/vi/perl/tk.pl
share/vi/perl/wc.pl
+share/vi/recover
share/vi/tcl/errors.tcl
share/vi/tcl/gnats.tcl
share/vi/tcl/mailprocs.tcl
diff -r 965df7f1cafd -r ad726584bd2a editors/nvi-m17n/distinfo
--- a/editors/nvi-m17n/distinfo Thu Dec 01 18:26:01 2005 +0000
+++ b/editors/nvi-m17n/distinfo Thu Dec 01 18:29:58 2005 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.7 2005/08/08 14:44:07 taca Exp $
+$NetBSD: distinfo,v 1.8 2005/12/01 18:29:58 wiz Exp $
SHA1 (nvi-1.79.tar.gz) = 65b49768783372609278ecedd63caa8c1547aa2a
RMD160 (nvi-1.79.tar.gz) = 1c39d480e0d30a87fc061c3219354b50011a8621
@@ -6,6 +6,6 @@
SHA1 (nvi-1.79.m17n-20040401.diff.gz) = 10fa772dad4368727a7ddc740d85cdfda3062414
RMD160 (nvi-1.79.m17n-20040401.diff.gz) = 1b1790448d38a4f92f3b2df5f6aa566f1d8efff0
Size (nvi-1.79.m17n-19991117.diff.gz) = 166609 bytes
-SHA1 (patch-aa) = c246b1533dfbfc93ad9c0a8ea8cff5db157c9ee8
-SHA1 (patch-ab) = f7a382af11f200467ac994d90e108e97c7602b13
-SHA1 (patch-global) = 118bfdcefba77c37c07b29d0c68fb8bbf02cb10e
+SHA1 (patch-aa) = aea78d88e44cfcbaa2327861d945098e3db1ce1a
+SHA1 (patch-ab) = 07d0cb5d617e5c2c5781f93daf3a1e8cbe22cf14
+SHA1 (patch-global) = 8a825c8c68872cdfb38c280616d8cbe444bda4b0
diff -r 965df7f1cafd -r ad726584bd2a editors/nvi-m17n/options.mk
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/editors/nvi-m17n/options.mk Thu Dec 01 18:29:58 2005 +0000
@@ -0,0 +1,15 @@
+# $NetBSD: options.mk,v 1.1 2005/12/01 18:29:58 wiz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.nvi-m17n
+PKG_SUPPORTED_OPTIONS= canna
+PKG_SUGGESTED_OPTIONS= canna
+
+.include "../../mk/bsd.options.mk"
+
+.if !empty(PKG_OPTIONS:Mcanna)
+.include "../../inputmethod/canna-lib/buildlink3.mk"
+CONFIGURE_ARGS+= --enable-canna=${BUILDLINK_PREFIX.canna-lib}
+CANNA_OPT.euc-jp=canna cannactrl cannakey=
+CANNA_OPT.sjis=${CANNA_OPT.euc-jp}
+CANNA_OPT.iso-2022-jp=${CANNA_OPT.euc-jp}
+.endif
diff -r 965df7f1cafd -r ad726584bd2a editors/nvi-m17n/patches/patch-aa
--- a/editors/nvi-m17n/patches/patch-aa Thu Dec 01 18:26:01 2005 +0000
+++ b/editors/nvi-m17n/patches/patch-aa Thu Dec 01 18:29:58 2005 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-aa,v 1.2 1999/12/28 05:37:28 wiz Exp $
-*** Makefile.in.orig Thu Mar 6 13:19:46 1997
---- Makefile.in Thu Mar 6 13:23:40 1997
+$NetBSD: patch-aa,v 1.3 2005/12/01 18:29:58 wiz Exp $
+*** build/Makefile.in.orig Thu Mar 6 13:19:46 1997
+--- build/Makefile.in Thu Mar 6 13:23:40 1997
***************
*** 87,95 ****
cd $(bindir) && $(chmod) $(emode) `echo vi | sed '$(transform)'`
diff -r 965df7f1cafd -r ad726584bd2a editors/nvi-m17n/patches/patch-ab
--- a/editors/nvi-m17n/patches/patch-ab Thu Dec 01 18:26:01 2005 +0000
+++ b/editors/nvi-m17n/patches/patch-ab Thu Dec 01 18:29:58 2005 +0000
@@ -1,6 +1,6 @@
-$NetBSD: patch-ab,v 1.3 1999/12/28 05:37:28 wiz Exp $
---- configure.bad Fri Jun 26 02:22:51 1998
-+++ configure Fri Jun 26 02:23:39 1998
+$NetBSD: patch-ab,v 1.4 2005/12/01 18:29:58 wiz Exp $
+--- build/configure.bad Fri Jun 26 02:22:51 1998
++++ build/configure Fri Jun 26 02:23:39 1998
@@ -1686,10 +1686,8 @@
case "$host_os" in
bsdi2.1)
diff -r 965df7f1cafd -r ad726584bd2a editors/nvi-m17n/patches/patch-global
--- a/editors/nvi-m17n/patches/patch-global Thu Dec 01 18:26:01 2005 +0000
+++ b/editors/nvi-m17n/patches/patch-global Thu Dec 01 18:29:58 2005 +0000
@@ -1,8 +1,8 @@
-$NetBSD: patch-global,v 1.1 2000/05/08 11:52:12 sakamoto Exp $
+$NetBSD: patch-global,v 1.2 2005/12/01 18:29:58 wiz Exp $
diff -NrU2 ../build/Makefile.in ../../nvi-1.79/build/Makefile.in
---- ../build/Makefile.in Mon May 8 16:05:17 2000
-+++ ../../nvi-1.79/build/Makefile.in Mon May 8 16:06:15 2000
+--- build/Makefile.in Mon May 8 16:05:17 2000
++++ build/Makefile.in Mon May 8 16:06:15 2000
@@ -4,5 +4,5 @@
CC= @CC@
OPTFLAG=@OPTFLAG@
@@ -11,8 +11,8 @@
LDFLAGS=@LDFLAGS@
PERL= @vi_cv_path_perl@
diff -NrU2 ../common/main.c ../../nvi-1.79/common/main.c
---- ../common/main.c Sat Oct 12 07:28:28 1996
-+++ ../../nvi-1.79/common/main.c Mon May 8 16:06:15 2000
+--- common/main.c Sat Oct 12 07:28:28 1996
++++ ../nvi-1.79/common/main.c Mon May 8 16:06:15 2000
@@ -65,4 +65,7 @@
u_int flags;
int ch, flagchk, lflag, secure, startup, readonly, rval, silent;
@@ -59,8 +59,8 @@
if (secure)
*oargp++ = O_SECURE;
diff -NrU2 ../common/options.c ../../nvi-1.79/common/options.c
---- ../common/options.c Mon May 8 16:05:18 2000
-+++ ../../nvi-1.79/common/options.c Mon May 8 16:20:26 2000
+--- common/options.c Mon May 8 16:05:18 2000
++++ ../nvi-1.79/common/options.c Mon May 8 16:20:26 2000
@@ -129,4 +129,8 @@
/* O_FLASH HPUX */
{"flash", NULL, OPT_1BOOL, 0},
@@ -79,8 +79,8 @@
#endif
{"ht", O_HARDTABS}, /* 4BSD */
diff -NrU2 ../docs/USD.doc/vi.man/vi.1 ../../nvi-1.79/docs/USD.doc/vi.man/vi.1
---- ../docs/USD.doc/vi.man/vi.1 Fri Oct 11 10:34:05 1996
-+++ ../../nvi-1.79/docs/USD.doc/vi.man/vi.1 Mon May 8 16:06:15 2000
+--- docs/USD.doc/vi.man/vi.1 Fri Oct 11 10:34:05 1996
++++ ../nvi-1.79/docs/USD.doc/vi.man/vi.1 Mon May 8 16:06:15 2000
@@ -18,5 +18,5 @@
.B ex
[\c
@@ -134,8 +134,8 @@
.TP
.B "hardtabs, ht [8]"
diff -NrU2 ../ex/ex.h ../../nvi-1.79/ex/ex.h
---- ../ex/ex.h Mon May 8 16:05:18 2000
-+++ ../../nvi-1.79/ex/ex.h Mon May 8 16:06:15 2000
+--- ex/ex.h Mon May 8 16:05:18 2000
++++ ../nvi-1.79/ex/ex.h Mon May 8 16:06:15 2000
@@ -165,4 +165,7 @@
#define E_USELASTCMD 0x02000000 /* Use the last command. */
#define E_VISEARCH 0x04000000 /* It's really a vi search command. */
@@ -145,8 +145,8 @@
u_int32_t flags; /* Current flags. */
};
diff -NrU2 ../ex/ex_cmd.c ../../nvi-1.79/ex/ex_cmd.c
---- ../ex/ex_cmd.c Wed Oct 23 22:31:01 1996
-+++ ../../nvi-1.79/ex/ex_cmd.c Mon May 8 16:06:15 2000
+--- ex/ex_cmd.c Wed Oct 23 22:31:01 1996
++++ ../nvi-1.79/ex/ex_cmd.c Mon May 8 16:06:15 2000
@@ -303,4 +303,11 @@
"rew[ind][!]",
"re-edit all the files in the file argument list"},
@@ -160,8 +160,8 @@
/*
* !!!
diff -NrU2 ../ex/ex_tag.c ../../nvi-1.79/ex/ex_tag.c
---- ../ex/ex_tag.c Mon Sep 16 05:02:43 1996
-+++ ../../nvi-1.79/ex/ex_tag.c Mon May 8 16:06:15 2000
+--- ex/ex_tag.c Mon Sep 16 05:02:43 1996
++++ ../nvi-1.79/ex/ex_tag.c Mon May 8 16:06:15 2000
@@ -47,4 +47,8 @@
static void ctag_file __P((SCR *, TAGF *, char *, char **, size_t *));
static int ctag_search __P((SCR *, char *, size_t, char *));
@@ -335,8 +335,8 @@
/*
* ctag_slist --
Home |
Main Index |
Thread Index |
Old Index