Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 04 Nov 2012 03:29:56 +0100
From:      nemysis <nemysis@gmx.ch>
To:        FreeBSD-gnats-submit@FreeBSD.org
Cc:        jgh@FreeBSD.org
Subject:   ports/173345: [MAINTAINER] games/nelly: Changed Makefile, nelly.in, Desktop entries, Removed all Notes
Message-ID:  <20121104023000.2234BE01@hub.freebsd.org>
Resent-Message-ID: <201211040240.qA42e05f044577@freefall.freebsd.org>

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

>Number:         173345
>Category:       ports
>Synopsis:       [MAINTAINER] games/nelly: Changed Makefile, nelly.in, Desktop entries, Removed all Notes
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 04 02:40:00 UTC 2012
>Closed-Date:
>Last-Modified:
>Originator:     nemysis
>Release:        FreeBSD 9.0-RELEASE amd64
>Organization:
>Environment:
System: FreeBSD FreeBSD_Ports 9.0-RELEASE FreeBSD 9.0-RELEASE #0: Tue Jan  3 07:46:30 UTC
>Description:

Makefile changed:
+EXTRACT_DEPENDS=	pamscale:${PORTSDIR}/graphics/netpbm
+DESKTOP_ENTRIES=
+post-extract:

Changed and refined
 post-patch:

Changed
files/nelly.in

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

portlint -A
looks fine.

port test: clean

>Fix:

--- nelly-1.0_1.patch begins here ---
diff -ruN --exclude=CVS /usr/ports/games/nelly/Makefile ./Makefile
--- /usr/ports/games/nelly/Makefile	2012-09-15 01:39:13.000000000 +0200
+++ ./Makefile	2012-11-04 03:12:19.000000000 +0100
@@ -17,6 +17,7 @@
 
 RUN_DEPENDS=	${PYGAME} \
 		${PYTHON_PKGNAMEPREFIX}opengl>=0:${PORTSDIR}/graphics/py-opengl
+EXTRACT_DEPENDS=	pamscale:${PORTSDIR}/graphics/netpbm
 
 USE_PYTHON_RUN=	yes
 NO_BUILD=	yes
@@ -29,33 +30,35 @@
 
 SUB_FILES=	${PORTNAME}
 
+DESKTOP_ENTRIES="Nelly's Rooftop Garden" "${COMMENT}" "${PORTNAME}" \
+		"${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
+
 .include <bsd.port.options.mk>
 
 post-patch:
-	@${REINPLACE_CMD} -e 's,/usr/bin/python,${PYTHON_CMD},' \
+	@${REINPLACE_CMD} -e 's|/usr/bin/python|${PYTHON_CMD}|' \
 		${WRKSRC}/*.py
-	@(cd ${WRKSRC} && ${RM} *.py.bak)
+	@${FIND} ${WRKSRC} -name "*.bak" -delete
+
+post-extract:
+	 @(cd ${WRKSRC} && \
+		${LOCALBASE}/bin/pngtopnm ./textures/menu.png | \
+		${LOCALBASE}/bin/pamscale .08 | ${LOCALBASE}/bin/pnmtopng > ${PORTNAME}.png)
 
 do-install:
-# Scripts
 	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
-
-# Executable
 	${MKDIR} ${DATADIR}
 	${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR}
 
-# Data
-.  for d in fonts levels textures
+.for d in fonts levels textures
 	@(cd ${WRKSRC} && ${COPYTREE_SHARE} ${d} ${DATADIR})
-.  endfor
+.endfor
 
-# Pixmaps
-	${INSTALL_DATA} ${WRKSRC}/textures/menu.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
+	${INSTALL_DATA} ${WRKSRC}/${PORTNAME}.png ${PREFIX}/share/pixmaps
 
-# Documentation
 .if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${WRKSRC}/README ${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
 .endif
 
 .include <bsd.port.mk>
diff -ruN --exclude=CVS /usr/ports/games/nelly/files/nelly.in ./files/nelly.in
--- /usr/ports/games/nelly/files/nelly.in	2012-08-10 05:20:10.000000000 +0200
+++ ./files/nelly.in	2012-11-04 03:21:33.000000000 +0100
@@ -1,5 +1,7 @@
 #!/bin/sh
 #
-echo "Nelly's Rooftop Garden: Starting up..."
+# $FreeBSD$
+#
+
 cd "%%DATADIR%%"
-./nelly.py
+exec /usr/bin/env python ./nelly.py
--- nelly-1.0_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?20121104023000.2234BE01>