From nobody@FreeBSD.org  Sat Mar 15 19:29:46 2014
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1])
	(using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by hub.freebsd.org (Postfix) with ESMTPS id 16E5C7B1
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 15 Mar 2014 19:29:46 +0000 (UTC)
Received: from cgiserv.freebsd.org (cgiserv.freebsd.org [IPv6:2001:1900:2254:206a::50:4])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by mx1.freebsd.org (Postfix) with ESMTPS id DE9A6C45
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 15 Mar 2014 19:29:45 +0000 (UTC)
Received: from cgiserv.freebsd.org ([127.0.1.6])
	by cgiserv.freebsd.org (8.14.8/8.14.8) with ESMTP id s2FJTjj9024922
	for <freebsd-gnats-submit@FreeBSD.org>; Sat, 15 Mar 2014 19:29:45 GMT
	(envelope-from nobody@cgiserv.freebsd.org)
Received: (from nobody@localhost)
	by cgiserv.freebsd.org (8.14.8/8.14.8/Submit) id s2FJTjNL024919;
	Sat, 15 Mar 2014 19:29:45 GMT
	(envelope-from nobody)
Message-Id: <201403151929.s2FJTjNL024919@cgiserv.freebsd.org>
Date: Sat, 15 Mar 2014 19:29:45 GMT
From: Kevin Zheng <kevinz5000@gmail.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [patch] Fix build for devel/tevent without NLS
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         187615
>Category:       ports
>Synopsis:       [patch] Fix build for devel/tevent without NLS
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    timur
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sat Mar 15 19:30:00 UTC 2014
>Closed-Date:    Fri Apr 18 11:29:31 UTC 2014
>Last-Modified:  Fri Apr 18 11:29:31 UTC 2014
>Originator:     Kevin Zheng
>Release:        10.0-RELEASE
>Organization:
>Environment:
FreeBSD epsilon.local 10.0-RELEASE FreeBSD 10.0-RELEASE #0 r260789: Thu Jan 16 22:34:59 UTC 2014     root@snap.freebsd.org:/usr/obj/usr/src/sys/GENERIC  amd64
>Description:
The build for devel/tevent fails with the following error:

/wrkdirs/usr/ports/devel/tevent/work/tevent-0.9.21/lib/replace/wscript:403: error: library gettext not found, try specifying the path to it with --with-gettext=</path/to/gettext> or --without-gettext to build without
===>  Script "configure" failed unexpectedly.

The attached patch fixes this. In addition:

- Remove empty PORTREVISION and PORTEPOCH
- Remove empty CONFLICTS
- Add missing OPTIONS
- Fix WWW in pkg-descr
>How-To-Repeat:

>Fix:
Apply the attached patch.

Patch attached with submission follows:

diff --git a/devel/tevent/Makefile b/devel/tevent/Makefile
index 5f7167e..54d0bb2 100644
--- a/devel/tevent/Makefile
+++ b/devel/tevent/Makefile
@@ -2,8 +2,6 @@
 
 PORTNAME=		tevent
 PORTVERSION=		0.9.21
-PORTREVISION=		0
-PORTEPOCH=		0
 CATEGORIES=		devel
 MASTER_SITES=		${MASTER_SITE_SAMBA}
 MASTER_SITE_SUBDIR=	${PORTNAME}
@@ -13,14 +11,17 @@ COMMENT=		Talloc based event loop library
 
 LICENSE=		LGPL3
 
-CONFLICTS=
-
 USES=			compiler pkgconfig
 USE_PYTHON_BUILD=	2
 USE_LDCONFIG=		yes
 WAF_TOOL=		buildtools/bin/waf
 CONFIGURE_LOG=		bin/config.log
 
+OPTIONS_DEFINE=		MANPAGES NLS
+
+NLS_USES=		gettext
+NLS_CONFIGURE_OFF=	--without-gettext
+
 PKGCONFIGDIR?=		${PREFIX}/libdata/pkgconfig
 PLIST_SUB+=		PKGCONFIGDIR=${PKGCONFIGDIR:S;${PREFIX}/;;}
 
diff --git a/devel/tevent/pkg-descr b/devel/tevent/pkg-descr
index 192ef5d..7e733ff 100644
--- a/devel/tevent/pkg-descr
+++ b/devel/tevent/pkg-descr
@@ -5,4 +5,4 @@ descriptors becoming readable or writable and signals.
 Talloc is used for memory management, both internally and for private
 data provided by users of the library.
 
-WWW:	http://www.samba.org/
+WWW: http://www.samba.org/


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->timur 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sat Mar 15 19:30:04 UTC 2014 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=187615 

From: Kevin Zheng <kevinz5000@gmail.com>
To: bug-followup@FreeBSD.org, timur@FreeBSD.org
Cc:  
Subject: Re: ports/187615: [patch] Fix build for devel/tevent without NLS
Date: Tue, 18 Mar 2014 09:50:22 -0500

 This issue was fixed and committed by the maintainer (timur@). Please
 check PRs more often because this issue was pointed out since the 15th.
 
 Please take a look at the other relevant parts of the patch.
 
 Thanks,
 Kevin Zheng
State-Changed-From-To: open->closed 
State-Changed-By: timur 
State-Changed-When: Fri Apr 18 11:29:30 UTC 2014 
State-Changed-Why:  
Committed. Thanks! 

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