git: b2bb218f3dd6 - main - devel/z88dk: hook the test suite to our framework (one test fails)

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Sat, 20 Nov 2021 08:11:06 UTC
The branch main has been updated by danfe:

URL: https://cgit.FreeBSD.org/ports/commit/?id=b2bb218f3dd607694fb096dcd57a32c80e68493a

commit b2bb218f3dd607694fb096dcd57a32c80e68493a
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2021-11-20 08:10:10 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2021-11-20 08:10:11 +0000

    devel/z88dk: hook the test suite to our framework (one test fails)
    
    While here, tweak the `post-install' target recipe a bit (nothing
    important or affecting the package).
---
 devel/z88dk/Makefile | 23 +++++++++++++++++++++--
 1 file changed, 21 insertions(+), 2 deletions(-)

diff --git a/devel/z88dk/Makefile b/devel/z88dk/Makefile
index 03f810445f11..399699127a30 100644
--- a/devel/z88dk/Makefile
+++ b/devel/z88dk/Makefile
@@ -12,10 +12,30 @@ COMMENT=	Complete Z80/Z180 development kit
 LICENSE=	ClArtistic
 LICENSE_FILE=	${WRKSRC}/LICENSE
 
+TEST_DEPENDS=	dos2unix:converters/unix2dos \
+		p5-CPU-Z80-Assembler>=0:devel/p5-CPU-Z80-Assembler \
+		p5-Capture-Tiny>=0:devel/p5-Capture-Tiny \
+		p5-Capture-Tiny-Extended>=0:devel/p5-Capture-Tiny-Extended \
+		p5-Clone>=0:devel/p5-Clone \
+		p5-Data-Dump>=0:devel/p5-Data-Dump \
+		p5-Data-HexDump>=0:devel/p5-Data-HexDump \
+		p5-File-Slurp>=0:devel/p5-File-Slurp \
+		p5-Iterator-Simple-Lookahead>=0:devel/p5-Iterator-Simple-Lookahead \
+		p5-List-Uniq>=0:devel/p5-List-Uniq \
+		p5-Modern-Perl>=0:lang/p5-Modern-Perl \
+		p5-Object-Tiny-RW>=0:devel/p5-Object-Tiny-RW \
+		p5-Path-Tiny>=0:devel/p5-Path-Tiny \
+		p5-Regexp-Common>=0:textproc/p5-Regexp-Common \
+		p5-Template-Plugin-YAML>=0:textproc/p5-Template-Plugin-YAML \
+		p5-Test-Differences>=0:devel/p5-Test-Differences \
+		p5-Test-HexDifferences>=0:devel/p5-Test-HexDifferences \
+		p5-Text-Table>=0:textproc/p5-Text-Table
+
 USES=		gmake gnome shebangfix tar:tgz
 USE_GNOME=	libxml2
 MAKE_ENV=	ZCCCFG=${WRKSRC}/lib/config
 SHEBANG_FILES=	src/z80asm/asmpp.pl
+TEST_TARGET=	testsuite test
 WRKSRC=		${WRKDIR}/${PORTNAME}
 
 MAKE_JOBS_UNSAFE=	../../z80asm: No such file or directory
@@ -45,8 +65,7 @@ pre-build:
 
 post-install:
 	@${RM} -r ${INSTALL_WRKSRC}/include/_DEVELOPMENT
-	@${RM} -r ${INSTALL_WRKSRC}/libsrc/_DEVELOPMENT
-	cd ${INSTALL_WRKSRC} && ${COPYTREE_SHARE} "lib include" \
+	cd ${INSTALL_WRKSRC} && ${COPYTREE_SHARE} "include lib" \
 		${STAGEDIR}${DATADIR}
 	@${RMDIR} ${STAGEDIR}${DATADIR}/src