git: 70a67dbdf65a - main - sysutils/thefish: Update to 0.6.8

From: Zsolt Udvari <uzsolt_at_FreeBSD.org>
Date: Tue, 02 Jul 2024 05:26:41 UTC
The branch main has been updated by uzsolt:

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

commit 70a67dbdf65a214e42854ff125fb8f1a56089346
Author:     Chris Hutchinson <portmaster@bsdforge.com>
AuthorDate: 2024-07-02 05:22:37 +0000
Commit:     Zsolt Udvari <uzsolt@FreeBSD.org>
CommitDate: 2024-07-02 05:26:12 +0000

    sysutils/thefish: Update to 0.6.8
    
    Remove options because can choose between GTK2 and Qt3, Qt3 is
    outdated.
    Project moves to codeberg.
    Switch to DISTVERSION.
    Add LICENSE_FILE.
    
    PR:             279282
    Approved by:    Submitter is maintainer
---
 sysutils/thefish/Makefile             | 27 +++++++++++++--------------
 sysutils/thefish/distinfo             |  5 +++--
 sysutils/thefish/files/patch-Makefile | 25 -------------------------
 sysutils/thefish/files/patch-main.c   | 22 ----------------------
 4 files changed, 16 insertions(+), 63 deletions(-)

diff --git a/sysutils/thefish/Makefile b/sysutils/thefish/Makefile
index 007135c2a611..4db26a090a17 100644
--- a/sysutils/thefish/Makefile
+++ b/sysutils/thefish/Makefile
@@ -1,29 +1,28 @@
 PORTNAME=	thefish
-PORTVERSION=	0.6.7
-PORTREVISION=	2
+DISTVERSION=	0.6.8
 CATEGORIES=	sysutils
-MASTER_SITES=	https://BSDforge.com/projects/source/sysutils/thefish/
+MASTER_SITES=	https://codeberg.org/BSDforge/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
 
 MAINTAINER=	portmaster@BSDforge.com
 COMMENT=	Gtk+/ncurses rc.conf editor/management tool
-WWW=		https://BSDforge.com/projects/sysutils/thefish
+WWW=		https://codeberg.org/BSDforge/${PORTNAME}
 
 LICENSE=	BSD2CLAUSE
+LICENSE_FILE=	${WRKSRC}/LICENSE
 
-USES=		gnome pkgconfig tar:xz
+LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
+		libfreetype.so:print/freetype2 \
+		libharfbuzz.so:print/harfbuzz
 
-OPTIONS_SINGLE=		X11
-OPTIONS_SINGLE_X11=	GTK2
-OPTIONS_DEFAULT=	GTK2
+USES=		gnome pkgconfig
 
-.include <bsd.port.options.mk>
-
-#.if ${PORT_OPTIONS:MGTK2}
-USE_GNOME=	gtk20
+USE_GNOME=	cairo gdkpixbuf2 gtk20
 MAKE_ENV+=	WITH_GTK=yes
-#.endif
 
-PLIST_FILES=	bin/thefish share/man/man1/thefish.1.gz
+WRKSRC=		${WRKDIR}/${PORTNAME}
+
+PLIST_FILES=	bin/thefish \
+		share/man/man1/thefish.1.gz
 
 do-install:
 	${INSTALL_PROGRAM} ${WRKSRC}/thefish ${STAGEDIR}${PREFIX}/bin
diff --git a/sysutils/thefish/distinfo b/sysutils/thefish/distinfo
index 7deced638353..051961557486 100644
--- a/sysutils/thefish/distinfo
+++ b/sysutils/thefish/distinfo
@@ -1,2 +1,3 @@
-SHA256 (thefish-0.6.7.tar.xz) = bd40e18d564f799ca0ee814256b6da7bed387d45bcd9c71b901245c53fa39089
-SIZE (thefish-0.6.7.tar.xz) = 33364
+TIMESTAMP = 1719873774
+SHA256 (thefish-0.6.8.tar.gz) = 7d214a4c4c2af9955c71d7cde59fe278dc738666888ac6a2e83f541c7b6173e6
+SIZE (thefish-0.6.8.tar.gz) = 43491
diff --git a/sysutils/thefish/files/patch-Makefile b/sysutils/thefish/files/patch-Makefile
deleted file mode 100644
index 09ede186f8af..000000000000
--- a/sysutils/thefish/files/patch-Makefile
+++ /dev/null
@@ -1,25 +0,0 @@
---- Makefile.orig	2015-11-09 12:52:16.212487000 -0800
-+++ Makefile	2015-11-09 12:55:18.251402000 -0800
-@@ -19,11 +19,11 @@
- CXXFLAGS+= -Wall -g -DWITH_QT -I$(X11BASE)/include
- .endif
- 
--LDFLAGS= -ldialog -lncurses
-+LDFLAGS=
- 
- .if defined(WITH_GTK)
- GTK_LDFLAGS!=pkg-config gtk+-2.0 --libs
--LDFLAGS+= $(GTK_LDFLAGS) -ldialog -lncurses
-+LDFLAGS+= $(GTK_LDFLAGS)
- .endif
- 
- .if defined(WITH_QT)
-@@ -37,7 +37,7 @@
- PARSER_OBJ=	lex.yy.o parser.o
- CFLAGS+= -DYY_NO_UNPUT
- 
--OBJECTS= $(PARSER_OBJ) main.o file.o ncurses_ui.o
-+OBJECTS= $(PARSER_OBJ) main.o file.o
- 
- .if defined(WITH_GTK)
- OBJECTS+= gtk_ui.o
diff --git a/sysutils/thefish/files/patch-main.c b/sysutils/thefish/files/patch-main.c
deleted file mode 100644
index 3d0b82955764..000000000000
--- a/sysutils/thefish/files/patch-main.c
+++ /dev/null
@@ -1,22 +0,0 @@
---- main.c.orig	2015-11-09 12:50:35.505718000 -0800
-+++ main.c	2015-11-09 12:51:47.774569000 -0800
-@@ -49,8 +49,6 @@
- #include "qt_ui.h"
- #endif
- 
--#include "ncurses_ui.h"
--
- static void usage(void);
- static void about(void);
- void purge(void);
-@@ -182,10 +180,6 @@
- 		 argc, argv);
- #endif
- 
--  } else {
--	
--    create_ncurses_ui(my_rc_defaults);
--
-   }
- 
-   return 0;