svn commit: r335858 - head/games/pyspacewar

Rusmir Dusko nemysis at FreeBSD.org
Sat Dec 7 23:17:11 UTC 2013


Author: nemysis
Date: Sat Dec  7 23:17:10 2013
New Revision: 335858
URL: http://svnweb.freebsd.org/changeset/ports/335858

Log:
  - Change maintainer email to @FreeBSD.org
  - Add DOCS Option
  - Change desktop entry
  - Support STAGEDIR
  - Change pkg-plist, remove mtree
  
  Approved by:	pawel / wg (mentors, implicit)

Modified:
  head/games/pyspacewar/Makefile   (contents, props changed)
  head/games/pyspacewar/pkg-plist   (contents, props changed)

Modified: head/games/pyspacewar/Makefile
==============================================================================
--- head/games/pyspacewar/Makefile	Sat Dec  7 23:05:12 2013	(r335857)
+++ head/games/pyspacewar/Makefile	Sat Dec  7 23:17:10 2013	(r335858)
@@ -9,7 +9,7 @@ MASTER_SITES=	http://mg.pov.lt/${PORTNAM
 		LOCAL/beech
 DIST_SUBDIR=	python
 
-MAINTAINER=	nemysis at gmx.ch
+MAINTAINER=	nemysis at FreeBSD.org
 COMMENT=	Two ships duel in a gravity field
 
 LICENSE=	GPLv2
@@ -18,18 +18,16 @@ RUN_DEPENDS=	${PYGAME}
 
 USE_PYTHON=	yes
 USE_PYDISTUTILS=yes
-NO_BUILD=	yes
 
 PORTDOCS=	NEWS.txt README.txt TODO.txt performance-notes.txt
 
+OPTIONS_DEFINE=	DOCS
+
 INSTALLS_ICONS=	yes
 ICON_SIZES=	16x16 22x22 32x32 48x48
 
-DESKTOP_ENTRIES="PySpaceWar" "${COMMENT}" ${PORTNAME} \
-		"${PORTNAME}" "Game;ArcadeGame;" false
-
-NO_STAGE=	yes
-.include <bsd.port.options.mk>
+DESKTOP_ENTRIES="PySpaceWar" "" ${PORTNAME} \
+		"${PORTNAME}" "Game;ArcadeGame;" ""
 
 post-patch:
 .for s in 16 22 32 48
@@ -39,15 +37,14 @@ post-patch:
 
 post-install:
 .for s in ${ICON_SIZES}
-	@${MKDIR} ${PREFIX}/share/icons/hicolor/${s}/apps
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps
 	${INSTALL_DATA} ${WRKSRC}/src/pyspacewar/icons/${PORTNAME}_${s}.png \
-		${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
+		${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}/apps/${PORTNAME}.png
 .endfor
-	@${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png ${PREFIX}/share/pixmaps
+	${LN} -sf ${PREFIX}/share/icons/hicolor/48x48/apps/${PORTNAME}.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/
 
-.if ${PORT_OPTIONS:MDOCS}
-	@${MKDIR} ${DOCSDIR}
-	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
-.endif
+	@${MKDIR} ${STAGEDIR}${DOCSDIR}
+	${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${STAGEDIR}${DOCSDIR}
 
 .include <bsd.port.mk>

Modified: head/games/pyspacewar/pkg-plist
==============================================================================
--- head/games/pyspacewar/pkg-plist	Sat Dec  7 23:05:12 2013	(r335857)
+++ head/games/pyspacewar/pkg-plist	Sat Dec  7 23:17:10 2013	(r335858)
@@ -50,5 +50,3 @@ share/pixmaps/pyspacewar.png
 @dirrm %%PYTHON_SITELIBDIR%%/pyspacewar/music
 @dirrm %%PYTHON_SITELIBDIR%%/pyspacewar/images
 @dirrm %%PYTHON_SITELIBDIR%%/pyspacewar
- at dirrmtry %%PYTHON_SITELIBDIR%%
- at dirrmtry %%PYTHON_LIBDIR%%


More information about the svn-ports-head mailing list