git: 295b4248735c - main - misc/timezonemap: update to 0.4.5.3

From: Charlie Li <vishwin_at_FreeBSD.org>
Date: Tue, 15 Oct 2024 22:52:22 UTC
The branch main has been updated by vishwin:

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

commit 295b4248735c88712129ff4c93b414d4bfdb3998
Author:     Charlie Li <vishwin@FreeBSD.org>
AuthorDate: 2024-10-15 22:49:28 +0000
Commit:     Charlie Li <vishwin@FreeBSD.org>
CommitDate: 2024-10-15 22:49:28 +0000

    misc/timezonemap: update to 0.4.5.3
    
    While here, fix incorrect hardcoded paths for the data files.
    
    PR: 281809
    Co-authored-by: Pavel Timofeev <timp87@gmail.com>
---
 misc/timezonemap/Makefile  | 14 +++++++-------
 misc/timezonemap/distinfo  |  6 +++---
 misc/timezonemap/pkg-plist |  1 +
 3 files changed, 11 insertions(+), 10 deletions(-)

diff --git a/misc/timezonemap/Makefile b/misc/timezonemap/Makefile
index 518bfe226deb..dd2759364954 100644
--- a/misc/timezonemap/Makefile
+++ b/misc/timezonemap/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	timezonemap
-DISTVERSION=	0.4.5.2
-PORTREVISION=	2
+DISTVERSION=	0.4.5.3
 CATEGORIES=	misc gnome
 
 MAINTAINER=	gnome@freebsd.org
@@ -10,20 +9,21 @@ WWW=		https://github.com/dashea/timezonemap
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-BUILD_DEPENDS=	gnome-autogen.sh:devel/gnome-common
 LIB_DEPENDS=	libjson-glib-1.0.so:devel/json-glib \
 		libsoup-2.4.so:devel/libsoup
 
-USES=		autoreconf:build gmake gnome libtool pkgconfig
+USES=		autoreconf gmake gnome libtool pkgconfig
 USE_GITHUB=	yes
 GH_ACCOUNT=	dashea
-USE_GNOME=	cairo gdkpixbuf2 gtk30 introspection:build librsvg2
+USE_GNOME=	gtk30 introspection:build librsvg2
 USE_LDCONFIG=	yes
 
 GNU_CONFIGURE=	yes
 INSTALL_TARGET=	install-strip
 
-pre-configure:
-	@cd ${WRKSRC} && ${SETENV} NOCONFIGURE=yes ${SH} autogen.sh
+post-patch:
+.for d in TZ_DATA_FILE ADMIN1_FILE COUNTRY_FILE
+	@${REINPLACE_CMD} '/$d/s|/usr|${PREFIX}|' ${WRKSRC}/src/tz.h
+.endfor
 
 .include <bsd.port.mk>
diff --git a/misc/timezonemap/distinfo b/misc/timezonemap/distinfo
index c4b2c6c40169..2984782746d1 100644
--- a/misc/timezonemap/distinfo
+++ b/misc/timezonemap/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1668269243
-SHA256 (dashea-timezonemap-0.4.5.2_GH0.tar.gz) = 80f631f79754c772ccbb80f5b6f9d232766f5706089bcfa7897bdf093323b6be
-SIZE (dashea-timezonemap-0.4.5.2_GH0.tar.gz) = 2474755
+TIMESTAMP = 1729031150
+SHA256 (dashea-timezonemap-0.4.5.3_GH0.tar.gz) = 9efddf1c70b9a8a6dcddc10f28a0e78e12a95ef072f8a16a5dbecbb87b862b3d
+SIZE (dashea-timezonemap-0.4.5.3_GH0.tar.gz) = 3004134
diff --git a/misc/timezonemap/pkg-plist b/misc/timezonemap/pkg-plist
index 72c7e129c594..75c0b6e2272f 100644
--- a/misc/timezonemap/pkg-plist
+++ b/misc/timezonemap/pkg-plist
@@ -3,6 +3,7 @@ include/timezonemap/timezonemap/cc-timezone-map.h
 include/timezonemap/timezonemap/timezone-completion.h
 include/timezonemap/timezonemap/tz.h
 lib/girepository-1.0/TimezoneMap-1.0.typelib
+lib/libtimezonemap.a
 lib/libtimezonemap.so
 lib/libtimezonemap.so.1
 lib/libtimezonemap.so.1.0.0