From 60eec5570a5163203444915a222ab67a57aa3757 Mon Sep 17 00:00:00 2001 From: sanpei Date: Thu, 2 Dec 2010 14:32:23 +0000 Subject: add WITHOUT_NLS support. (Don't update charset.alias if WITHOUT_NLS is set) Submitted by: swell.k at gmail.com --- textproc/wdiff/Makefile | 17 +++++++++-- textproc/wdiff/pkg-plist | 73 ++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 87 insertions(+), 3 deletions(-) create mode 100644 textproc/wdiff/pkg-plist (limited to 'textproc') 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 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 -- cgit