svn commit: r312758 - head/games/nuclearchess
Rene Ladan
rene at FreeBSD.org
Fri Feb 22 10:23:40 UTC 2013
Author: rene
Date: Fri Feb 22 10:23:38 2013
New Revision: 312758
URL: http://svnweb.freebsd.org/changeset/ports/312758
Log:
Commit the correct patch:
- remove dependency on pamscale, use a pre-built desktop icon
and desktopfileutils instead
- improve DESKTOP_ENTRIES
- move distribution files into their own subdirectory
- use pkg-plist again instead of PLIST macros
Bump PORTREVISION
PR: ports/172887
Submitted by: nemysis at gmx.de
Pointyhat: rene
Added:
head/games/nuclearchess/pkg-plist (contents, props changed)
Modified:
head/games/nuclearchess/Makefile
head/games/nuclearchess/distinfo (contents, props changed)
Modified: head/games/nuclearchess/Makefile
==============================================================================
--- head/games/nuclearchess/Makefile Fri Feb 22 09:17:37 2013 (r312757)
+++ head/games/nuclearchess/Makefile Fri Feb 22 10:23:38 2013 (r312758)
@@ -3,44 +3,42 @@
PORTNAME= nuclearchess
PORTVERSION= 1.0.0
-PORTREVISION= 7
+PORTREVISION= 8
CATEGORIES= games
-MASTER_SITES= http://www.linux-games.com/nuclearchess/
+MASTER_SITES= http://www.linux-games.com/nuclearchess/ \
+ SF/nemysisfreebsdp/:icons
+DISTFILES= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}.png:icons
+DIST_SUBDIR= ${PORTNAME}
+EXTRACT_ONLY= ${PORTNAME}-${DISTVERSION}${EXTRACT_SUFX}
MAINTAINER= nemysis at gmx.ch
COMMENT= Chess variant designed to be short and fun for all players
LICENSE= GPLv2
-BUILD_DEPENDS= pamscale:${PORTSDIR}/graphics/netpbm
-
USE_SDL= sdl image
+USE_GNOME= desktopfileutils
+INSTALLS_ICONS= yes
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --localstatedir=${DATADIR}
MAKE_JOBS_SAFE= yes
-PLIST_FILES= bin/${PORTNAME} \
- share/pixmaps/${PORTNAME}.png
-
-PORTDATA= *
PORTDOCS= AUTHORS ChangeLog
-DESKTOP_ENTRIES="NuclearChess" "${COMMENT}" "${PORTNAME}" \
- "${PORTNAME}" "Game;ArcadeGame;" ${FALSE}
+DESKTOP_ENTRIES="NuclearChess" "${COMMENT}" \
+ "${PREFIX}/share/pixmaps/${PORTNAME}.png" \
+ "${PORTNAME}" "Game;BoardGame;" false
.include <bsd.port.options.mk>
-post-build:
- @(cd ${WRKSRC}/gfx && \
- ${LOCALBASE}/bin/pngtopnm atom.png | \
- ${LOCALBASE}/bin/pamscale .22 | ${LOCALBASE}/bin/pnmtopng > nuclearchess.png)
-
post-install:
- ${INSTALL_DATA} ${WRKSRC}/gfx/nuclearchess.png ${PREFIX}/share/pixmaps
+ ${INSTALL_DATA} ${_DISTDIR}/${PORTNAME}.png ${PREFIX}/share/pixmaps/
.if ${PORT_OPTIONS:MDOCS}
${MKDIR} ${DOCSDIR}
${INSTALL_DATA} ${PORTDOCS:S|^|${WRKSRC}/|} ${DOCSDIR}
.endif
+ @-update-desktop-database
.include <bsd.port.mk>
Modified: head/games/nuclearchess/distinfo
==============================================================================
--- head/games/nuclearchess/distinfo Fri Feb 22 09:17:37 2013 (r312757)
+++ head/games/nuclearchess/distinfo Fri Feb 22 10:23:38 2013 (r312758)
@@ -1,2 +1,4 @@
-SHA256 (nuclearchess-1.0.0.tar.gz) = 52e8b2cd297e0a38be276c0084b018c8ee54709356c7f4c642cd7205976aa21b
-SIZE (nuclearchess-1.0.0.tar.gz) = 1377205
+SHA256 (nuclearchess/nuclearchess-1.0.0.tar.gz) = 52e8b2cd297e0a38be276c0084b018c8ee54709356c7f4c642cd7205976aa21b
+SIZE (nuclearchess/nuclearchess-1.0.0.tar.gz) = 1377205
+SHA256 (nuclearchess/nuclearchess.png) = 0f79c2bc0fdf2abd313b78d43fab1fcdf400aeefca9d9dac556bbed37abad0d5
+SIZE (nuclearchess/nuclearchess.png) = 2613
Added: head/games/nuclearchess/pkg-plist
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/games/nuclearchess/pkg-plist Fri Feb 22 10:23:38 2013 (r312758)
@@ -0,0 +1,40 @@
+bin/nuclearchess
+%%DATADIR%%/gfx/SmallStone.png
+%%DATADIR%%/gfx/StoneFont.png
+%%DATADIR%%/gfx/anim1.png
+%%DATADIR%%/gfx/anim10.png
+%%DATADIR%%/gfx/anim11.png
+%%DATADIR%%/gfx/anim12.png
+%%DATADIR%%/gfx/anim13.png
+%%DATADIR%%/gfx/anim14.png
+%%DATADIR%%/gfx/anim15.png
+%%DATADIR%%/gfx/anim2.png
+%%DATADIR%%/gfx/anim3.png
+%%DATADIR%%/gfx/anim4.png
+%%DATADIR%%/gfx/anim5.png
+%%DATADIR%%/gfx/anim6.png
+%%DATADIR%%/gfx/anim7.png
+%%DATADIR%%/gfx/anim8.png
+%%DATADIR%%/gfx/anim9.png
+%%DATADIR%%/gfx/atom-rot.png
+%%DATADIR%%/gfx/atom.png
+%%DATADIR%%/gfx/bauer.png
+%%DATADIR%%/gfx/black.png
+%%DATADIR%%/gfx/board.png
+%%DATADIR%%/gfx/bomb.png
+%%DATADIR%%/gfx/bombe.png
+%%DATADIR%%/gfx/button-light.png
+%%DATADIR%%/gfx/button.png
+%%DATADIR%%/gfx/dame.png
+%%DATADIR%%/gfx/koenig.png
+%%DATADIR%%/gfx/laeufer.png
+%%DATADIR%%/gfx/select.png
+%%DATADIR%%/gfx/springer.png
+%%DATADIR%%/gfx/turm.png
+%%DATADIR%%/gfx/white.png
+%%DATADIR%%/gfx/wood.png
+share/pixmaps/nuclearchess.png
+ at dirrm %%DATADIR%%/gfx
+ at dirrm %%DATADIR%%
+ at exec %%LOCALBASE%%/bin/update-desktop-database -q || /usr/bin/true
+ at unexec %%LOCALBASE%%/bin/update-desktop-database -q || /usr/bin/true
More information about the svn-ports-head
mailing list