From nobody@FreeBSD.org  Wed Jun 19 07:16:25 2013
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id EDD75507
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Jun 2013 07:16:25 +0000 (UTC)
	(envelope-from nobody@FreeBSD.org)
Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121])
	by mx1.freebsd.org (Postfix) with ESMTP id E101E1D86
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Jun 2013 07:16:25 +0000 (UTC)
Received: from oldred.freebsd.org ([127.0.1.6])
	by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r5J7GPdN058681
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 19 Jun 2013 07:16:25 GMT
	(envelope-from nobody@oldred.freebsd.org)
Received: (from nobody@localhost)
	by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r5J7GPV9058680;
	Wed, 19 Jun 2013 07:16:25 GMT
	(envelope-from nobody)
Message-Id: <201306190716.r5J7GPV9058680@oldred.freebsd.org>
Date: Wed, 19 Jun 2013 07:16:25 GMT
From: Francois Tigeot <ftigeot@wolfpond.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: devel/mdds does not install any .pc file
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>Number:         179704
>Category:       ports
>Synopsis:       devel/mdds does not install any .pc file
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    jkim
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 19 07:20:00 UTC 2013
>Closed-Date:    Tue Jun 25 20:04:39 UTC 2013
>Last-Modified:  Tue Jun 25 20:10:05 UTC 2013
>Originator:     Francois Tigeot
>Release:        DragonFly 3.5
>Organization:
Dports
>Environment:
DragonFly sekishi.zefyris.com 3.5-DEVELOPMENT DragonFly v3.5.0.324.gba8192-DEVELOPMENT #20: Sun Jun  9 09:07:40 CEST 2013     ftigeot@sekishi.zefyris.com:/usr/obj/usr/src/sys/X86_64_GENERIC  x86_64
>Description:
The future LibreOffice 4.1 expects a .pc file to be present to properly
detect mdds.

The mdds library comes with a .pc template file; unfortunately the port doesn't attempt to install it, causing LibreOffice-4.1 builds to fail at configure time.
>How-To-Repeat:
Try to build the LibreOffice 4.1 release candidate
>Fix:
Apply the attached patches

Patch attached with submission follows:

diff --git a/devel/mdds/Makefile b/devel/mdds/Makefile
index 3b5eec6..ff082eb 100644
--- a/devel/mdds/Makefile
+++ b/devel/mdds/Makefile
@@ -15,6 +15,7 @@ LICENSE=	MIT
 PROJECTHOST=	multidimalgorithm
 
 USE_BZIP2=	yes
+GNU_CONFIGURE=	yes
 NO_BUILD=	yes
 
 do-install:
@@ -25,5 +26,6 @@ do-install:
 	@${INSTALL_DATA} ${WRKSRC}/include/mdds/*.inl ${PREFIX}/include/mdds
 	@${INSTALL_DATA} ${WRKSRC}/include/mdds/compat/*.hpp ${PREFIX}/include/mdds/compat
 	@${INSTALL_DATA} ${WRKSRC}/include/mdds/hash_container/*.hpp ${PREFIX}/include/mdds/hash_container
+	@${INSTALL_DATA} ${WRKSRC}/misc/mdds.pc ${PREFIX}/libdata/pkgconfig
 
 .include <bsd.port.mk>
diff --git a/devel/mdds/pkg-plist b/devel/mdds/pkg-plist
index 15b3cd9..2f8538b 100644
--- a/devel/mdds/pkg-plist
+++ b/devel/mdds/pkg-plist
@@ -28,6 +28,7 @@ include/mdds/rectangle_set_def.inl
 include/mdds/segment_tree.hpp
 include/mdds/compat/unique_ptr.hpp
 include/mdds/hash_container/map.hpp
+libdata/pkgconfig/mdds.pc
 @dirrm include/mdds/hash_container
 @dirrm include/mdds/compat
 @dirrm include/mdds


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->office 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Jun 19 07:20:07 UTC 2013 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179704 
Responsible-Changed-From-To: office->jkim 
Responsible-Changed-By: jkim 
Responsible-Changed-When: Tue Jun 25 19:09:58 UTC 2013 
Responsible-Changed-Why:  
I'll take it. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=179704 
State-Changed-From-To: open->closed 
State-Changed-By: jkim 
State-Changed-When: Tue Jun 25 20:03:41 UTC 2013 
State-Changed-Why:  
I just committed a slightly different version.  Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/179704: commit references a PR
Date: Tue, 25 Jun 2013 20:03:35 +0000 (UTC)

 Author: jkim
 Date: Tue Jun 25 20:03:21 2013
 New Revision: 321762
 URL: http://svnweb.freebsd.org/changeset/ports/321762
 
 Log:
   Install mdds.pc.  It is required by LibreOffice 4.1.
   
   PR:		port/179704
 
 Modified:
   head/devel/mdds/Makefile
   head/devel/mdds/pkg-plist
 
 Modified: head/devel/mdds/Makefile
 ==============================================================================
 --- head/devel/mdds/Makefile	Tue Jun 25 19:50:26 2013	(r321761)
 +++ head/devel/mdds/Makefile	Tue Jun 25 20:03:21 2013	(r321762)
 @@ -3,6 +3,7 @@
  
  PORTNAME=	mdds
  PORTVERSION=	0.8.1
 +PORTREVISION=	1
  CATEGORIES=	devel
  MASTER_SITES=	GOOGLE_CODE
  DISTNAME=	${PORTNAME}_${PORTVERSION}
 @@ -17,6 +18,12 @@ PROJECTHOST=	multidimalgorithm
  USE_BZIP2=	yes
  NO_BUILD=	yes
  
 +do-configure:
 +	@${SED} -e 's|@prefix@|${PREFIX}|' \
 +	    -e 's|@includedir@|$${prefix}/include|' \
 +	    -e 's|@VERSION@|${PORTVERSION}|' \
 +	    ${WRKSRC}/misc/mdds.pc.in > ${WRKSRC}/misc/mdds.pc
 +
  do-install:
  	@${MKDIR} ${PREFIX}/include/mdds
  	@${MKDIR} ${PREFIX}/include/mdds/compat
 @@ -25,5 +32,6 @@ do-install:
  	@${INSTALL_DATA} ${WRKSRC}/include/mdds/*.inl ${PREFIX}/include/mdds
  	@${INSTALL_DATA} ${WRKSRC}/include/mdds/compat/*.hpp ${PREFIX}/include/mdds/compat
  	@${INSTALL_DATA} ${WRKSRC}/include/mdds/hash_container/*.hpp ${PREFIX}/include/mdds/hash_container
 +	@${INSTALL_DATA} ${WRKSRC}/misc/mdds.pc ${PREFIX}/libdata/pkgconfig
  
  .include <bsd.port.mk>
 
 Modified: head/devel/mdds/pkg-plist
 ==============================================================================
 --- head/devel/mdds/pkg-plist	Tue Jun 25 19:50:26 2013	(r321761)
 +++ head/devel/mdds/pkg-plist	Tue Jun 25 20:03:21 2013	(r321762)
 @@ -28,6 +28,7 @@ include/mdds/rectangle_set_def.inl
  include/mdds/segment_tree.hpp
  include/mdds/compat/unique_ptr.hpp
  include/mdds/hash_container/map.hpp
 +libdata/pkgconfig/mdds.pc
  @dirrm include/mdds/hash_container
  @dirrm include/mdds/compat
  @dirrm include/mdds
 _______________________________________________
 svn-ports-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/svn-ports-all
 To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
 
>Unformatted:
