Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 2 Nov 2012 12:00:20 +0000 (UTC)
From:      Pawel Pekala <pawel@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r306844 - in head/games/zephulor: . files
Message-ID:  <201211021200.qA2C0Ks4015765@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: pawel
Date: Fri Nov  2 12:00:20 2012
New Revision: 306844
URL: http://svn.freebsd.org/changeset/ports/306844

Log:
  - Add LICENSE
  - Switch from pkg-plist to PLIST_FILES
  - Install desktop entry file
  - Convert to OptionsNG
  - Generate better execution script
  - Update homepage
  - Hand maintainership to submitter
  
  PR:		ports/172699
  Submitted by:	nemysis <nemysis@gmx.ch>
  Feature safe:	yes

Added:
  head/games/zephulor/files/
  head/games/zephulor/files/zephulor.in   (contents, props changed)
Deleted:
  head/games/zephulor/pkg-plist
Modified:
  head/games/zephulor/Makefile
  head/games/zephulor/pkg-descr

Modified: head/games/zephulor/Makefile
==============================================================================
--- head/games/zephulor/Makefile	Fri Nov  2 12:00:09 2012	(r306843)
+++ head/games/zephulor/Makefile	Fri Nov  2 12:00:20 2012	(r306844)
@@ -1,91 +1,70 @@
-# New ports collection makefile for:	games/zephulor
-# Date created:			8 Aug 2005
-# Whom:				Alejandro Pulver <alejandro@varnet.biz>
-#
+# Created by: Alejandro Pulver <alejandro@varnet.biz>
 # $FreeBSD$
-#
 
 PORTNAME=	zephulor
 PORTVERSION=	1
-PORTREVISION=	3
+PORTREVISION=	4
 CATEGORIES=	games
-MASTER_SITES=	http://www.hollowworks.com/downloads/adventuresonplanetzephulor/files/
+MASTER_SITES=	SF/apz/apz/stable/
 DISTNAME=	${PORTNAME}-source
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Adventures on Planet Zephulor
+MAINTAINER=	nemysis@gmx.ch
+COMMENT=	Side scrolling arcade game
 
