From bc77b7c42856680b34b9a85889ef9f785f1d97cb Mon Sep 17 00:00:00 2001 From: jgh Date: Sat, 6 Oct 2012 05:37:29 +0000 Subject: - adjust dependencies - install target cleanup - use optionsNG for DOCS PR: 170478 Submitted by: maintainer, nemysis@gmx.ch --- games/pycadia/Makefile | 51 +++++++++++++++++++-------------------- games/pycadia/distinfo | 4 +-- games/pycadia/files/pycadia.sh.in | 6 +++++ 3 files changed, 33 insertions(+), 28 deletions(-) create mode 100644 games/pycadia/files/pycadia.sh.in (limited to 'games') diff --git a/games/pycadia/Makefile b/games/pycadia/Makefile index 6df68a91ffb4..ee3abb38b958 100644 --- a/games/pycadia/Makefile +++ b/games/pycadia/Makefile @@ -1,55 +1,54 @@ -# New Ports collection makefile for: Pycadia -# Date created: 2012-05-09 -# Whom: nemysis@gmx.ch +# Created by: nemysis@gmx.ch # # $FreeBSD$ -# PORTNAME= pycadia PORTVERSION= 0.5.1 -CATEGORIES= games -MASTER_SITES= ${MASTER_SITE_GENTOO:S/%SUBDIR%/distfiles/} +PORTREVISION= 1 +CATEGORIES= games python +MASTER_SITES= ${MASTER_SITE_GENTOO:S/%SUBDIR%/distfiles/} \ + SF/nemysisfreebsdp/ +DIST_SUBDIR= python MAINTAINER= nemysis@gmx.ch COMMENT= Home to vector gaming, Python style LICENSE= GPLv2 -RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game \ - ${PYTHON_SITELIBDIR}/gtk-2.0/gtk/__init__.py:${PORTSDIR}/x11-toolkits/py-gtk2 +RUN_DEPENDS= ${PYGAME} WRKSRC= ${WRKDIR}/${PORTNAME} +USE_GNOME= pygtk2 libgnomeui USE_PYTHON= yes NO_BUILD= yes -PLIST_FILES= bin/pycadia \ - share/pixmaps/pycadia.png +PLIST_FILES= bin/${PORTNAME} \ + share/pixmaps/${PORTNAME}.png PORTDATA= * -PORTDOCS= CHANGELOG INSTALL README TODO gravity.txt +PORTDOCS= CHANGELOG README TODO gravity.txt + +DESKTOP_ENTRIES="Pycadia" "${COMMENT}" "${PORTNAME}" \ + "${PORTNAME}" "Game;ArcadeGame;" ${FALSE} + +SUB_FILES= ${PORTNAME}.sh + +.include do-install: -# Scripts - @${PRINTF} "#!/bin/sh\n\ncd ${DATADIR} &&\ - ./${PORTNAME}.py\n" > ${WRKDIR}/${PORTNAME}.sh - @${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME} + ${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${PREFIX}/bin/${PORTNAME} -# Data -.if !defined (NOPORTDATA) ${MKDIR} ${DATADIR} - @(cd ${WRKSRC} && ${COPYTREE_SHARE} "glade pixmaps sounds *.*" ${DATADIR}) - @(cd ${DATADIR} && ${CHMOD} 755 pycadia.py spacewarpy.py vektoroids.py) - ${INSTALL_DATA} ${FILESDIR}/pycadia.conf ${DATADIR} + @(cd ${WRKSRC} && ${COPYTREE_SHARE} \* ${DATADIR}) + @(cd ${DATADIR} && ${CHMOD} 555 ${PORTNAME}.py spacewarpy.py vektoroids.py) + ${INSTALL_DATA} ${FILESDIR}/${PORTNAME}.conf ${DATADIR} + ${INSTALL_DATA} ${WRKSRC}/pixmaps/logo1.png ${PREFIX}/share/pixmaps/${PORTNAME}.png -.endif -# Documentation -.if !defined(NOPORTDOCS) +.if ${PORT_OPTIONS:MDOCS} ${MKDIR} ${DOCSDIR} -. for f in ${PORTDOCS} - ${INSTALL_DATA} ${WRKSRC}/doc/${f} ${DOCSDIR} -. endfor + ${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/doc/|} ${DOCSDIR} .endif .include diff --git a/games/pycadia/distinfo b/games/pycadia/distinfo index 739b6da462af..92c78a65b758 100644 --- a/games/pycadia/distinfo +++ b/games/pycadia/distinfo @@ -1,2 +1,2 @@ -SHA256 (pycadia-0.5.1.tar.gz) = c872e4aede8cd04773327308b38b7e85b06aa370facee1c7b912d9ea938f67b5 -SIZE (pycadia-0.5.1.tar.gz) = 2768619 +SHA256 (python/pycadia-0.5.1.tar.gz) = c872e4aede8cd04773327308b38b7e85b06aa370facee1c7b912d9ea938f67b5 +SIZE (python/pycadia-0.5.1.tar.gz) = 2768619 diff --git a/games/pycadia/files/pycadia.sh.in b/games/pycadia/files/pycadia.sh.in new file mode 100644 index 000000000000..024a0b34f6fa --- /dev/null +++ b/games/pycadia/files/pycadia.sh.in @@ -0,0 +1,6 @@ +#!/bin/sh +# +# $FreeBSD$ + +cd "%%DATADIR%%" +./pycadia.py -- cgit