git: ecdc6025fa03 - main - emulators/ukncbtl: update to 20240813

From: Max Brazhnikov <makc_at_FreeBSD.org>
Date: Sun, 01 Sep 2024 07:49:03 UTC
The branch main has been updated by makc:

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

commit ecdc6025fa036e7f31cff458d28755ece19eb473
Author:     Max Brazhnikov <makc@FreeBSD.org>
AuthorDate: 2024-09-01 07:48:39 +0000
Commit:     Max Brazhnikov <makc@FreeBSD.org>
CommitDate: 2024-09-01 07:48:39 +0000

    emulators/ukncbtl: update to 20240813
---
 emulators/ukncbtl/Makefile | 17 ++++++++++++-----
 emulators/ukncbtl/distinfo |  6 +++---
 2 files changed, 15 insertions(+), 8 deletions(-)

diff --git a/emulators/ukncbtl/Makefile b/emulators/ukncbtl/Makefile
index b4fda4e7034f..ab2f24a14443 100644
--- a/emulators/ukncbtl/Makefile
+++ b/emulators/ukncbtl/Makefile
@@ -1,5 +1,5 @@
 PORTNAME=	ukncbtl
-DISTVERSION=	g20221102
+DISTVERSION=	g20240813
 CATEGORIES=	emulators
 
 MAINTAINER=	makc@FreeBSD.org
@@ -7,18 +7,18 @@ COMMENT=	UKNC (Elektronika MS-0511) emulator
 WWW=		https://github.com/nzeemin/ukncbtl-doc/wiki
 
 LICENSE=	LGPL3
-LICENSE_FILE=	${WRKSRC}/LICENSE
+LICENSE_FILE=	${WRKSRC}/../LICENSE
 
 USES=		compiler:c++11-lang gl qmake qt:5
 
 USE_GL=		gl
 USE_QT=		core gui multimedia network script testlib widgets \
-		buildtools:build qmake:build
+		buildtools:build linguisttools:build qmake:build
 
 USE_GITHUB=	yes
 GH_ACCOUNT=	nzeemin
 GH_PROJECT=	ukncbtl-qt
-GH_TAGNAME=	a368c750
+GH_TAGNAME=	ae5021f8
 
 DESKTOP_ENTRIES=	"UkncBtl" \
 			"" \
@@ -27,12 +27,19 @@ DESKTOP_ENTRIES=	"UkncBtl" \
 			"" \
 			true
 
+WRKSRC_SUBDIR=	emulator
+
 PLIST_FILES=	bin/${PORTNAME} \
 		share/pixmaps/ukncbtl.png
 
 post-patch:
 	${REINPLACE_CMD} '/^#include/s,malloc.h,stdlib.h,' ${WRKSRC}/stdafx.h
-	${REINPLACE_CMD} '/^TARGET/s,QtUkncBtl,${PORTNAME},' ${WRKSRC}/QtUkncBtl.pro
+	${REINPLACE_CMD} -e '/^TARGET/s,QtUkncBtl,${PORTNAME},' \
+		-e '/^QMAKE_EXTRA_COMPILERS/s,lrelease,,' \
+		${WRKSRC}/QtUkncBtl.pro
+
+pre-build:
+	(cd ${WRKSRC}/lang && ${LRELEASE} *.ts)
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin
diff --git a/emulators/ukncbtl/distinfo b/emulators/ukncbtl/distinfo
index 2fe8f0e0a0a3..11d3e0b2ffc3 100644
--- a/emulators/ukncbtl/distinfo
+++ b/emulators/ukncbtl/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1668015276
-SHA256 (nzeemin-ukncbtl-qt-g20221102-a368c750_GH0.tar.gz) = ecfd2c2a16ed3f65a5b1913e191a442b6739515901e5981c7d509eaf9968c4cb
-SIZE (nzeemin-ukncbtl-qt-g20221102-a368c750_GH0.tar.gz) = 226291
+TIMESTAMP = 1725047620
+SHA256 (nzeemin-ukncbtl-qt-g20240813-ae5021f8_GH0.tar.gz) = 34535b5532217583ce4c2b369cb71e1cc424f891bc6592ee10fbe39601f1f021
+SIZE (nzeemin-ukncbtl-qt-g20240813-ae5021f8_GH0.tar.gz) = 284351