From matthias.andree@web.de  Sat Mar  1 17:08:24 2003
Return-Path: <matthias.andree@web.de>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP
	id 4880237B401; Sat,  1 Mar 2003 17:08:24 -0800 (PST)
Received: from mail.dt.e-technik.uni-dortmund.de (krusty.dt.E-Technik.Uni-Dortmund.DE [129.217.163.1])
	by mx1.FreeBSD.org (Postfix) with ESMTP
	id 0B30043F75; Sat,  1 Mar 2003 17:08:23 -0800 (PST)
	(envelope-from matthias.andree@web.de)
Received: from m2a2.dyndns.org (krusty.dt.e-technik.uni-dortmund.de [129.217.163.1])
	by mail.dt.e-technik.uni-dortmund.de (Postfix) with ESMTP
	id F2FDCA381D; Sun,  2 Mar 2003 02:08:21 +0100 (CET)
Received: from libertas.emma.line.org (libertas.emma.line.org [192.168.0.2])
	by merlin.emma.line.org (Postfix) with ESMTP
	id A8479494C9; Sun,  2 Mar 2003 02:08:19 +0100 (CET)
Received: from libertas.emma.line.org (localhost [127.0.0.1])
	by libertas.emma.line.org (8.12.7/8.12.7) with ESMTP id h2218ITi023756;
	Sun, 2 Mar 2003 02:08:18 +0100 (CET)
	(envelope-from emma@libertas.emma.line.org)
Received: (from emma@localhost)
	by libertas.emma.line.org (8.12.7/8.12.7/Submit) id h2218HVr023755;
	Sun, 2 Mar 2003 02:08:17 +0100 (CET)
	(envelope-from emma)
Message-Id: <200303020108.h2218HVr023755@libertas.emma.line.org>
Date: Sun, 2 Mar 2003 02:08:17 +0100 (CET)
From: Matthias Andree <matthias.andree@web.de>
Reply-To: Matthias Andree <matthias.andree@web.de>
To: FreeBSD-gnats-submit@freebsd.org
Cc: ports@freebsd.org
Subject: add WITHOUT_NLS support to devel/bison 
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         48824
>Category:       ports
>Synopsis:       add WITHOUT_NLS support to devel/bison
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 01 17:10:01 PST 2003
>Closed-Date:    Mon Jul 28 23:35:48 PDT 2003
>Last-Modified:  Mon Jul 28 23:35:48 PDT 2003
>Originator:     Matthias Andree
>Release:        FreeBSD 4.8-PRERELEASE i386
>Organization:
>Environment:
System: FreeBSD libertas.emma.line.org 4.8-PRERELEASE FreeBSD 4.8-PRERELEASE #15: Tue Feb 25 00:45:38 CET 2003 toor@libertas.emma.line.org:/usr/src/sys/compile/LIBERTAS i386


	
>Description:
The patch below allows bison to be compiled without gettext support, for use
when space is tight or the gettext dependency is not desired.
To compile without gettext support after applying the patch:
make clean
make -DWITHOUT_NLS install
	
>How-To-Repeat:
	
>Fix:
diff -Nur /usr/ports/devel/bison/Makefile /root/bison/Makefile
--- /usr/ports/devel/bison/Makefile	Fri Feb 21 02:43:42 2003
+++ /root/bison/Makefile	Sun Mar  2 02:04:09 2003
@@ -16,12 +16,20 @@
 COMMENT=	A parser generator from FSF, (mostly) compatible with Yacc
 
 BUILD_DEPENDS=	gm4:${PORTSDIR}/devel/m4
+.if !defined(WITHOUT_NLS)
 LIB_DEPENDS=	intl.4:${PORTSDIR}/devel/gettext
+PLIST_SUB=	NLS=""
+.else
+PLIST_SUB=	NLS="@comment "
+.endif
 RUN_DEPENDS=	gm4:${PORTSDIR}/devel/m4
 
 USE_BZIP2=	yes
 GNU_CONFIGURE=	yes
 CONFIGURE_TARGET=	--build=${MACHINE_ARCH}-portbld-freebsd${OSREL}
+.if defined(WITHOUT_NLS)
+CONFIGURE_ARGS=	--disable-nls
+.endif
 CONFIGURE_ENV=	CPPFLAGS="-I${LOCALBASE}/include" \
 		LDFLAGS="-L${LOCALBASE}/lib" \
 		MAKEINFO="makeinfo --no-split"
diff -Nur /usr/ports/devel/bison/pkg-plist /root/bison/pkg-plist
--- /usr/ports/devel/bison/pkg-plist	Thu Oct 24 17:30:07 2002
+++ /root/bison/pkg-plist	Sun Mar  2 02:03:13 2003
@@ -9,18 +9,18 @@
 share/bison/m4sugar/m4sugar.m4
 share/bison/m4sugar/version.m4
 share/bison/yacc.c
-share/locale/de/LC_MESSAGES/bison.mo
-share/locale/es/LC_MESSAGES/bison.mo
-share/locale/et/LC_MESSAGES/bison.mo
-share/locale/fr/LC_MESSAGES/bison.mo
-share/locale/hr/LC_MESSAGES/bison.mo
-share/locale/id/LC_MESSAGES/bison.mo
-share/locale/it/LC_MESSAGES/bison.mo
-share/locale/ja/LC_MESSAGES/bison.mo
-share/locale/nl/LC_MESSAGES/bison.mo
-share/locale/pt_BR/LC_MESSAGES/bison.mo
-share/locale/ru/LC_MESSAGES/bison.mo
-share/locale/sv/LC_MESSAGES/bison.mo
-share/locale/tr/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/de/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/es/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/et/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/fr/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/hr/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/id/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/it/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/ja/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/nl/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/pt_BR/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/ru/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/sv/LC_MESSAGES/bison.mo
+%%NLS%%share/locale/tr/LC_MESSAGES/bison.mo
 @dirrm share/bison/m4sugar
 @dirrm share/bison
	


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: daichi 
State-Changed-When: Mon Jul 28 23:35:37 PDT 2003 
State-Changed-Why:  
Committed. Thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=48824 
>Unformatted:
