Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 21 Feb 2019 13:55:08 +0000 (UTC)
From:      Dmitry Marakasov <amdmi3@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r493502 - in head/games/powder-toy: . files
Message-ID:  <201902211355.x1LDt8ND036948@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: amdmi3
Date: Thu Feb 21 13:55:08 2019
New Revision: 493502
URL: https://svnweb.freebsd.org/changeset/ports/493502

Log:
  - Update to 94.0

Added:
  head/games/powder-toy/files/patch-SConscript   (contents, props changed)
  head/games/powder-toy/files/patch-resources_powder.appdata.xml   (contents, props changed)
  head/games/powder-toy/files/patch-resources_powder.desktop   (contents, props changed)
Modified:
  head/games/powder-toy/Makefile
  head/games/powder-toy/distinfo
  head/games/powder-toy/pkg-plist

Modified: head/games/powder-toy/Makefile
==============================================================================
--- head/games/powder-toy/Makefile	Thu Feb 21 13:44:45 2019	(r493501)
+++ head/games/powder-toy/Makefile	Thu Feb 21 13:55:08 2019	(r493502)
@@ -2,8 +2,7 @@
 # $FreeBSD$
 
 PORTNAME=	powder-toy
-PORTVERSION=	93.3
-PORTREVISION=	1
+PORTVERSION=	94.0
 DISTVERSIONPREFIX=	v
 CATEGORIES=	games
 
@@ -20,9 +19,8 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	ThePowderToy
 GH_PROJECT=	The-Powder-Toy
 
-USES=		compiler:c++11-lang scons localbase:ldflags lua:51 pkgconfig
-USE_SDL=	sdl
-USE_XORG=	x11
+USES=		compiler:c++11-lang scons sdl localbase:ldflags lua:51 pkgconfig
+USE_SDL=	sdl2
 
 MAKE_ENV=	LINKFLAGS="${LINKFLAGS}"
 
@@ -30,13 +28,6 @@ SUB_FILES=	${PORTNAME}.sh
 
 PORTDOCS=	README.md TODO
 
-DESKTOP_ENTRIES="The Powder Toy" \
-		"" \
-		"${PREFIX}/share/pixmaps/${PORTNAME}.ico" \
-		"${PORTNAME}" \
-		"Game;Simulation;" \
-		""
-
 OPTIONS_DEFINE=		DOCS OPTIMIZED_CFLAGS SSE SSE3 OPENGL
 OPTIONS_DEFAULT=	OPTIMIZED_CFLAGS
 OPTIONS_DEFAULT_amd64=	SSE
@@ -56,7 +47,16 @@ post-patch:
 do-install:
 	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME}.sh ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
 	${INSTALL_PROGRAM} ${WRKSRC}/build/powder* ${STAGEDIR}${PREFIX}/libexec/${PORTNAME}
