Index: games/dMagnetic/Makefile =================================================================== --- games/dMagnetic/Makefile +++ games/dMagnetic/Makefile @@ -1,7 +1,7 @@ # $FreeBSD$ PORTNAME= dMagnetic -PORTVERSION= 0.18 +PORTVERSION= 0.20 CATEGORIES= games MASTER_SITES= https://www.dettus.net/dMagnetic/ DISTNAME= ${PORTNAME}_${PORTVERSION} @@ -12,6 +12,8 @@ LICENSE= BSD2CLAUSE LICENSE_FILE= ${WRKSRC}/LICENSE.txt +USES= tar:bz2 + do-install: ${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin ${INSTALL_MAN} ${WRKSRC}/dMagnetic.1 ${STAGEDIR}${MANPREFIX}/man/man1 @@ -20,5 +22,12 @@ ${INSTALL_DATA} ${WRKSRC}/dMagnetic.ini ${STAGEDIR}/${DATADIR} ${MKDIR} ${STAGEDIR}/${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.txt ${STAGEDIR}/${DOCSDIR} + +do-test: + cd ${WRKSRC}/testcode; if [ `echo Hello | ../dMagnetic \ + -mag minitest.mag -gfx minitest.gfx \ + -vmode low_ansi -vecho -vcols 300 -vrows 300 | \ + sha256 ` == 86ca2731a4333ed24203c5bda33e71a222e864cb22debe656de52157e89ab1ea ]; \ + then echo ok; else echo expected output not seen; exit 1; fi .include Index: games/dMagnetic/distinfo =================================================================== --- games/dMagnetic/distinfo +++ games/dMagnetic/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1559222642 -SHA256 (dMagnetic_0.18.tar.gz) = 527cd6dd9140a3ff01c29545f74be140d146b8207bafbccca54a36cb79c3610f -SIZE (dMagnetic_0.18.tar.gz) = 61210 +TIMESTAMP = 1579127196 +SHA256 (dMagnetic_0.20.tar.bz2) = c3f961c8ab629ea4b6472a030c438ac159dc699b6495285b9586e34609385d5a +SIZE (dMagnetic_0.20.tar.bz2) = 53575