Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 28 Mar 2004 19:03:25 +0900 (JST)
From:      Katsura Matsumoto <katsura@cc.osaka-kyoiku.ac.jp>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        katsura@cc.osaka-kyoiku.ac.jp
Subject:   ports/64836: Ports: japanese/mutt-devel knob for --disable-nls
Message-ID:  <200403281003.i2SA3PDk061886@gaia.cc.osaka-kyoiku.ac.jp>
Resent-Message-ID: <200403281010.i2SAAD2t091306@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>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:



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