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 <dettus@dettus.net> (maintainer)
This commit is contained in:
Kai Knoblich 2020-07-17 06:32:31 +00:00
parent eb56acc9d1
commit 2b6c951533
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=542409
3 changed files with 10 additions and 40 deletions

View file

@ -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 <bsd.port.mk>

View file

@ -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

View file

@ -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