svn commit: r511168 - head/games/linux-unigine-heaven

Tijl Coosemans tijl at FreeBSD.org
Thu Sep 5 10:23:57 UTC 2019


Author: tijl
Date: Thu Sep  5 10:23:56 2019
New Revision: 511168
URL: https://svnweb.freebsd.org/changeset/ports/511168

Log:
  - Make fetchable again.  The checksum has changed.  Since this is a binary
    only port it's not known what that means.  A timestamp in the selfextractor
    script is now a couple of hours after the previous one so it may simply
    be a release+facepalm+fix+rerelease.  At least it is downloaded from the
    official site now.
  - Fix portlint warnings.
  - Add a .desktop file.
  - Change startup script so it runs the 64-bit version on amd64.
  
  PR:		239783
  Submitted by:	Hannes Hauswedell <h2+fbsdports at fsfe.org> (maintainer)

Modified:
  head/games/linux-unigine-heaven/Makefile
  head/games/linux-unigine-heaven/distinfo
  head/games/linux-unigine-heaven/pkg-plist

Modified: head/games/linux-unigine-heaven/Makefile
==============================================================================
--- head/games/linux-unigine-heaven/Makefile	Thu Sep  5 10:16:53 2019	(r511167)
+++ head/games/linux-unigine-heaven/Makefile	Thu Sep  5 10:23:56 2019	(r511168)
@@ -3,13 +3,9 @@
 
 PORTNAME=	unigine-heaven
 PORTVERSION=	4.0
-PORTREVISION=	2
+PORTREVISION=	3
 CATEGORIES=	games benchmarks linux
-MASTER_SITES=	http://de1-dl.techpowerup.com/Benchmarking/ \
-		http://nl1-dl.techpowerup.com/Benchmarking/ \
-		http://uk1-dl.techpowerup.com/Benchmarking/ \
-		http://us1-dl.techpowerup.com/Benchmarking/ \
-		http://us2-dl.techpowerup.com/Benchmarking/
+MASTER_SITES=	https://assets.unigine.com/d/
 PKGNAMEPREFIX=	linux-
 DISTNAME=	Unigine_Heaven-${PORTVERSION}
 EXTRACT_SUFX=	.run
@@ -22,23 +18,29 @@ LICENSE_NAME=	Unigine "Basic" License
 LICENSE_TEXT=	Binary only, License text not available. Free-to-use + no-redistribution implied from homepage
 LICENSE_PERMS=	no-dist-sell no-pkg-sell no-dist-mirror no-pkg-mirror
 
-ONLY_FOR_ARCHS=	i386 amd64
-USES=		linux
-USE_LINUX=	dri openal-soft xorglibs
+ONLY_FOR_ARCHS=	amd64 i386
+USES=		linux shebangfix
+USE_LINUX=	dri xorglibs
 USE_LDCONFIG=	yes
 NO_BUILD=	yes
 
+SHEBANG_FILES=	heaven
+bash_CMD=	${LINUXBASE}/bin/bash
+
+DESKTOP_ENTRIES="Unigine Heaven" "${COMMENT}" "${DATADIR}/data/launcher/icon.png" \
+		"${PKGNAMEPREFIX}${PORTNAME}" "Game;" false
+
 do-extract:
 	@${MKDIR} ${WRKSRC}
-	cd ${WRKSRC} && ${TAIL} -n 1098568 ${_DISTDIR}/${DISTFILES} | ${TAR} zxf -
-	${PRINTF} "#\!/bin/sh\ncd ${DATADIR}/bin/\n" > ${WRKDIR}/${PORTNAME}
-	${ECHO} 'export LD_LIBRARY_PATH=./x86:$$LD_LIBRARY_PATH' >> ${WRKDIR}/${PORTNAME}
-	${ECHO} './browser_x86 -config ../data/launcher/launcher.xml' >> ${WRKDIR}/${PORTNAME}
+	cd ${WRKSRC} && ${TAIL} -n 1097642 ${_DISTDIR}/${DISTFILES} | ${TAR} zxf -
+	${PRINTF} '#!/bin/sh\ncd ${DATADIR}\nexec\
+		${LINUXBASE}/bin/bash ./heaven\n' > ${WRKDIR}/${PORTNAME}
 
 do-install:
 	${INSTALL_SCRIPT} ${WRKDIR}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PKGNAMEPREFIX}${PORTNAME}
 	cd ${WRKSRC} && ${COPYTREE_SHARE} ./data ${STAGEDIR}${DATADIR}
 	cd ${WRKSRC} && ${COPYTREE_SHARE} ./bin ${STAGEDIR}${DATADIR}
 	cd ${WRKSRC} && ${COPYTREE_SHARE} ./documentation ${STAGEDIR}${DATADIR}
+	${INSTALL_SCRIPT} ${WRKSRC}/heaven ${STAGEDIR}${DATADIR}/heaven
 
 .include <bsd.port.mk>

Modified: head/games/linux-unigine-heaven/distinfo
==============================================================================
--- head/games/linux-unigine-heaven/distinfo	Thu Sep  5 10:16:53 2019	(r511167)
+++ head/games/linux-unigine-heaven/distinfo	Thu Sep  5 10:23:56 2019	(r511168)
@@ -1,2 +1,3 @@
-SHA256 (Unigine_Heaven-4.0.run) = 90e6f95bb3c0d92f557a948ca6754b1b1bead07a063ec2af0ce03ef8e7ac74f3
-SIZE (Unigine_Heaven-4.0.run) = 286329188
+TIMESTAMP = 1565539326
+SHA256 (Unigine_Heaven-4.0.run) = 1bb0204a9bd9b0bdbf2fe23aa0c32129905cb387040098b815332ddb396f36a7
+SIZE (Unigine_Heaven-4.0.run) = 286326725

Modified: head/games/linux-unigine-heaven/pkg-plist
==============================================================================
--- head/games/linux-unigine-heaven/pkg-plist	Thu Sep  5 10:16:53 2019	(r511167)
+++ head/games/linux-unigine-heaven/pkg-plist	Thu Sep  5 10:23:56 2019	(r511168)
@@ -4,6 +4,7 @@ bin/linux-unigine-heaven
 %%DATADIR%%/bin/browser_x86
 %%DATADIR%%/bin/heaven_x64
 %%DATADIR%%/bin/heaven_x86
+%%DATADIR%%/heaven
 @mode
 %%DATADIR%%/bin/libAppStereo_x64.so
 %%DATADIR%%/bin/libAppStereo_x86.so


More information about the svn-ports-all mailing list