git: 4ba71b5555fa - main - editors/gmanedit: Fix build with llvm15

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Fri, 09 Jun 2023 16:55:12 UTC
The branch main has been updated by bofh:

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

commit 4ba71b5555fa653188a32a9d2a3269640c73baab
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-06-09 13:53:58 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-06-09 16:55:03 +0000

    editors/gmanedit: Fix build with llvm15
    
    - Add LICENSE GPLv2
    - Utilize USES=localbase
    - Pet portclippy
    - Adpot port
---
 editors/gmanedit/Makefile | 28 +++++++++++++++++++++-------
 1 file changed, 21 insertions(+), 7 deletions(-)

diff --git a/editors/gmanedit/Makefile b/editors/gmanedit/Makefile
index e85a7ccab3fb..912959fd6170 100644
--- a/editors/gmanedit/Makefile
+++ b/editors/gmanedit/Makefile
@@ -1,20 +1,34 @@
 PORTNAME=	gmanedit
 PORTVERSION=	0.4.2
-PORTREVISION=	8
+PORTREVISION=	9
 CATEGORIES=	editors gnome
 MASTER_SITES=	SF/${PORTNAME}2/${PORTNAME}/${PORTNAME}-${PORTVERSION}
 
-MAINTAINER=	ports@FreeBSD.org
+MAINTAINER=	bofh@FreeBSD.org
 COMMENT=	GNOME manpages editor
 WWW=		https://sourceforge.net/projects/gmanedit2/
 
-USES=		gettext gmake gnome pathfix pkgconfig
-USE_GNOME=	gtk20
+LICENSE=	GPLv2
+LICENSE_FILE=	${WRKSRC}/COPYING
+
+LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
+	libfreetype.so:print/freetype2 \
+	libharfbuzz.so:print/harfbuzz
+
+USES=		gettext gmake gnome localbase:ldflags pathfix pkgconfig
+USE_GNOME=	cairo gdkpixbuf2 gtk20
+
 GNU_CONFIGURE=	yes
-CPPFLAGS+=	-I${LOCALBASE}/include
-LDFLAGS+=	-L${LOCALBASE}/lib -lz
+
+LDFLAGS+=	-lz
+
+.include <bsd.port.pre.mk>
+
+.if ${OPSYS} == FreeBSD && ( ${OSVERSION} >= 1400079 || ( ${OSVERSION} >= 1302505 && ${OSVERSION} < 1400000 ))
+CFLAGS+=	-Wno-error=int-conversion
+.endif
 
 post-patch:
 	@${REINPLACE_CMD} -e '/<argz\.h>/d' ${WRKSRC}/src/callbacks.c
 
-.include <bsd.port.mk>
+.include <bsd.port.post.mk>