From nemysis@gmx.ch  Wed Mar 20 16:48:37 2013
Return-Path: <nemysis@gmx.ch>
Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115])
	by hub.freebsd.org (Postfix) with ESMTP id C527E25A
	for <freebsd-gnats-submit@freebsd.org>; Wed, 20 Mar 2013 16:48:37 +0000 (UTC)
	(envelope-from nemysis@gmx.ch)
Received: from mout.gmx.net (mout.gmx.net [212.227.15.19])
	by mx1.freebsd.org (Postfix) with ESMTP id 41CA53CD
	for <freebsd-gnats-submit@freebsd.org>; Wed, 20 Mar 2013 16:48:37 +0000 (UTC)
Received: from mailout-de.gmx.net ([10.1.76.35]) by mrigmx.server.lan
 (mrigmx001) with ESMTP (Nemesis) id 0MgaEb-1U6ULM3dO3-00NyGT for
 <FreeBSD-gnats-submit@freebsd.org>; Wed, 20 Mar 2013 17:48:35 +0100
Received: (qmail invoked by alias); 20 Mar 2013 16:48:34 -0000
Received: from 38-21.104-92.cust.bluewin.ch (EHLO something.email.com) [92.104.21.38]
  by mail.gmx.net (mp035) with SMTP; 20 Mar 2013 17:48:34 +0100
Received: by something.email.com (sSMTP sendmail emulation); Wed, 20 Mar 2013 17:48:34 +0100
Message-Id: <20130320164837.C527E25A@hub.freebsd.org>
Date: Wed, 20 Mar 2013 17:48:34 +0100
From: nemysis <nemysis@gmx.ch>
To: FreeBSD-gnats-submit@freebsd.org
Cc: amdmi3@FreeBSD.org
Subject: [PATCH] graphics/mhgui: Convert to OptionsNg
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         177146
>Category:       ports
>Synopsis:       [PATCH] graphics/mhgui: Convert to OptionsNg
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    amdmi3
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 20 16:50:02 UTC 2013
>Closed-Date:    Thu May 23 03:30:38 UTC 2013
>Last-Modified:  Thu May 23 03:40:00 UTC 2013
>Originator:     nemysis
>Release:        FreeBSD 9.1-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.1-RELEASE FreeBSD 9.1-RELEASE #0 r243825: Tue Dec  4 09:23:10
>Description:

No more leftover /usr/local/share/doc/mhgui
with with NOPORTDOCS=yes in /etc/make.conf

Port maintainer (amdmi3@FreeBSD.org) is cc'd.

Generated with FreeBSD Port Tools 0.99_6 (mode: change, diff: ports)
>How-To-Repeat:
>Fix:

--- mhgui-0.2_6.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/mhgui/Makefile ./Makefile
--- /usr/ports/graphics/mhgui/Makefile	2013-01-14 17:57:12.000000000 +0100
+++ ./Makefile	2013-03-20 15:40:50.000000000 +0100
@@ -1,25 +1,23 @@
-# New ports collection makefile for:	mhgui
-# Date created:		31 Mar 2007
-# Whom:			Dmitry Marakasov <amdmi3@amdmi3.ru>
-#
+# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
 # $FreeBSD: head/graphics/mhgui/Makefile 302037 2012-08-04 22:52:02Z kwm $
-#
 
 PORTNAME=	mhgui
 PORTVERSION=	0.2
-PORTREVISION=	5
+PORTREVISION=	6
 CATEGORIES=	graphics
 MASTER_SITES=	SF/makehuman/MakeHuman%20Source/MakeHuman_091
 
 MAINTAINER=	amdmi3@FreeBSD.org
 COMMENT=	GUI widget library for MakeHuman
 
+LICENSE=	GPLv2
+
 LIB_DEPENDS=	animorph.0:${PORTSDIR}/graphics/animorph \
 		png15:${PORTSDIR}/graphics/png
 
 GNU_CONFIGURE=	yes
 USE_GMAKE=	yes
-USE_GNOME=	pkgconfig
+USE_PKGCONFIG=	build
 USE_LDCONFIG=	yes
 USE_XORG=	xi xmu ice sm
 USE_GL=		glut
@@ -27,15 +25,28 @@
 CPPFLAGS+=	-I${LOCALBASE}/include
 LDFLAGS+=	-L${LOCALBASE}/lib
 
-.if !defined(NOPORTDOCS)
-PORTDOCS=	*
-.endif
+PORTDOCS=	AUTHORS TODO
+
+.include <bsd.port.options.mk>
 
 post-patch:
 	@${REINPLACE_CMD} -e '/^libmhguidocdir =/ s|doc/|share/doc/|' ${WRKSRC}/Makefile.in
 	@${REINPLACE_CMD} -e '/^pkgconfigdir =/ s|\$$(libdir)|\$$(exec_prefix)/libdata|' ${WRKSRC}/Makefile.in
-.if defined(NOPORTDOCS)
-	@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-libmhguidocDATA||' ${WRKSRC}/Makefile.in
+
+.if ! ${PORT_OPTIONS:MDOCS}
+	@${REINPLACE_CMD} -i '' '/install-libmhguidocDATA: $$(libmhguidoc_DATA)/,/done/s/^/#/' \
+		${WRKSRC}/Makefile.in
+.endif
+
+.if ${PORT_OPTIONS:MDOCS}
+	@${REINPLACE_CMD} -i '' '/libmhguidoc_DATA =/,/TODO/s/^/#/' \
+		${WRKSRC}/Makefile.in
+.endif
+
+post-install:
+.if ${PORT_OPTIONS:MDOCS}
+	@${MKDIR} ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
--- mhgui-0.2_6.patch ends here ---

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

