From 2b6c951533754fc13c43425b0501fcc20f49ab63 Mon Sep 17 00:00:00 2001 From: Kai Knoblich Date: Fri, 17 Jul 2020 06:32:31 +0000 Subject: [PATCH] games/dMagnetic: Update to 0.24 * Simplify test suite. [1] * Switch manpages to the preferred share/man location while I'm here. Changelog: * It is now possible to use .d64 images to play the games. * The test suite can now be called directly via its own "do-test" target per sub-make. [1] PR: 247915 Submitted by: Thomas Dettbarn (maintainer) --- games/dMagnetic/Makefile | 40 +++++---------------------------------- games/dMagnetic/distinfo | 6 +++--- games/dMagnetic/pkg-plist | 4 ++-- 3 files changed, 10 insertions(+), 40 deletions(-) diff --git a/games/dMagnetic/Makefile b/games/dMagnetic/Makefile index d383eaaefa3a..eae2b0b1a0e3 100644 --- a/games/dMagnetic/Makefile +++ b/games/dMagnetic/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= dMagnetic -PORTVERSION= 0.23 +PORTVERSION= 0.24 CATEGORIES= games MASTER_SITES= https://www.dettus.net/dMagnetic/ DISTNAME= ${PORTNAME}_${PORTVERSION} @@ -14,45 +14,15 @@ LICENSE_FILE= ${WRKSRC}/LICENSE.txt USES= tar:bz2 +TEST_TARGET= do-test + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin - ${INSTALL_MAN} ${WRKSRC}/dMagnetic.1 ${STAGEDIR}${MANPREFIX}/man/man1 - ${INSTALL_MAN} ${WRKSRC}/dMagneticini.5 ${STAGEDIR}${MANPREFIX}/man/man5 + ${INSTALL_MAN} ${WRKSRC}/dMagnetic.1 ${STAGEDIR}${MANPREFIX}/share/man/man1 + ${INSTALL_MAN} ${WRKSRC}/dMagneticini.5 ${STAGEDIR}${MANPREFIX}/share/man/man5 ${MKDIR} ${STAGEDIR}/${DATADIR} ${INSTALL_DATA} ${WRKSRC}/dMagnetic.ini ${STAGEDIR}/${DATADIR} ${MKDIR} ${STAGEDIR}/${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}/${DOCSDIR} -do-test: - cd ${WRKSRC}/testcode; if [ `${ECHO_CMD} Hello | ../dMagnetic -ini ../dMagnetic.ini \ - -mag minitest.mag -gfx minitest.gfx \ - -vmode none -vecho -vcols 300 -vrows 300 | \ - sha256 ` == 70af45367a6ad1b612ceabd36fef309d4258abac275281a5541342ccf0a765cd -a \ - `${ECHO_CMD} Hello | ../dMagnetic -ini ../dMagnetic.ini \ - -mag minitest.mag -gfx minitest.gfx \ - -vmode monochrome -vecho -vcols 300 -vrows 300 | \ - sha256 ` == b1e0f1b9fb7ade27960b23a0bbf195d6b57713bc91397792fab0bd700e882fb6 -a \ - `${ECHO_CMD} Hello | ../dMagnetic -ini ../dMagnetic.ini \ - -mag minitest.mag -gfx minitest.gfx \ - -vmode monochrome_inv -vecho -vcols 300 -vrows 300 | \ - sha256 ` == 31fa692260d66e4c884cd378f4d556948fa2cac993a222735b50fe77d5e42f74 -a \ - `${ECHO_CMD} Hello | ../dMagnetic -ini ../dMagnetic.ini \ - -mag minitest.mag -gfx minitest.gfx \ - -vmode low_ansi -vecho -vcols 300 -vrows 300 | \ - sha256 ` == 0305fe17144310c4759a2fc23f78e7f3975603d525b64a1ecc79fb86628523c9 -a \ - `${ECHO_CMD} Hello | ../dMagnetic -ini ../dMagnetic.ini \ - -mag minitest.mag -gfx minitest.gfx \ - -vmode low_ansi2 -vecho -vcols 300 -vrows 300 | \ - sha256 ` == ef4a1edd1313246dff47a9d44e2827b475c483efce456d1c3475b9b19f8fd8b7 -a \ - `${ECHO_CMD} Hello | ../dMagnetic -ini ../dMagnetic.ini \ - -mag minitest.mag -gfx minitest.gfx \ - -vmode high_ansi -vecho -vcols 300 -vrows 300 | \ - sha256 ` == 91a443b46e40caa3a8f229144adafe8220f445f452cae6632e0f7dcd95e03b9f -a \ - `${ECHO_CMD} Hello | ../dMagnetic -ini ../dMagnetic.ini \ - -mag minitest.mag -gfx minitest.gfx \ - -vmode sixel -vecho -vcols 300 -vrows 300 | \ - sha256 ` == 69deb35a1323d3b018d249fb0eb91b33872e454d986c7538912aba3c91d55a32 \ - ]; \ - then echo ok; else echo expected output not seen; exit 1; fi - .include diff --git a/games/dMagnetic/distinfo b/games/dMagnetic/distinfo index e104d299f3b3..1141683eb39f 100644 --- a/games/dMagnetic/distinfo +++ b/games/dMagnetic/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1581614322 -SHA256 (dMagnetic_0.23.tar.bz2) = 1e555b6a6ef5b3a54d2fe25ac83fbd100e3df6342a95e88354a2528ceaa8ff0f -SIZE (dMagnetic_0.23.tar.bz2) = 60820 +TIMESTAMP = 1594823147 +SHA256 (dMagnetic_0.24.tar.bz2) = 0456b63c8b4b212e504887564a093bf0c8a72b2844347042aec696727243e8fd +SIZE (dMagnetic_0.24.tar.bz2) = 66358 diff --git a/games/dMagnetic/pkg-plist b/games/dMagnetic/pkg-plist index 9ca1110aeb36..c12a73afb913 100644 --- a/games/dMagnetic/pkg-plist +++ b/games/dMagnetic/pkg-plist @@ -1,5 +1,5 @@ bin/dMagnetic -man/man1/dMagnetic.1.gz -man/man5/dMagneticini.5.gz +share/man/man1/dMagnetic.1.gz +share/man/man5/dMagneticini.5.gz %%DATADIR%%/dMagnetic.ini %%DOCSDIR%%/README.txt