git: 1695f3b0359c - main - editors/gnome-text-editor: fix dependencies

From: Jan Beich <jbeich_at_FreeBSD.org>
Date: Mon, 26 Sep 2022 20:59:03 UTC
The branch main has been updated by jbeich:

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

commit 1695f3b0359c984831026c3e3529fa7f4e74ac32
Author:     Jan Beich <jbeich@FreeBSD.org>
AuthorDate: 2022-09-26 20:38:51 +0000
Commit:     Jan Beich <jbeich@FreeBSD.org>
CommitDate: 2022-09-26 20:55:53 +0000

    editors/gnome-text-editor: fix dependencies
    
    src/editorconfig/libeditorconfig/meson.build:9:0: ERROR: Dependency "libpcre" not found, tried pkgconfig
    
    ====> Running Q/A tests (stage-qa)
    Error: /usr/local/bin/gnome-text-editor is linked to /usr/local/lib/libcairo.so.2 from graphics/cairo but it is not declared as a dependency
    Warning: you need USE_GNOME+=cairo
    Error: /usr/local/bin/gnome-text-editor is linked to /usr/local/lib/libpcre.so.1 from devel/pcre but it is not declared as a dependency
    Warning: you need LIB_DEPENDS+=libpcre.so:devel/pcre
    
    PR:             266466
    Reported by:    antoine (via exp-run)
    Regressed by:   https://gitlab.gnome.org/GNOME/glib/-/commit/8d5a44dc8f36
---
 editors/gnome-text-editor/Makefile | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/editors/gnome-text-editor/Makefile b/editors/gnome-text-editor/Makefile
index cb6ff1baba06..3dd92efd36f6 100644
--- a/editors/gnome-text-editor/Makefile
+++ b/editors/gnome-text-editor/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	gnome-text-editor
 PORTVERSION=	42.2
+PORTREVISION=	1
 CATEGORIES=	editors gnome
 MASTER_SITES=	GNOME/sources/${PORTNAME}/${PORTVERSION:C/^([0-9]+)\..*/\1/}
 DIST_SUBDIR=	gnome
@@ -14,12 +15,12 @@ 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
+		libpcre.so:devel/pcre
 
 USES=		compiler:c11 desktop-file-utils gettext gnome localbase meson \
 		pkgconfig tar:xz
 USE_CSTD=	c11
-USE_GNOME=	gtk40 gtksourceview5 libadwaita
+USE_GNOME=	cairo gtk40 gtksourceview5 libadwaita
 GLIB_SCHEMAS=	org.gnome.TextEditor.gschema.xml
 
 PORTSCOUT=	limitw:1,even