From nobody@FreeBSD.org  Tue Aug 23 15:56:21 2011
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 0C94D106564A
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Aug 2011 15:56:21 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from red.freebsd.org (red.freebsd.org [IPv6:2001:4f8:fff6::22])
	by mx1.freebsd.org (Postfix) with ESMTP id F17538FC14
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Aug 2011 15:56:20 +0000 (UTC)
Received: from red.freebsd.org (localhost [127.0.0.1])
	by red.freebsd.org (8.14.4/8.14.4) with ESMTP id p7NFuK2l025705
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 23 Aug 2011 15:56:20 GMT
	(envelope-from nobody@red.freebsd.org)
Received: (from nobody@localhost)
	by red.freebsd.org (8.14.4/8.14.4/Submit) id p7NFuKDm025704;
	Tue, 23 Aug 2011 15:56:20 GMT
	(envelope-from nobody)
Message-Id: <201108231556.p7NFuKDm025704@red.freebsd.org>
Date: Tue, 23 Aug 2011 15:56:20 GMT
From: Aldis Berjoza <aldis@bsdroot.lv>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] devel/yajl add yajl.pc
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         160031
>Category:       ports
>Synopsis:       [PATCH] devel/yajl add yajl.pc
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    scheidell
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 23 16:00:04 UTC 2011
>Closed-Date:    Sun Nov 27 22:48:53 UTC 2011
>Last-Modified:  Sun Nov 27 22:48:53 UTC 2011
>Originator:     Aldis Berjoza
>Release:        
>Organization:
>Environment:
>Description:
yajl lacks yajl.pc
I created one and updated Makefile, to install it.
>How-To-Repeat:

>Fix:


Patch attached with submission follows:

diff -ruN yajl.bak/Makefile yajl/Makefile
--- yajl.bak/Makefile	2011-08-23 18:25:45.916568929 +0300
+++ yajl/Makefile	2011-08-23 18:50:28.575082829 +0300
@@ -7,6 +7,7 @@
 
 PORTNAME=	yajl
 PORTVERSION=	1.0.11
+PORTREVISION=	1
 CATEGORIES=	devel
 MASTER_SITES=	LOCAL/bapt \
 		http://files.etoilebsd.net/yajl/
@@ -24,4 +25,13 @@
 USE_LDCONFIG=	yes
 USE_CMAKE=	yes
 
+PKGCONFIGDIR?=	${LOCALBASE}/libdata/pkgconfig
+
+post-patch:
+	@${SED} -e 's|%PREFIX%|${PREFIX}|g ; s|%VERSION%|${PORTVERSION}|g' \
+		${FILESDIR}/yajl.pc.in > ${WRKDIR}/yajl.pc
+
+post-install:
+	@${INSTALL_DATA} ${WRKDIR}/yajl.pc ${PKGCONFIGDIR}/
+
 .include <bsd.port.mk>
diff -ruN yajl.bak/files/yajl.pc.in yajl/files/yajl.pc.in
--- yajl.bak/files/yajl.pc.in	1970-01-01 03:00:00.000000000 +0300
+++ yajl/files/yajl.pc.in	2011-08-23 18:45:43.814170585 +0300
@@ -0,0 +1,9 @@
+prefix=%PREFIX%
+libdir=${prefix}/lib
+includedir=${prefix}/include/yajl
+
+Name: Yet Another JSON Library
+Description: A Portable JSON parsing and serialization library in ANSI C
+Version: %VERSION%
+Cflags: -I${includedir}
+Libs: -L${libdir} -lyajl


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->freebsd-ports-bugs 
Responsible-Changed-By: linimon 
Responsible-Changed-When: Tue Aug 23 20:25:37 UTC 2011 
Responsible-Changed-Why:  
ports PR. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160031 
Responsible-Changed-From-To: freebsd-ports-bugs->scheidell  
Responsible-Changed-By: scheidell 
Responsible-Changed-When: Sun Nov 27 22:41:19 UTC 2011 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=160031 
State-Changed-From-To: open->closed  
State-Changed-By: scheidell 
State-Changed-When: Sun Nov 27 22:47:27 UTC 2011 
State-Changed-Why:  
patch is againt old version. 
please update your portstree 


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