git: 2e316771790f - main - editors/fxite: undeprecate the port and assume maintainership

From: Alexey Dokuchaev <danfe_at_FreeBSD.org>
Date: Wed, 20 Dec 2023 07:27:16 UTC
The branch main has been updated by danfe:

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

commit 2e316771790fcf86936ec9453ea762826951b025
Author:     Alexey Dokuchaev <danfe@FreeBSD.org>
AuthorDate: 2023-12-20 07:26:12 +0000
Commit:     Alexey Dokuchaev <danfe@FreeBSD.org>
CommitDate: 2023-12-20 07:26:12 +0000

    editors/fxite: undeprecate the port and assume maintainership
    
    - Remove (broken) option to build against Fox 1.7: its API is
      too unstable and diverged significantly from what this code
      expects over past ten years
    - Disable NLS support which is rudimentary and no translation
      files were actually provided
    - GC needless CXXFLAGS and LDFLAGS adjustments, amend COMMENT
---
 editors/fxite/Makefile | 39 ++++++++++++---------------------------
 1 file changed, 12 insertions(+), 27 deletions(-)

diff --git a/editors/fxite/Makefile b/editors/fxite/Makefile
index cc8c2f2980ef..d581117f6c7a 100644
--- a/editors/fxite/Makefile
+++ b/editors/fxite/Makefile
@@ -1,50 +1,35 @@
 PORTNAME=	fxite
-DISTVERSIONPREFIX=	FXITE-
+DISTVERSIONPREFIX=	${PORTNAME:tu}-
 DISTVERSION=	0_92
 PORTREVISION=	4
 CATEGORIES=	editors
 
-MAINTAINER=	ports@FreeBSD.org
-COMMENT=	Advanced cross-platform text editor
+MAINTAINER=	danfe@FreeBSD.org
+COMMENT=	Advanced customizable graphical text editor
 WWW=		https://github.com/yetanothergeek/fxite
 
 LICENSE=	GPLv3
 LICENSE_FILE=	${WRKSRC}/COPYING
 
-DEPRECATED=	Upstream last release was in 2013
-EXPIRATION_DATE=	2024-01-16
+LIB_DEPENDS=	libFOX-1.6.so:x11-toolkits/fox16
 
-USES=		autoreconf desktop-file-utils gettext gmake lua:52 pkgconfig
+USES=		autoreconf desktop-file-utils gmake lua:52 pkgconfig
 USE_GITHUB=	yes
 GH_ACCOUNT=	yetanothergeek
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--with-system-lua \
+CONFIGURE_ARGS=	--disable-nls --with-system-lua \
 		--with-lua-pkg=lua-${LUA_VER}
-
-CXXFLAGS+=	-fPIC
-LDFLAGS+=	-L${LOCALBASE}/lib -lintl
+CONFIGURE_ENV=	FOX_CFLAGS="$$(fox-config --cflags)" \
+		FOX_LIBS="$$(fox-config --libs)" \
+		RESWRAP="${LOCALBASE}/bin/reswrap"
 
 PLIST_FILES=	bin/fxite \
 		share/applications/fxite.desktop \
 		share/pixmaps/fxite.xpm
 
-OPTIONS_DEFAULT=	FOX16
-OPTIONS_SINGLE=		TOOLKIT
-OPTIONS_SINGLE_TOOLKIT=	FOX16 FOX17
-
-FOX16_DESC=		Fox 1.6 GUI toolkit support
-FOX17_DESC=		Fox 1.7 GUI toolkit support
-TOOLKIT_DESC=		GUI toolkit
-
-FOX16_LIB_DEPENDS=	libFOX-1.6.so:x11-toolkits/fox16
-FOX16_CONFIGURE_ENV=	FOX_CFLAGS="$$(fox-config --cflags)" \
-			FOX_LIBS="$$(fox-config --libs)" \
-			RESWRAP="${LOCALBASE}/bin/reswrap"
-FOX17_BROKEN=		Fails to build: recorder.cpp:104:9: error: no matching member function for call to 'prepend'
-FOX17_LIB_DEPENDS=	libFOX-1.7.so:x11-toolkits/fox17
-FOX17_CONFIGURE_ENV=	FOX_CFLAGS="$$(pkgconf fox17 --cflags)" \
-			FOX_LIBS="$$(pkgconf fox17 --libs) -lX11" \
-			RESWRAP="${LOCALBASE}/bin/fox-1.7/reswrap"
+post-patch:
+	@${ECHO_CMD} 'AM_CPPFLAGS += $$(X11_CFLAGS)' \
+		>> ${WRKSRC}/jef/Makefile.am
 
 .include <bsd.port.mk>