Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Mar 2013 03:54:45 +0100
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@freebsd.org
Cc:        g.veniamin@googlemail.com
Subject:   ports/177295: [PATCH] graphics/impressive: Convert to OptionsNG
Message-ID:  <20130323025450.D8DA4CB5@hub.freebsd.org>
Resent-Message-ID: <201303230300.r2N300EY028056@freefall.freebsd.org>

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

>Number:         177295
>Category:       ports
>Synopsis:       [PATCH] graphics/impressive: 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:   Sat Mar 23 03:00:00 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:

- Convert to OptionsNG
- Makefile tweaks

Port maintainer (g.veniamin@googlemail.com) is cc'd.

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

--- impressive-0.10.3_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/graphics/impressive/Makefile ./Makefile
--- /usr/ports/graphics/impressive/Makefile	2013-01-14 17:57:01.000000000 +0100
+++ ./Makefile	2013-03-23 03:50:10.000000000 +0100
@@ -1,9 +1,5 @@
-# New ports collection makefile for:	impressive
-# Date created:		2010-02-10
-# Whom:			Gvozdikov Veniamin <g.veniamin@googlemail.com>
-#
+# Created by: Gvozdikov Veniamin <g.veniamin@googlemail.com>
 # $FreeBSD: head/graphics/impressive/Makefile 300896 2012-07-14 13:54:48Z beat $
-#
 
 PORTNAME=	impressive
 PORTVERSION=	0.10.3
@@ -15,15 +11,15 @@
 MAINTAINER=	g.veniamin@googlemail.com
 COMMENT=	The stylish way of giving presentations
 
-RUN_DEPENDS=	${PYTHON_SITELIBDIR}/OpenGL/wrapper.py:${PORTSDIR}/graphics/py-opengl \
-		${PYTHON_SITELIBDIR}/pygame/surfarray.py:${PORTSDIR}/devel/py-game \
-		${PYTHON_SITELIBDIR}/PIL/ImageGL.py:${PORTSDIR}/graphics/py-imaging \
+LICENSE=	GPLv2
+
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}opengl>=0:${PORTSDIR}/graphics/py-opengl \
+		${PYTHON_PKGNAMEPREFIX}imaging>0:${PORTSDIR}/graphics/py-imaging \
 		xpdf:${PORTSDIR}/graphics/xpdf \
 		pdftk:${PORTSDIR}/print/pdftk \
 		xdg-open:${PORTSDIR}/devel/xdg-utils \
 		mplayer:${PORTSDIR}/multimedia/mplayer
-
-LICENSE=	GPLv2
+RUN_DEPENDS=	${PYGAME}
 
 USE_PYTHON=	yes
 USE_GHOSTSCRIPT_RUN=	yes
@@ -32,16 +28,16 @@
 
 MAN1=		${PORTNAME}.1
 
-PORTDOCS=	${PORTNAME}.html demo.pdf license.txt
+PORTDOCS=	${PORTNAME}.html demo.pdf
+
+.include <bsd.port.options.mk>
 
 do-install:
 	@${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME}.py ${PREFIX}/bin/${PORTNAME}
-	@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1/
-.if !defined(NOPORTDOCS)
+	@${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.1 ${MAN1PREFIX}/man/man1
+.if ${PORT_OPTIONS:MDOCS}
 	@${MKDIR} ${DOCSDIR}
-.for f in ${PORTDOCS}
-	${INSTALL_DATA} ${WRKSRC}/${f} ${DOCSDIR}/
-.endfor
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
--- impressive-0.10.3_1.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?20130323025450.D8DA4CB5>