Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jul 2014 02:42:30 +0000 (UTC)
From:      John Marino <marino@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r361597 - head/editors/nvi-m17n
Message-ID:  <201407120242.s6C2gUsn039675@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: marino
Date: Sat Jul 12 02:42:29 2014
New Revision: 361597
URL: http://svnweb.freebsd.org/changeset/ports/361597
QAT: https://qat.redports.org/buildarchive/r361597/

Log:
  editors/nvi-m17n: Add options to set default encoding and canna support
  
  nva-m17n has a configure option to set default multibyte encoding.  It has
  also the option to support Canna japanese Kana-Kanji conversion system.
  Those options were supported on ports in chinese, japanese and korean
  categories, before 2011-05-02, expired when patch distribution site
  disappeared, but these localized port didn't revive the option when the
  port was revived.  This patch makes the options selectable.
  
  PR:		190482
  Submitted by:	Yasuhito FUTATSUKI

Modified:
  head/editors/nvi-m17n/Makefile

Modified: head/editors/nvi-m17n/Makefile
==============================================================================
--- head/editors/nvi-m17n/Makefile	Sat Jul 12 02:38:53 2014	(r361596)
+++ head/editors/nvi-m17n/Makefile	Sat Jul 12 02:42:29 2014	(r361597)
@@ -3,7 +3,7 @@
 
 PORTNAME=	nvi
 PORTVERSION=	1.79.20040608
-PORTREVISION=	1
+PORTREVISION=	2
 PORTEPOCH=	1
 CATEGORIES?=	editors
 MASTER_SITES=	ftp://ftp.mk.bsdclub.org/pub/FreeBSD/distfiles/	\
@@ -22,10 +22,83 @@ WRKSRC=		${WRKDIR}/${DISTNAME}/build
 
 GNU_CONFIGURE=	yes
 CONFIGURE_ENV=	OPTFLAG='-D_PATH_SYSEXRC=\"${PREFIX}/etc/vi.exrc\"'
-CONFIGURE_ARGS=	--enable-multibyte --program-prefix=n
+CONFIGURE_ARGS=	--program-prefix=n
+
+OPTIONS_RADIO=	MULTIBYTE
+OPTIONS_RADIO_MULTIBYTE=	EUC_JP EUC_CN EUC_KR ISO_8859_1 ISO_8859_2\
+				ISO_8859_3 ISO_8859_4 ISO_8859_7 ISO_8859_8\
+				ISO_8859_9 ISO_2022_CN ISO_2022_JP\
+				ISO_2022_JP_3 ISO_2022_KR CTEXT\
+				SJIS BIG5 EUC_TW
+OPTIONS_DEFINE=		CANNA
+OPTIONS_DEFAULT=
+EUC_JP_DESC=		Set euc-jp        as default multibyte encoding
+EUC_CN_DESC=		Set euc-cn        as default multibyte encoding
+EUC_KR_DESC=		Set euc-kr        as default multibyte encoding
+ISO_8859_1_DESC=	Set iso-8859-1    as default multibyte encoding
+ISO_8859_2_DESC=	Set iso-8859-2    as default multibyte encoding
+ISO_8859_3_DESC=	Set iso-8859-3    as default multibyte encoding
+ISO_8859_4_DESC=	Set iso-8859-4    as default multibyte encoding
+ISO_8859_7_DESC=	Set iso-8859-7    as default multibyte encoding
+ISO_8859_8_DESC=	Set iso-8859-8    as default multibyte encoding
+ISO_8859_9_DESC=	Set iso-8859-9    as default multibyte encoding
+ISO_2022_CN_DESC=	Set iso-2022-cn   as default multibyte encoding
+ISO_2022_JP_DESC=	Set iso-2022-jp   as default multibyte encoding
+ISO_2022_JP_3_DESC=	Set iso-2022-jp-3 as default multibyte encoding
+ISO_2022_KR_DESC=	Set iso-2022-kr   as default multibyte encoding
+CTEXT_DESC=		Set X11 compound  as default multibyte encoding
+SJIS_DESC=		Set sjis          as default multibyte encoding
+BIG5_DESC=		Set big5          as default multibyte encoding
+EUC_TW_DESC=		Set euc-tw        as default multibyte encoding
+CANNA_DESC=		Enable canna support
 
 .include <bsd.port.pre.mk>
 
+.if ${PORT_OPTIONS:MEUC_JP}
+CONFIGURE_ARGS+=	--enable-multibyte=euc-jp
+.elif ${PORT_OPTIONS:MEUC_CN}
+CONFIGURE_ARGS+=	--enable-multibyte=euc-cn
+.elif ${PORT_OPTIONS:MEUC_KR}
+CONFIGURE_ARGS+=	--enable-multibyte=euc-kr
+.elif ${PORT_OPTIONS:MISO_8859_1}
+CONFIGURE_ARGS+=	--enable-multibyte=iso-8859-1
+.elif ${PORT_OPTIONS:MISO_8859_2}
+CONFIGURE_ARGS+=	--enable-multibyte=iso-8859-2
+.elif ${PORT_OPTIONS:MISO_8859_3}
+CONFIGURE_ARGS+=	--enable-multibyte=iso-8859-3
+.elif ${PORT_OPTIONS:MISO_8859_4}
+CONFIGURE_ARGS+=	--enable-multibyte=iso-8859-4
+.elif ${PORT_OPTIONS:MISO_8859_7}
+CONFIGURE_ARGS+=	--enable-multibyte=iso-8859-7
+.elif ${PORT_OPTIONS:MISO_8859_8}
+CONFIGURE_ARGS+=	--enable-multibyte=iso-8859-8
+.elif ${PORT_OPTIONS:MISO_8859_9}
+CONFIGURE_ARGS+=	--enable-multibyte=iso-8859-9
+.elif ${PORT_OPTIONS:MISO_2022_CN}
+CONFIGURE_ARGS+=	--enable-multibyte=iso-2022-cn
+.elif ${PORT_OPTIONS:MISO_2022_JP}
+CONFIGURE_ARGS+=	--enable-multibyte=iso-2022-jp
+.elif ${PORT_OPTIONS:MISO_2022_JP_3}
+CONFIGURE_ARGS+=	--enable-multibyte=iso-2022-jp-3
+.elif ${PORT_OPTIONS:MISO_2022_KR}
+CONFIGURE_ARGS+=	--enable-multibyte=iso-2022-kr
+.elif ${PORT_OPTIONS:MCTEXT}
+CONFIGURE_ARGS+=	--enable-multibyte=ctext
+.elif ${PORT_OPTIONS:MSJIS}
+CONFIGURE_ARGS+=	--enable-multibyte=sjis
+.elif ${PORT_OPTIONS:MBIG5}
+CONFIGURE_ARGS+=	--enable-multibyte=big5
+.elif ${PORT_OPTIONS:MEUC_TW}
+CONFIGURE_ARGS+=	--enable-multibyte=euc-tw
+.else
+CONFIGURE_ARGS+=	--enable-multibyte
+.endif
+
+.if ${PORT_OPTIONS:MCANNA}
+CONFIGURE_ARGS+=	--enable-canna=${PREFIX}
+LIB_DEPEND=	canna.1:${PORTSDIR}/japanese/Canna
+.endif
+
 post-patch:
 	${LN} -s /usr/include/sys/queue.h ${WRKSRC}/../include/sys/queue_dist.h
 



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201407120242.s6C2gUsn039675>