Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 01 Dec 2010 17:32:45 +0300
From:      Anonymous <swell.k@gmail.com>
To:        MIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org>
Cc:        cvs-ports@FreeBSD.org, cvs-all@FreeBSD.org, ports-committers@FreeBSD.org
Subject:   Re: cvs commit: ports/textproc/wdiff Makefile
Message-ID:  <86y6898sxe.fsf@gmail.com>
References:  <201012011323.oB1DNiPW009713@repoman.freebsd.org>

next in thread | previous in thread | raw e-mail | index | archive | help
MIHIRA Sanpei Yoshiro <sanpei@FreeBSD.org> writes:

> sanpei      2010-12-01 13:23:44 UTC
>
>   FreeBSD ports repository
>
>   Modified files:
>     textproc/wdiff       Makefile
>   Log:
>   I forgot to add lib/charset.alias to PLIST_FILES.
>
>   Pointed out by: QAT

How about using same logic for WITHOUT_NLS like devel/bison,
textproc/gnugrep, etc.? NLS catalogs seem to be useful.

%%
Index: textproc/wdiff/Makefile
===================================================================
RCS file: /a/.cvsup/ports/textproc/wdiff/Makefile,v
retrieving revision 1.16
diff -u -p -r1.16 Makefile
--- textproc/wdiff/Makefile	30 Nov 2010 14:23:49 -0000	1.16
+++ textproc/wdiff/Makefile	1 Dec 2010 14:25:47 -0000
@@ -18,6 +18,18 @@ GNU_CONFIGURE=	yes
 
 MAN1=		wdiff.1
 INFO=		wdiff
-PLIST_FILES=	bin/wdiff
+
+.if !defined(WITHOUT_NLS)
+USE_GETTEXT=	yes
+CFLAGS+=	-I${LOCALBASE}/include
+PLIST_SUB+=	NLS=""
+.else
+CONFIGURE_ARGS=	--disable-nls
+PLIST_SUB+=	NLS="@comment "
+
+post-patch:	.SILENT
+	${REINPLACE_CMD} '/^install-exec-local:/s/install-exec-localcharset//' \
+		${WRKSRC}/lib/Makefile.in
+.endif
 
 .include <bsd.port.mk>
Index: textproc/wdiff/pkg-plist
===================================================================
RCS file: textproc/wdiff/pkg-plist
diff -N textproc/wdiff/pkg-plist
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ textproc/wdiff/pkg-plist	1 Dec 2010 14:16:23 -0000
@@ -0,0 +1,73 @@
+bin/wdiff
+%%NLS%%share/locale/af/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/be/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/bg/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/da/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/da/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/de/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/de/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/el/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/en@boldquot/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/en@quot/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/en_GB/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/es/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/es/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/et/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/et/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/eu/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/fi/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/ga/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/ga/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/id/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/it/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/it/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/ms/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/ms/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/nb/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/pt/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/ro/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/rw/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/sl/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/vi/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/wdiff.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/wdiff-gnulib.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/wdiff.mo
+%%NLS%%@dirrmtry share/locale/en@boldquot/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/en@boldquot
+%%NLS%%@dirrmtry share/locale/en@quot/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/en@quot
+%%NLS%%@dirrmtry share/locale/rw/LC_MESSAGES
+%%NLS%%@dirrmtry share/locale/rw
%%



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