aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--games/pycadia/Makefile51
-rw-r--r--games/pycadia/distinfo4
-rw-r--r--games/pycadia/files/pycadia.sh.in6
3 files changed, 33 insertions, 28 deletions
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 <bsd.port.options.mk>
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 <bsd.port.mk>
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