aboutsummaryrefslogtreecommitdiffstats
path: root/textproc
diff options
context:
space:
mode:
authorsanpei <sanpei@FreeBSD.org>2010-12-02 22:32:23 +0800
committersanpei <sanpei@FreeBSD.org>2010-12-02 22:32:23 +0800
commit60eec5570a5163203444915a222ab67a57aa3757 (patch)
tree1130d6b3547bf37dec73c4859cb4a7c0a06f9270 /textproc
parenta9f6906a8cb7bd8efd6a34bb699ca068191b52c9 (diff)
downloadfreebsd-ports-graphics-60eec5570a5163203444915a222ab67a57aa3757.tar.gz
freebsd-ports-graphics-60eec5570a5163203444915a222ab67a57aa3757.tar.zst
freebsd-ports-graphics-60eec5570a5163203444915a222ab67a57aa3757.zip
add WITHOUT_NLS support.
(Don't update charset.alias if WITHOUT_NLS is set) Submitted by: swell.k at gmail.com
Diffstat (limited to 'textproc')
-rw-r--r--textproc/wdiff/Makefile17
-rw-r--r--textproc/wdiff/pkg-plist73
2 files changed, 87 insertions, 3 deletions
diff --git a/textproc/wdiff/Makefile b/textproc/wdiff/Makefile
index e19e1d3f875..cb9dd6bfc02 100644
--- a/textproc/wdiff/Makefile
+++ b/textproc/wdiff/Makefile
@@ -7,7 +7,7 @@
PORTNAME= wdiff
PORTVERSION= 0.6.4
-PORTREVISION= 1
+PORTREVISION= 2
CATEGORIES= textproc
MASTER_SITES= ${MASTER_SITE_GNU}
MASTER_SITE_SUBDIR= wdiff
@@ -19,7 +19,18 @@ GNU_CONFIGURE= yes
MAN1= wdiff.1
INFO= wdiff
-PLIST_FILES= bin/wdiff \
- lib/charset.alias
+
+.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>
diff --git a/textproc/wdiff/pkg-plist b/textproc/wdiff/pkg-plist
new file mode 100644
index 00000000000..ee3ff51e5ff
--- /dev/null
+++ b/textproc/wdiff/pkg-plist
@@ -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