git: f742a28acd2b - main - graphics/jp2a: Give the port a makeover

From: Emanuel Haupt <ehaupt_at_FreeBSD.org>
Date: Mon, 28 Oct 2024 08:23:38 UTC
The branch main has been updated by ehaupt:

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

commit f742a28acd2b665828d83ed45b50d5ad654ea857
Author:     Emanuel Haupt <ehaupt@FreeBSD.org>
AuthorDate: 2024-10-28 08:23:31 +0000
Commit:     Emanuel Haupt <ehaupt@FreeBSD.org>
CommitDate: 2024-10-28 08:23:35 +0000

    graphics/jp2a: Give the port a makeover
    
    Use the release archive to remove USES=autoreconf. Eliminate
    CONFIGURE_ENV, MAKE_ENV, USE_CSTD, and LDFLAGS, as they are no longer
    needed for this port. Add USES=localbase:ldflags and --disable-assert to
    CONFIGURE_ARGS.
    
    PR:             282336
    Reported by:    diizzy
---
 graphics/jp2a/Makefile | 15 +++++----------
 graphics/jp2a/distinfo |  6 +++---
 2 files changed, 8 insertions(+), 13 deletions(-)

diff --git a/graphics/jp2a/Makefile b/graphics/jp2a/Makefile
index 83f097c2a6f8..764dee9e7096 100644
--- a/graphics/jp2a/Makefile
+++ b/graphics/jp2a/Makefile
@@ -1,7 +1,8 @@
 PORTNAME=	jp2a
-DISTVERSIONPREFIX=	v
 DISTVERSION=	1.3.1
+PORTREVISION=	1
 CATEGORIES=	graphics
+MASTER_SITES=	https://github.com/Talinx/${PORTNAME}/releases/download/v${DISTVERSION}/
 
 MAINTAINER=	ehaupt@FreeBSD.org
 COMMENT=	Converts JPG images to ASCII
@@ -15,18 +16,12 @@ LIB_DEPENDS=	libcurl.so:ftp/curl \
 		libpng.so:graphics/png \
 		libwebp.so:graphics/webp
 
-USES=		autoreconf jpeg localbase ncurses pkgconfig
-USE_CSTD=	c99
-USE_GITHUB=	yes
-GH_ACCOUNT=	Talinx
+USES=		jpeg localbase:ldflags ncurses pkgconfig tar:bz2
 
 GNU_CONFIGURE=	yes
 
-CONFIGURE_ARGS=	--disable-doxygen-doc
-CONFIGURE_ENV+=	bashcompdir=${STAGEDIR}${PREFIX}/etc/bash_completion.d
-MAKE_ENV+=	bashcompdir=${STAGEDIR}${PREFIX}/etc/bash_completion.d
-
-LDFLAGS+=	-lm
+CONFIGURE_ARGS=	--disable-assert \
+		--disable-doxygen-doc
 
 PLIST_FILES=	bin/jp2a \
 		etc/bash_completion.d/jp2a \
diff --git a/graphics/jp2a/distinfo b/graphics/jp2a/distinfo
index 7ef8304327a8..990199895fe0 100644
--- a/graphics/jp2a/distinfo
+++ b/graphics/jp2a/distinfo
@@ -1,3 +1,3 @@
-TIMESTAMP = 1729491503
-SHA256 (Talinx-jp2a-v1.3.1_GH0.tar.gz) = b811d8b1f29d47b9526c99174aea848ed14b4ad051787b6fd739d5df2234a51b
-SIZE (Talinx-jp2a-v1.3.1_GH0.tar.gz) = 604476
+TIMESTAMP = 1729954835
+SHA256 (jp2a-1.3.1.tar.bz2) = a646f893508b111d922d5f726953d577089741b83fa299f351c98e7be7974c9f
+SIZE (jp2a-1.3.1.tar.bz2) = 513881