git: 253130fe8be0 - main - net-p2p/namecoin: Remove dependency on expired graphics/svg2png

From: Vladimir Druzenko <vvd_at_FreeBSD.org>
Date: Fri, 13 Sep 2024 19:45:32 UTC
The branch main has been updated by vvd:

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

commit 253130fe8be07170105cb971966e46ac01578cf9
Author:     Chad Jacob Milios <milios@ccsys.com>
AuthorDate: 2024-09-13 19:18:16 +0000
Commit:     Vladimir Druzenko <vvd@FreeBSD.org>
CommitDate: 2024-09-13 19:19:48 +0000

    net-p2p/namecoin: Remove dependency on expired graphics/svg2png
    
    - Remove build dependency on graphics/svg2png
    - Remove svg icon from GitHub download
    - Add same png icon from Same.Name
    
    PR:     281166
---
 net-p2p/namecoin/Makefile | 15 ++++++---------
 net-p2p/namecoin/distinfo |  6 +++---
 2 files changed, 9 insertions(+), 12 deletions(-)

diff --git a/net-p2p/namecoin/Makefile b/net-p2p/namecoin/Makefile
index 7d95131727ff..2e015ddb545b 100644
--- a/net-p2p/namecoin/Makefile
+++ b/net-p2p/namecoin/Makefile
@@ -4,6 +4,9 @@ DISTVERSION=	24.0
 PORTREVISION=	5
 PORTEPOCH=	1
 CATEGORIES=	net-p2p dns
+MASTER_SITES+=	https://same.name/static/:icon
+DISTFILES+=	namecoin128.c99d628dd26b.png:icon
+EXTRACT_ONLY=	${DISTFILE_DEFAULT}
 
 MAINTAINER=	milios@ccsys.com
 COMMENT?=	Decentralized, open DNS and general purpose key/value store
@@ -11,9 +14,6 @@ WWW=		https://namecoin.org/
 
 LICENSE=	MIT
 
-DEPRECATED=	Depends on expired graphics/svg2png
-EXPIRATION_DATE=2024-08-31
-
 LIB_DEPENDS=	libboost_date_time.so:devel/boost-libs \
 		libevent.so:devel/libevent
 
@@ -21,9 +21,7 @@ USES=		autoreconf compiler:c++17-lang gmake libtool pkgconfig ssl
 GNU_CONFIGURE=	yes
 
 USE_GITHUB=	yes
-GH_ACCOUNT=	indolering:graphics
-GH_PROJECT=	namecoin-core namecoin-graphics:graphics
-GH_TAGNAME=	a13a73b:graphics
+GH_PROJECT=	namecoin-core
 
 SLAVE_PORT?=	no
 
@@ -31,8 +29,7 @@ SLAVE_PORT?=	no
 USES+=		desktop-file-utils qt:5
 USE_QT=		core buildtools gui linguisttools:build network qmake:build xml widgets
 
-BUILD_DEPENDS+=	protoc:devel/protobuf \
-		svg2png:graphics/svg2png
+BUILD_DEPENDS+=	protoc:devel/protobuf
 LIB_DEPENDS+=	libprotobuf.so:devel/protobuf
 
 TESTS_USES=		qt:5
@@ -105,7 +102,7 @@ PLIST_FILES?=	bin/namecoin-qt share/applications/namecoin-qt.desktop \
 post-install:
 	${INSTALL_DATA} ${FILESDIR}/namecoin-qt.desktop \
 		${STAGEDIR}${PREFIX}/share/applications/
-	${LOCALBASE}/bin/svg2png -w128 -h128 ${WRKSRC_graphics}/svg/namecoin-logo.svg \
+	${CP} ${DISTDIR}/namecoin128.c99d628dd26b.png \
 		${STAGEDIR}${PREFIX}/share/pixmaps/namecoin128.png
 
 .endif
diff --git a/net-p2p/namecoin/distinfo b/net-p2p/namecoin/distinfo
index a3a65b40fd64..c68dba1e8e4b 100644
--- a/net-p2p/namecoin/distinfo
+++ b/net-p2p/namecoin/distinfo
@@ -1,5 +1,5 @@
-TIMESTAMP = 1677164952
+TIMESTAMP = 1725116404
+SHA256 (namecoin128.c99d628dd26b.png) = c99d628dd26b65a4405efa8feb336805ed3178773111fd2411d59a7e20086efc
+SIZE (namecoin128.c99d628dd26b.png) = 5822
 SHA256 (namecoin-namecoin-core-nc24.0_GH0.tar.gz) = 27fe1323ac09fad48ea2a3b8ed872f427d4711a129b565c0794c1d39a7d41033
 SIZE (namecoin-namecoin-core-nc24.0_GH0.tar.gz) = 10728123
-SHA256 (indolering-namecoin-graphics-a13a73b_GH0.tar.gz) = 82f308a3527d96a202099feb96a754d036bbdaa875156ad002ba2747d75000c7
-SIZE (indolering-namecoin-graphics-a13a73b_GH0.tar.gz) = 7364908