git: 9de626362329 - main - math/libhomfly: Improve port

From: Daniel Engberg <diizzy_at_FreeBSD.org>
Date: Sun, 02 Feb 2025 18:48:05 UTC
The branch main has been updated by diizzy:

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

commit 9de6263623295969602b804a137bfcef776d051c
Author:     Daniel Engberg <diizzy@FreeBSD.org>
AuthorDate: 2025-02-02 18:04:42 +0000
Commit:     Daniel Engberg <diizzy@FreeBSD.org>
CommitDate: 2025-02-02 18:47:26 +0000

    math/libhomfly: Improve port
    
    * Use upstream release archive
    * Add LICENSE_FILE definition
    * Add libgc.so:devel/boehm-gc to LIB_DEPENDS
    * Remove USES= autoreconf
    * Remove local patch (fixed in release archive)
    
    PR:             284104
    Approved by:    portmgr (maintainer timeout, 2+ weeks)
---
 math/libhomfly/Makefile                 | 13 +++++++------
 math/libhomfly/distinfo                 |  6 +++---
 math/libhomfly/files/patch-configure.ac |  8 --------
 3 files changed, 10 insertions(+), 17 deletions(-)

diff --git a/math/libhomfly/Makefile b/math/libhomfly/Makefile
index 112942412896..17c37b6fa48e 100644
--- a/math/libhomfly/Makefile
+++ b/math/libhomfly/Makefile
@@ -1,22 +1,23 @@
 PORTNAME=	libhomfly
 DISTVERSION=	1.02r6
 CATEGORIES=	math
+MASTER_SITES=	https://github.com/miguelmarco/${PORTNAME}/releases/download/${DISTVERSION}/
 
 MAINTAINER=	thierry@FreeBSD.org
 COMMENT=	Library to compute the homfly polynomial of knots and link
 WWW=		https://github.com/miguelmarco/libhomfly
 
 LICENSE=	PD
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
-LIB_DEPENDS=	libgc-threaded.so:devel/boehm-gc-threaded
+LIB_DEPENDS=	libgc.so:devel/boehm-gc \
+		libgc-threaded.so:devel/boehm-gc-threaded
 
-USE_GITHUB=	yes
-GH_ACCOUNT=	miguelmarco
-
-USES=		autoreconf libtool localbase
+USES=		libtool localbase
+USE_LDCONFIG=	yes
 
 GNU_CONFIGURE=	yes
-USE_LDCONFIG=	yes
+
 TEST_TARGET=	check
 
 PLIST_FILES=	include/homfly.h	\
diff --git a/math/libhomfly/distinfo b/math/libhomfly/distinfo
index 4c66f5e0a200..6e4142543a2f 100644
--- a/math/libhomfly/distinfo
+++ b/math/libhomfly/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1588250209
-SHA256 (miguelmarco-libhomfly-1.02r6_GH0.tar.gz) = cf5d5031c905318127c83fdffc891deb097c77ee48cdd0131f839ea6ecb64a84
-SIZE (miguelmarco-libhomfly-1.02r6_GH0.tar.gz) = 24498
+TIMESTAMP = 1737056308
+SHA256 (libhomfly-1.02r6.tar.gz) = f990d991d29a590c54b09eff68bc209c4cf2b8b12d945351688d2db8a0d30979
+SIZE (libhomfly-1.02r6.tar.gz) = 359354
diff --git a/math/libhomfly/files/patch-configure.ac b/math/libhomfly/files/patch-configure.ac
deleted file mode 100644
index cb366c337c12..000000000000
--- a/math/libhomfly/files/patch-configure.ac
+++ /dev/null
@@ -1,8 +0,0 @@
---- configure.ac.orig	2018-11-08 13:08:16 UTC
-+++ configure.ac
-@@ -1,4 +1,4 @@
--AC_INIT([libhomfly], [1.02r5], [mmarco@unizar.es])
-+AC_INIT([libhomfly], [1.02r6], [mmarco@unizar.es])
- AC_CONFIG_AUX_DIR([build-aux])
- AC_CONFIG_MACRO_DIR([m4])
- AM_INIT_AUTOMAKE([foreign -Wall])