-RUN_DEPENDS=	${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game \
-		${PYTHON_SITELIBDIR}/_tkinter.so:${PORTSDIR}/x11-toolkits/py-tkinter
+LICENSE=	LGPL20
+
+EXTRACT_DEPENDS=pngtopnm:${PORTSDIR}/graphics/netpbm
+RUN_DEPENDS=	${PYGAME} \
+		${PYTHON_PKGNAMEPREFIX}tkinter>=0:${PORTSDIR}/x11-toolkits/py-tkinter
 
 USE_PYTHON=	yes
 NO_BUILD=	yes
 
+PLIST_FILES=	bin/${PORTNAME} \
+		share/pixmaps/${PORTNAME}.png
+
+PORTDATA=	*
+PORTDOCS=	*
+
+DOCSRCDIR1=	${WRKSRC}
+DOC_FILES1=	README.txt manual.txt readme-*.txt
+
+DOCSRCDIR2=	${WRKSRC}/maptool
+DOCSDIR2=	${DOCSDIR}/maptool
+DOC_FILES2=	manual.txt
+
+DESKTOP_ENTRIES="Adventures on Planet Zephulor" "${COMMENT}" "${PORTNAME}" \
+		"${PORTNAME}" "Game;ArcadeGame;" "false"
+
+SUB_FILES=	${PORTNAME}
+
+.include <bsd.port.options.mk>
+
 post-patch:
-# Fix path to python interpreter
 	@${REINPLACE_CMD} -e 's|#!.*python|#!${PYTHON_CMD}|' \
 		${WRKSRC}/*.py ${WRKSRC}/maptool/*.py
+	@${FIND} ${WRKSRC} -name "*.bak" -delete
 
-# Make wrapper script
-	@${ECHO_CMD} "#!/bin/sh" >> ${WRKSRC}/zephulor
-	@${ECHO_CMD} '${PYTHON_CMD} ${DATADIR}/zephulor.py "$$@"' \
-		>> ${WRKSRC}/zephulor
+post-extract:
+	@(cd ${WRKSRC}/data && ${LOCALBASE}/bin/pngtopnm zephulor.png | \
+		${LOCALBASE}/bin/pamscale .1 | ${LOCALBASE}/bin/pnmtopng > zephulor1.png)
 
 do-install:
-# Wrapper script
-	${INSTALL_SCRIPT} ${WRKSRC}/zephulor ${PREFIX}/bin
-
-# Data directory
+	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${PREFIX}/bin
 	${MKDIR} ${DATADIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/*.py ${DATADIR}
+	@(cd ${WRKSRC} && ${COPYTREE_SHARE} data ${DATADIR})
+	${MKDIR} ${DATADIR}/maptool
+	${INSTALL_SCRIPT} ${WRKSRC}/maptool/*.py ${DATADIR}/maptool
 
-# Executable scripts
-.for f in chared maploadtool scnloadtool zephulor
-	${INSTALL_SCRIPT} ${WRKSRC}/${f}.py ${DATADIR}
-.endfor
-
-# Scripts
-.for f in game_config game_entities game_hud game_map game_menu \
-	game_projectiles game_sound myimg
-		${INSTALL_DATA} ${WRKSRC}/${f}.py ${DATADIR}
-.endfor
+post-install:
+	${INSTALL_DATA} ${WRKSRC}/data/zephulor1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png
 
-# Documentation
-.if !defined(NOPORTDOCS)
+.if ${PORT_OPTIONS:MDOCS}
 	${MKDIR} ${DOCSDIR}
-.	for f in README manual readme-chared readme-maploadtool \
-		readme-scnloadtool
-			${INSTALL_DATA} ${WRKSRC}/${f}.txt ${DOCSDIR}
-.	endfor
-.endif
-
-# Maptool
-	${MKDIR} ${DATADIR}/maptool
-
-# Executable scripts
-.for f in chared main
-	${INSTALL_SCRIPT} ${WRKSRC}/maptool/${f}.py ${DATADIR}/maptool
-.endfor
-
-# Scripts
-.for f in charmenu domenu game_entities game_map hud interface keymap myimg \
-	tilemenu
-		${INSTALL_DATA} ${WRKSRC}/maptool/${f}.py ${DATADIR}/maptool
-.endfor
-
-# Documentation
-.if !defined(NOPORTDOCS)
-	${MKDIR} ${DOCSDIR}/maptool
-	${INSTALL_DATA} ${WRKSRC}/maptool/manual.txt ${DOCSDIR}/maptool
+	${INSTALL_DATA} ${DOC_FILES1:S|^|${DOCSRCDIR1}/|} ${DOCSDIR}
+	${MKDIR} ${DOCSDIR2}
+	${INSTALL_DATA} ${DOC_FILES2:S|^|${DOCSRCDIR2}/|} ${DOCSDIR2}
 .endif
 
-# Data
-	${CP} -R ${WRKSRC}/data ${DATADIR}
-
-# Fix wrong permissions
-	${CHOWN} -R ${SHAREOWN}:${SHAREGRP} ${DATADIR}
-	${FIND} ${DATADIR}/data -type f -print0 | \
-		${XARGS} -0 ${CHMOD} ${SHAREMODE}
-	${FIND} ${DATADIR}/data -type d -print0 | \
-		${XARGS} -0 ${CHMOD} ${BINMODE}
-
 .include <bsd.port.mk>

Added: head/games/zephulor/files/zephulor.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/zephulor/files/zephulor.in	Fri Nov  2 12:00:20 2012	(r306844)
@@ -0,0 +1,7 @@
+#!/bin/sh
+#
+# $FreeBSD$
+#
+
+cd "%%DATADIR%%"
+exec /usr/bin/env python ./zephulor.py

Modified: head/games/zephulor/pkg-descr
==============================================================================
--- head/games/zephulor/pkg-descr	Fri Nov  2 12:00:09 2012	(r306843)
+++ head/games/zephulor/pkg-descr	Fri Nov  2 12:00:20 2012	(r306844)
@@ -10,4 +10,4 @@ persistent in each level, in other words
 on a level when the player dies, there will only be that remaining creature as
 the player restarts.
 
-WWW: http://games.hollowworks.com/
+WWW: http://www.hollowworks.com/apz/



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