Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Oct 2012 05:37:30 +0000 (UTC)
From:      Jason Helfman <jgh@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r305338 - in head/games/pycadia: . files
Message-ID:  <201210060537.q965bUpk005984@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: jgh
Date: Sat Oct  6 05:37:29 2012
New Revision: 305338
URL: http://svn.freebsd.org/changeset/ports/305338

Log:
  - adjust dependencies
  - install target cleanup
  - use optionsNG for DOCS
  
  PR:		170478
  Submitted by:	maintainer, nemysis@gmx.ch

Added:
  head/games/pycadia/files/pycadia.sh.in   (contents, props changed)
Modified:
  head/games/pycadia/Makefile
  head/games/pycadia/distinfo   (contents, props changed)

Modified: head/games/pycadia/Makefile
==============================================================================
--- head/games/pycadia/Makefile	Sat Oct  6 05:08:03 2012	(r305337)
+++ head/games/pycadia/Makefile	Sat Oct  6 05:37:29 2012	(r305338)
@@ -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>

Modified: head/games/pycadia/distinfo
==============================================================================
--- head/games/pycadia/distinfo	Sat Oct  6 05:08:03 2012	(r305337)
+++ head/games/pycadia/distinfo	Sat Oct  6 05:37:29 2012	(r305338)
@@ -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

Added: head/games/pycadia/files/pycadia.sh.in
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/pycadia/files/pycadia.sh.in	Sat Oct  6 05:37:29 2012	(r305338)
@@ -0,0 +1,6 @@
+#!/bin/sh
+#
+# $FreeBSD$
+
+cd "%%DATADIR%%"
+./pycadia.py



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