aboutsummaryrefslogtreecommitdiffstats
path: root/lang
diff options
context:
space:
mode:
authorkrion <krion@FreeBSD.org>2004-07-11 18:30:37 +0800
committerkrion <krion@FreeBSD.org>2004-07-11 18:30:37 +0800
commit465c8da9f76f1946f1f05b1d35d388a397ecfa5a (patch)
treee7262df1e4a935ddbcb3c6adb2c818d19b2c653a /lang
parent1b3d4f7a6c80d42d506b4abc7d71c9369dade07f (diff)
downloadfreebsd-ports-gnome-465c8da9f76f1946f1f05b1d35d388a397ecfa5a.tar.gz
freebsd-ports-gnome-465c8da9f76f1946f1f05b1d35d388a397ecfa5a.tar.zst
freebsd-ports-gnome-465c8da9f76f1946f1f05b1d35d388a397ecfa5a.zip
Support WITHOUT_NLS
Pet portlint
Diffstat (limited to 'lang')
-rw-r--r--lang/gawk/Makefile9
-rw-r--r--lang/gawk/pkg-plist20
2 files changed, 16 insertions, 13 deletions
diff --git a/lang/gawk/Makefile b/lang/gawk/Makefile
index b27d8f85dc81..70849231e424 100644
--- a/lang/gawk/Makefile
+++ b/lang/gawk/Makefile
@@ -14,6 +14,8 @@ MASTER_SITE_SUBDIR= gawk
MAINTAINER= dd@FreeBSD.org
COMMENT= The GNU version of Awk
+INFO= gawk gawkinet
+
.include <bsd.port.pre.mk>
.if ${OSVERSION} >= 500039
@@ -26,6 +28,13 @@ CONFIGURE_ARGS= --with-libiconv-prefix=${LOCALBASE} \
MAN1= gawk.1 igawk.1
PLIST_SUB= VERSION=${PORTVERSION}
+
+.if !defined(WITHOUT_NLS)
USE_GETTEXT= yes
+PLIST_SUB+= NLS=""
+.else
+CONFIGURE_ARGS+=--disable-nls
+PLIST_SUB+= NLS="@comment "
+.endif
.include <bsd.port.post.mk>
diff --git a/lang/gawk/pkg-plist b/lang/gawk/pkg-plist
index a1001b85d5f0..e861abb344d4 100644
--- a/lang/gawk/pkg-plist
+++ b/lang/gawk/pkg-plist
@@ -3,12 +3,6 @@ bin/gawk-%%VERSION%%
bin/igawk
bin/pgawk
bin/pgawk-%%VERSION%%
-@unexec install-info --delete %D/info/gawk.info %D/info/dir
-info/gawk.info
-@exec install-info %D/info/gawk.info %D/info/dir
-@unexec install-info --delete %D/info/gawkinet.info %D/info/dir
-info/gawkinet.info
-@exec install-info %D/info/gawkinet.info %D/info/dir
libexec/awk/grcat
libexec/awk/pwcat
share/awk/assert.awk
@@ -28,12 +22,12 @@ share/awk/passwd.awk
share/awk/readable.awk
share/awk/rewind.awk
share/awk/round.awk
-share/locale/de/LC_MESSAGES/gawk.mo
-share/locale/es/LC_MESSAGES/gawk.mo
-share/locale/fr/LC_MESSAGES/gawk.mo
-share/locale/he/LC_MESSAGES/gawk.mo
-share/locale/it/LC_MESSAGES/gawk.mo
-share/locale/sv/LC_MESSAGES/gawk.mo
-share/locale/tr/LC_MESSAGES/gawk.mo
+%%NLS%%share/locale/de/LC_MESSAGES/gawk.mo
+%%NLS%%share/locale/es/LC_MESSAGES/gawk.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/gawk.mo
+%%NLS%%share/locale/he/LC_MESSAGES/gawk.mo
+%%NLS%%share/locale/it/LC_MESSAGES/gawk.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/gawk.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/gawk.mo
@dirrm share/awk
@dirrm libexec/awk