git: 059d251a71c8 - main - emulators/flexemu: Clean up port

From: Rainer Hurling <rhurlin_at_FreeBSD.org>
Date: Thu, 04 Apr 2024 19:28:01 UTC
The branch main has been updated by rhurlin:

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

commit 059d251a71c8dbe3a49a68bde4a39d1432ddeac8
Author:     Rainer Hurling <rhurlin@FreeBSD.org>
AuthorDate: 2024-04-04 19:03:59 +0000
Commit:     Rainer Hurling <rhurlin@FreeBSD.org>
CommitDate: 2024-04-04 19:27:45 +0000

    emulators/flexemu: Clean up port
    
    - Reduce the dependencies used by the port
    - Remove unfinished binaries
    - Correct pkg-plist
    
    Thanks for the hints from the author of the emulator.
    
    Reported by:    Wolfgang Schwotzer <wolfgang.schwotzer@gmx.net>
---
 emulators/flexemu/Makefile  | 17 +++++++++++------
 emulators/flexemu/pkg-plist |  5 +----
 2 files changed, 12 insertions(+), 10 deletions(-)

diff --git a/emulators/flexemu/Makefile b/emulators/flexemu/Makefile
index 05f1f9ca864c..e53565fa3a39 100644
--- a/emulators/flexemu/Makefile
+++ b/emulators/flexemu/Makefile
@@ -1,6 +1,7 @@
 PORTNAME=	flexemu
 DISTVERSIONPREFIX=	V
 DISTVERSION=	3.20
+PORTREVISION=	1
 CATEGORIES=	emulators
 
 MAINTAINER=	rhurlin@FreeBSD.org
@@ -14,13 +15,17 @@ USE_GITHUB=	yes
 GH_ACCOUNT=	aladur
 GH_TUPLE=	google:googletest:e1a38bc3:googletest/googletest
 USE_GL=		gl
-USE_QT=		buildtools:build concurrent core dbus declarative \
-		declarative-test designer gui help multimedia network \
-		opengl printsupport qmake:build script scripttools \
-		sensors serialport sql svg testlib widgets x11extras \
-		xml xmlpatterns
+USE_QT=		buildtools:build core dbus gui network printsupport \
+		qmake:build widgets x11extras
 USE_XORG=	ice sm x11
 
 GNU_CONFIGURE=	yes
 
-.include <bsd.port.mk>
+.include <bsd.port.pre.mk>
+
+post-install:
+	@${RM} ${STAGEDIR}${PREFIX}/bin/rcvflex
+	@${RM} ${STAGEDIR}${PREFIX}/bin/send2flx
+	@${RM} ${STAGEDIR}${PREFIX}/bin/testdaa
+
+.include <bsd.port.post.mk>
diff --git a/emulators/flexemu/pkg-plist b/emulators/flexemu/pkg-plist
index 53a6ecfce6ab..d82854e490d1 100644
--- a/emulators/flexemu/pkg-plist
+++ b/emulators/flexemu/pkg-plist
@@ -5,11 +5,8 @@ bin/flexemu
 bin/flexplorer
 bin/fromflex
 bin/mdcrtool
-bin/rcvflex
-bin/send2flx
-bin/testdaa
 bin/toflex
-%%ETCDIR%%.conf
+etc/flexemu.conf
 share/applications/flexemu-flexplorer.desktop
 share/applications/flexemu.desktop
 %%DATADIR%%/6809diag.pdf