PORTNAME=	gnome-text-editor
PORTVERSION=	51.0
PORTREVISION=	0
CATEGORIES=	editors gnome
MASTER_SITES=	GNOME
DIST_SUBDIR=	gnome

MAINTAINER=	ports@MidnightBSD.org
COMMENT=	Small but powerful text editor for the GNOME Desktop Environment
WWW=		https://apps.gnome.org/TextEditor/

LICENSE=	gpl3+
LICENSE_FILE=	${WRKSRC}/COPYING

BUILD_DEPENDS=	itstool>0:textproc/itstool
LIB_DEPENDS=	libenchant-2.so:textproc/enchant2 \
		libicudata.so:devel/icu \
		libpcre2-8.so:devel/pcre2 \
		libspelling-1.so:x11-toolkits/libspelling \
		libeditorconfig.so:editors/editorconfig-core-c

USES=		compiler:c11 desktop-file-utils gettext gnome localbase meson \
		pkgconfig tar:xz
USE_CSTD=	c11
USE_GNOME=	cairo glib20 gtk40 gtk-update-icon-cache gtksourceview5 libadwaita
INSTALLS_ICONS=	yes
GLIB_SCHEMAS=	org.gnome.TextEditor.gschema.xml

PORTSCOUT=	limit:^51\.

.include <bsd.port.mk>