-	${INSTALL_DATA} ${WRKSRC}/resources/powder.ico ${STAGEDIR}${PREFIX}/share/pixmaps/${PORTNAME}.ico
+	${INSTALL_DATA} ${WRKSRC}/resources/powder.desktop ${STAGEDIR}${PREFIX}/share/applications/powder-toy.desktop
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/appdata
+	${INSTALL_DATA} ${WRKSRC}/resources/powder.appdata.xml ${STAGEDIR}${PREFIX}/share/appdata/powder-toy.appdata.xml
+.for s in 16 24 32 48 128 256
+	@${MKDIR} ${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps
+	${INSTALL_DATA} ${WRKSRC}/resources/icon/powder-${s}.png \
+		${STAGEDIR}${PREFIX}/share/icons/hicolor/${s}x${s}/apps/powder-toy.png
+.endfor
+	${INSTALL_DATA} ${WRKSRC}/resources/icon/powder-32.png \
+		${STAGEDIR}${PREFIX}/share/pixmaps/powder-toy.png
 
 do-install-DOCS-on:
 	@${MKDIR} ${STAGEDIR}${DOCSDIR}

Modified: head/games/powder-toy/distinfo
==============================================================================
--- head/games/powder-toy/distinfo	Thu Feb 21 13:44:45 2019	(r493501)
+++ head/games/powder-toy/distinfo	Thu Feb 21 13:55:08 2019	(r493502)
@@ -1,3 +1,3 @@
-TIMESTAMP = 1525264085
-SHA256 (ThePowderToy-The-Powder-Toy-v93.3_GH0.tar.gz) = 6c5f5914e4ae0ac8500c7203ec69517a2fd4380dece6b33247ed719aa12e074e
-SIZE (ThePowderToy-The-Powder-Toy-v93.3_GH0.tar.gz) = 996138
+TIMESTAMP = 1550501901
+SHA256 (ThePowderToy-The-Powder-Toy-v94.0_GH0.tar.gz) = 01bb365caa584e454aaad813a75a2db49478ae410075f27f79a3df931e8d9301
+SIZE (ThePowderToy-The-Powder-Toy-v94.0_GH0.tar.gz) = 1253460

Added: head/games/powder-toy/files/patch-SConscript
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/powder-toy/files/patch-SConscript	Thu Feb 21 13:55:08 2019	(r493502)
@@ -0,0 +1,15 @@
+--- SConscript.orig	2019-02-17 19:08:04 UTC
++++ SConscript
+@@ -364,11 +364,7 @@ def findLibs(env, conf):
+ 				FatalError("OpenGL framework not found or not installed")
+ 
+ 	if platform == "Linux" or platform == "FreeBSD":
+-		if not conf.CheckLib('X11'):
+-			FatalError("X11 development library not found or not installed")
+-
+-		if not conf.CheckLib('rt'):
+-			FatalError("librt not found or not installed")
++		pass
+ 	elif platform == "Windows":
+ 		#These need to go last
+ 		if not conf.CheckLib('gdi32') or not conf.CheckLib('winmm') or (not msvc and not conf.CheckLib('dxguid')):

Added: head/games/powder-toy/files/patch-resources_powder.appdata.xml
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/powder-toy/files/patch-resources_powder.appdata.xml	Thu Feb 21 13:55:08 2019	(r493502)
@@ -0,0 +1,10 @@
+--- resources/powder.appdata.xml.orig	2019-02-17 19:08:04 UTC
++++ resources/powder.appdata.xml
+@@ -1,6 +1,6 @@
+ <?xml version="1.0" encoding="UTF-8"?>
+ <component type="desktop">
+-  <id>powder.desktop</id>
++  <id>powder-toy.desktop</id>
+   <metadata_license>CC0-1.0</metadata_license>
+   <project_license>GPL-3.0</project_license>
+   <name>Powder Toy</name>

Added: head/games/powder-toy/files/patch-resources_powder.desktop
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/games/powder-toy/files/patch-resources_powder.desktop	Thu Feb 21 13:55:08 2019	(r493502)
@@ -0,0 +1,12 @@
+--- resources/powder.desktop.orig	2019-02-17 19:08:04 UTC
++++ resources/powder.desktop
+@@ -3,7 +3,7 @@ Version=1.0
+ Encoding=UTF-8
+ Name=Powder Toy
+ Comment=Physics sandbox game
+-Exec=powder
+-Icon=powder
++Exec=powder-toy
++Icon=powder-toy
+ Type=Application
+ Categories=Game;Simulation;

Modified: head/games/powder-toy/pkg-plist
==============================================================================
--- head/games/powder-toy/pkg-plist	Thu Feb 21 13:44:45 2019	(r493501)
+++ head/games/powder-toy/pkg-plist	Thu Feb 21 13:55:08 2019	(r493502)
@@ -1,3 +1,11 @@
 bin/powder-toy
 libexec/powder-toy
-share/pixmaps/powder-toy.ico
+share/appdata/powder-toy.appdata.xml
+share/applications/powder-toy.desktop
+share/icons/hicolor/128x128/apps/powder-toy.png
+share/icons/hicolor/16x16/apps/powder-toy.png
+share/icons/hicolor/24x24/apps/powder-toy.png
+share/icons/hicolor/256x256/apps/powder-toy.png
+share/icons/hicolor/32x32/apps/powder-toy.png
+share/icons/hicolor/48x48/apps/powder-toy.png
+share/pixmaps/powder-toy.png



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