svn commit: r341887 - head/games/pathological
Pawel Pekala
pawel at FreeBSD.org
Thu Jan 30 21:04:39 UTC 2014
Author: pawel
Date: Thu Jan 30 21:04:38 2014
New Revision: 341887
URL: http://svnweb.freebsd.org/changeset/ports/341887
QAT: https://qat.redports.org/buildarchive/r341887/
Log:
- Add LICENSE, desktop entry file [1]
- Convert to new options framework [1]
- Fix issues reported by portlint [1]
- Use PYGAME for RUN_DEPENDS
- Add staging support
- Unmute install commands
PR: ports/185664 [1]
Submitted by: Hardy Schumacher <hardy.schumacher at gmx.de>
Approved by: maintainer timeout
Modified:
head/games/pathological/Makefile
head/games/pathological/pkg-descr
head/games/pathological/pkg-plist
Modified: head/games/pathological/Makefile
==============================================================================
--- head/games/pathological/Makefile Thu Jan 30 20:58:42 2014 (r341886)
+++ head/games/pathological/Makefile Thu Jan 30 21:04:38 2014 (r341887)
@@ -3,38 +3,41 @@
PORTNAME= pathological
PORTVERSION= 1.1.3
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= games
MASTER_SITES= SF
MAINTAINER= jmohacsi at bsd.hu
COMMENT= Enriched clone of the game "Logical"
-RUN_DEPENDS= ${PYTHON_SITELIBDIR}/pygame/__init__.py:${PORTSDIR}/devel/py-game
+LICENSE= GPLv2
+
+RUN_DEPENDS= ${PYGAME}
+
+OPTIONS_DEFINE= DOCS
USE_PYTHON= yes
NO_BUILD= yes
-MAN6= pathological.6
-MANCOMPRESSED= yes
DOC_FILES= favicon.ico index.html
-NO_STAGE= yes
+DESKTOP_ENTRIES="Pathological" \
+ "Logic game" \
+ "${DATADIR}/pathological.ico" \
+ "pathological" \
+ "Game;LogicGame;" \
+ false
+
do-install:
- @${MKDIR} ${DATADIR}
+ @${MKDIR} ${STAGEDIR}${DATADIR}
(cd ${WRKSRC}; tar -cf - circuits graphics music sounds pathological.ico pathological.py pathological.xpm) | \
- (cd ${DATADIR}; tar --unlink -xf -)
- @printf "#!/bin/sh\ncd ${DATADIR} && \
+ (cd ${STAGEDIR}${DATADIR}; tar --unlink -xf -)
+ @${PRINTF} "#!/bin/sh\ncd ${DATADIR} && \
exec ${PYTHON_CMD} ${DATADIR}/pathological.py\n" > ${WRKDIR}/pathological.sh
- @${INSTALL_SCRIPT} ${WRKDIR}/pathological.sh ${PREFIX}/bin/pathological
-.ifndef(NO_INSTALL_MANPAGES)
- ${INSTALL_MAN} ${WRKSRC}/${MAN6}.gz ${MAN6PREFIX}/man/man6/
-.endif
-.ifndef(NOPORTDOCS)
- @${MKDIR} ${DOCSDIR}
-.for file in ${DOC_FILES}
- @${INSTALL_DATA} ${WRKSRC}/html/${file} ${DOCSDIR}
-.endfor
-.endif
+ ${INSTALL_SCRIPT} ${WRKDIR}/pathological.sh \
+ ${STAGEDIR}${PREFIX}/bin/pathological
+ ${INSTALL_MAN} ${WRKSRC}/${PORTNAME}.6.gz ${STAGEDIR}${MANPREFIX}/man/man6
+ @${MKDIR} ${STAGEDIR}${DOCSDIR}
+ ${INSTALL_DATA} ${DOC_FILES:S|^|${WRKSRC}/html/|g} ${STAGEDIR}${DOCSDIR}
.include <bsd.port.mk>
Modified: head/games/pathological/pkg-descr
==============================================================================
--- head/games/pathological/pkg-descr Thu Jan 30 20:58:42 2014 (r341886)
+++ head/games/pathological/pkg-descr Thu Jan 30 21:04:38 2014 (r341887)
@@ -10,4 +10,4 @@ Features
* 50 diverse and challenging levels (more to come...)
* A cool 6-minute ambient soundtrack by an award-winning musician
-WWW: http://pathological.sourceforge.net/
+WWW: http://pathological.sourceforge.net/
Modified: head/games/pathological/pkg-plist
==============================================================================
--- head/games/pathological/pkg-plist Thu Jan 30 20:58:42 2014 (r341886)
+++ head/games/pathological/pkg-plist Thu Jan 30 21:04:38 2014 (r341887)
@@ -1,4 +1,5 @@
bin/pathological
+man/man6/pathological.6.gz
%%DATADIR%%/circuits/all-boards
%%DATADIR%%/graphics/backdrop.jpg
%%DATADIR%%/graphics/blank-bg-tile.png
More information about the svn-ports-all
mailing list