git: 48c1def2890d - main - net-p2p/ncdc: Update to 1.24.1

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sat, 21 Dec 2024 23:07:39 UTC
The branch main has been updated by diizzy:

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

commit 48c1def2890dce7b52049fc151b168016433d05e
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2024-12-21 20:11:27 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2024-12-21 23:06:55 +0000

    net-p2p/ncdc: Update to 1.24.1
    
    * Rework and adjust list of library dependencies
    * Remove gmake dependency
    * Use sqlite helper
    * Remove CONFIGURE_ENV entries (unnecessary except for ncurses on FreeBSD 13)
    
    Previous iteration of patch submitted by Älven <alster@vinterdalen.se>
    
    PR:             282657
    Approved by:    portmgr (maintainer timeout, 1+ month)
---
 net-p2p/ncdc/Makefile | 30 +++++++++++++-----------------
 net-p2p/ncdc/distinfo |  6 +++---
 2 files changed, 16 insertions(+), 20 deletions(-)

diff --git a/net-p2p/ncdc/Makefile b/net-p2p/ncdc/Makefile
index 25b71f47b565..2c4aa0782dba 100644
--- a/net-p2p/ncdc/Makefile
+++ b/net-p2p/ncdc/Makefile
@@ -1,6 +1,5 @@
 PORTNAME=	ncdc
-PORTVERSION=	1.22.1
-PORTREVISION=	4
+DISTVERSION=	1.24.1
 CATEGORIES=	net-p2p
 MASTER_SITES=	http://dev.yorhel.nl/download/
 
@@ -9,31 +8,28 @@ COMMENT=	Lightweight direct connect client with ncurses interface
 WWW=		https://dev.yorhel.nl/ncdc
 
 LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/COPYING
 
-LIB_DEPENDS=	libsqlite3.so:databases/sqlite3 \
-		libpcre.so:devel/pcre \
-		libgmp.so:math/gmp \
-		libgnutls.so:security/gnutls \
-		libgcrypt.so:security/libgcrypt \
-		libnettle.so:security/nettle \
-		libp11-kit.so:security/p11-kit
+LIB_DEPENDS=	libgnutls.so:security/gnutls
 
-USES=		compiler:c11 gmake gnome pkgconfig ncurses
+USES=		compiler:c11 gnome localbase:ldflags ncurses pkgconfig sqlite
 USE_GNOME=	glib20
+
 GNU_CONFIGURE=	yes
-GNU_CONFIGURE_MANPREFIX=${PREFIX}/share
+
 PLIST_FILES=	bin/ncdc \
 		share/man/man1/ncdc.1.gz
 
-CONFIGURE_ENV=	NCURSES_CFLAGS="-L${NCURSESLIB}" NCURSES_LIBS="-lncursesw"
-CFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib
-
 OPTIONS_DEFINE=		GEOIP
 OPTIONS_DEFAULT=	GEOIP
 
-GEOIP_CONFIGURE_WITH=	geoip
-GEOIP_CONFIGURE_ENV=	GEOIP_LIBS="-L${LOCALBASE}/lib -lmaxminddb"
 GEOIP_LIB_DEPENDS=	libmaxminddb.so:net/libmaxminddb
+GEOIP_CONFIGURE_WITH=	geoip
+
+.include <bsd.port.options.mk>
+
+.if ${OPSYS}_${OSREL:R} == FreeBSD_13
+CONFIGURE_ENV= NCURSES_CFLAGS="-L${NCURSESLIB}" NCURSES_LIBS="-lncursesw"
+.endif
 
 .include <bsd.port.mk>
diff --git a/net-p2p/ncdc/distinfo b/net-p2p/ncdc/distinfo
index e6ce516a8d40..86a51002888b 100644
--- a/net-p2p/ncdc/distinfo
+++ b/net-p2p/ncdc/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1564822079
-SHA256 (ncdc-1.22.1.tar.gz) = d15fd378aa345f423e59a38691c668f69b516cd4b8afbbcdc446007740c3afad
-SIZE (ncdc-1.22.1.tar.gz) = 371572
+TIMESTAMP = 1731190108
+SHA256 (ncdc-1.24.1.tar.gz) = 2a8ab9ad7d43f018fc73ba8babd689dfa44aba8cec53b88e4770185cb97778f7
+SIZE (ncdc-1.24.1.tar.gz) = 377704