ports/64836: Ports: japanese/mutt-devel knob for --disable-nls
Katsura Matsumoto
katsura at cc.osaka-kyoiku.ac.jp
Sun Mar 28 10:10:14 UTC 2004
>Number: 64836
>Category: ports
>Synopsis: Ports: japanese/mutt-devel knob for --disable-nls
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: change-request
>Submitter-Id: current-users
>Arrival-Date: Sun Mar 28 02:10:13 PST 2004
>Closed-Date:
>Last-Modified:
>Originator: Katsura Matsumoto
>Release: FreeBSD 4.9-RELEASE-p4 i386
>Organization:
Osaka Kyoiku Univ.
>Environment:
System: FreeBSD gaia.cc.osaka-kyoiku.ac.jp 4.9-RELEASE-p4
>Description:
I'd like to add a knob WITHOUT_NLS to the ports/japanese/mutt-devel.
>How-To-Repeat:
N/A
>Fix:
diff -u -r -N mutt-devel.orig/Makefile mutt-devel/Makefile
--- mutt-devel.orig/Makefile Sun Mar 14 15:16:47 2004
+++ mutt-devel/Makefile Sun Mar 28 18:43:15 2004
@@ -26,7 +26,7 @@
LIB_DEPENDS= slang.2:${PORTSDIR}/japanese/libslang \
iconv.3:${PORTSDIR}/converters/libiconv
-.if !defined(WITH_GETTEXT)
+.if !defined(WITH_GETTEXT) && !defined(WITHOUT_NLS)
USE_GETTEXT= yes
.else
BUILD_DEPENDS= msgfmt:${PORTSDIR}/devel/gettext
@@ -60,6 +60,12 @@
--with-docdir=${DOCSDIR} \
--enable-pop --enable-imap \
--enable-default-japanese
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS+= --disable-nls
+PLIST_SUB= NLS="@comment "
+.else
+PLIST_SUB+= NLS=""
+.endif
.if defined(WITH_GETTEXT)
CONFIGURE_ARGS+= --with-included-gettext
.endif
diff -u -r -N mutt-devel.orig/pkg-plist mutt-devel/pkg-plist
--- mutt-devel.orig/pkg-plist Mon Mar 15 20:17:29 2004
+++ mutt-devel/pkg-plist Sun Mar 28 18:44:44 2004
@@ -86,32 +86,32 @@
%%PORTDOCS%%share/doc/mutt/samples/colors.linux
%%PORTDOCS%%share/doc/mutt/smime-notes.txt
%%PORTDOCS%%share/doc/mutt/smime-notes.ja.txt
-share/locale/ca/LC_MESSAGES/mutt.mo
-share/locale/cs/LC_MESSAGES/mutt.mo
-share/locale/da/LC_MESSAGES/mutt.mo
-share/locale/de/LC_MESSAGES/mutt.mo
-share/locale/el/LC_MESSAGES/mutt.mo
-share/locale/eo/LC_MESSAGES/mutt.mo
-share/locale/es/LC_MESSAGES/mutt.mo
-share/locale/et/LC_MESSAGES/mutt.mo
-share/locale/fr/LC_MESSAGES/mutt.mo
-share/locale/gl/LC_MESSAGES/mutt.mo
-share/locale/hu/LC_MESSAGES/mutt.mo
-share/locale/id/LC_MESSAGES/mutt.mo
-share/locale/it/LC_MESSAGES/mutt.mo
-share/locale/ja/LC_MESSAGES/mutt.mo
-share/locale/ko/LC_MESSAGES/mutt.mo
-share/locale/lt/LC_MESSAGES/mutt.mo
-share/locale/nl/LC_MESSAGES/mutt.mo
-share/locale/pl/LC_MESSAGES/mutt.mo
-share/locale/pt_BR/LC_MESSAGES/mutt.mo
-share/locale/ru/LC_MESSAGES/mutt.mo
-share/locale/sk/LC_MESSAGES/mutt.mo
-share/locale/sv/LC_MESSAGES/mutt.mo
-share/locale/tr/LC_MESSAGES/mutt.mo
-share/locale/uk/LC_MESSAGES/mutt.mo
-share/locale/zh_CN/LC_MESSAGES/mutt.mo
-share/locale/zh_TW/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/ca/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/cs/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/da/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/de/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/el/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/eo/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/es/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/et/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/gl/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/hu/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/id/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/it/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/ko/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/lt/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/pl/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/sk/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/uk/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/zh_CN/LC_MESSAGES/mutt.mo
+%%NLS%%share/locale/zh_TW/LC_MESSAGES/mutt.mo
%%PORTDOCS%%@dirrm share/doc/mutt/samples/iconv
%%PORTDOCS%%@dirrm share/doc/mutt/samples
%%PORTDOCS%%@dirrm share/doc/mutt/html
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list