Skip site navigation (1)Skip section navigation (2)
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:   ports/177146: [PATCH] graphics/mhgui: Convert to OptionsNg
Message-ID:  <20130320164837.C527E25A@hub.freebsd.org>
Resent-Message-ID: <201303201650.r2KGo2XD039232@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         177146
>Category:       ports
>Synopsis:       [PATCH] graphics/mhgui: Convert to OptionsNg
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Wed Mar 20 16:50:02 UTC 2013
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20130320164837.C527E25A>