http://www.freebsd.org/cgi/query-pr.cgi?pr=177146 
State-Changed-From-To: open->closed 
State-Changed-By: amdmi3 
State-Changed-When: Thu May 23 03:30:37 UTC 2013 
State-Changed-Why:  
Committed, with minor changes. Thanks! 

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

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/177146: commit references a PR
Date: Thu, 23 May 2013 03:30:44 +0000 (UTC)

 Author: amdmi3
 Date: Thu May 23 03:30:30 2013
 New Revision: 318835
 URL: http://svnweb.freebsd.org/changeset/ports/318835
 
 Log:
   - Trim Makefile header
   - OptionsNG
   - Add LICENSE
   - Switch to USE_PKGCONFIG
   
   PR:		177146
   Submitted by:	nemysis <nemysis@gmx.ch>
 
 Modified:
   head/graphics/animorph/Makefile
   head/graphics/mhgui/Makefile
 
 Modified: head/graphics/animorph/Makefile
 ==============================================================================
 --- head/graphics/animorph/Makefile	Thu May 23 03:28:55 2013	(r318834)
 +++ head/graphics/animorph/Makefile	Thu May 23 03:30:30 2013	(r318835)
 @@ -1,9 +1,5 @@
 -# New ports collection makefile for:	animorph
 -# Date created:		31 Mar 2007
 -# Whom:			Dmitry Marakasov <amdmi3@amdmi3.ru>
 -#
 +# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
  # $FreeBSD$
 -#
  
  PORTNAME=	animorph
  PORTVERSION=	0.3
 @@ -13,22 +9,24 @@ MASTER_SITES=	SF/makehuman/MakeHuman%20S
  MAINTAINER=	amdmi3@FreeBSD.org
  COMMENT=	Morphing engine for MakeHuman
  
 +LICENSE=	LGPL21
 +
  GNU_CONFIGURE=	yes
  USE_GMAKE=	yes
 -USE_GNOME=	pkgconfig
 +USE_PKGCONFIG=	build
  USE_LDCONFIG=	yes
  
  CPPFLAGS+=	-I${LOCALBASE}/include
  LDFLAGS+=	-L${LOCALBASE}/lib
  
 -.if !defined(NOPORTDOCS)
  PORTDOCS=	*
 -.endif
 +
 +.include <bsd.port.options.mk>
  
  post-patch:
  	@${REINPLACE_CMD} -e '/^libanimorphdocdir =/ s|doc/|share/doc/|' ${WRKSRC}/Makefile.in
  	@${REINPLACE_CMD} -e '/^pkgconfigdir =/ s|\$$(libdir)|\$$(exec_prefix)/libdata|' ${WRKSRC}/Makefile.in
 -.if defined(NOPORTDOCS)
 +.if ! ${PORT_OPTIONS:MDOCS}
  	@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-libanimorphdocDATA||' ${WRKSRC}/Makefile.in
  .endif
  
 
 Modified: head/graphics/mhgui/Makefile
 ==============================================================================
 --- head/graphics/mhgui/Makefile	Thu May 23 03:28:55 2013	(r318834)
 +++ head/graphics/mhgui/Makefile	Thu May 23 03:30:30 2013	(r318835)
 @@ -1,9 +1,5 @@
 -# New ports collection makefile for:	mhgui
 -# Date created:		31 Mar 2007
 -# Whom:			Dmitry Marakasov <amdmi3@amdmi3.ru>
 -#
 +# Created by: Dmitry Marakasov <amdmi3@amdmi3.ru>
  # $FreeBSD$
 -#
  
  PORTNAME=	mhgui
  PORTVERSION=	0.2
 @@ -14,12 +10,14 @@ MASTER_SITES=	SF/makehuman/MakeHuman%20S
  MAINTAINER=	amdmi3@FreeBSD.org
  COMMENT=	GUI widget library for MakeHuman
  
 +LICENSE=	GPLv2
 +
  LIB_DEPENDS=	animorph.0:${PORTSDIR}/graphics/animorph \
  		png15:${PORTSDIR}/graphics/png
  
  GNU_CONFIGURE=	yes
  USE_GMAKE=	yes
 -USE_GNOME=	pkgconfig
 +USE_PKGCONFIG=	build
  USE_LDCONFIG=	yes
  USE_XORG=	xi xmu ice sm
  USE_GL=		glut
 @@ -27,14 +25,14 @@ USE_GL=		glut
  CPPFLAGS+=	-I${LOCALBASE}/include
  LDFLAGS+=	-L${LOCALBASE}/lib
  
 -.if !defined(NOPORTDOCS)
  PORTDOCS=	*
 -.endif
 +
 +.include <bsd.port.options.mk>
  
  post-patch:
  	@${REINPLACE_CMD} -e '/^libmhguidocdir =/ s|doc/|share/doc/|' ${WRKSRC}/Makefile.in
  	@${REINPLACE_CMD} -e '/^pkgconfigdir =/ s|\$$(libdir)|\$$(exec_prefix)/libdata|' ${WRKSRC}/Makefile.in
 -.if defined(NOPORTDOCS)
 +.if ! ${PORT_OPTIONS:MDOCS}
  	@${REINPLACE_CMD} -e '/^install-data-am:/ s|install-libmhguidocDATA||' ${WRKSRC}/Makefile.in
  .endif
  
 _______________________________________________
 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:
