git: b29def853d25 - main - x11-toolkits/p5-Gtk2: Unbreak

From: Muhammad Moinur Rahman <bofh_at_FreeBSD.org>
Date: Wed, 20 Dec 2023 15:14:53 UTC
The branch main has been updated by bofh:

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

commit b29def853d252e2db4a184a278b8b09ecc0b476c
Author:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
AuthorDate: 2023-12-20 13:42:41 +0000
Commit:     Muhammad Moinur Rahman <bofh@FreeBSD.org>
CommitDate: 2023-12-20 15:14:48 +0000

    x11-toolkits/p5-Gtk2: Unbreak
    
    - Add missing dependencies
    - Pet portclippy
---
 x11-toolkits/p5-Gtk2/Makefile | 9 ++++++++-
 1 file changed, 8 insertions(+), 1 deletion(-)

diff --git a/x11-toolkits/p5-Gtk2/Makefile b/x11-toolkits/p5-Gtk2/Makefile
index 7b64fb80d99d..c4b1196b873d 100644
--- a/x11-toolkits/p5-Gtk2/Makefile
+++ b/x11-toolkits/p5-Gtk2/Makefile
@@ -17,16 +17,23 @@ BUILD_DEPENDS=	p5-Cairo>=1:graphics/p5-Cairo \
 		p5-ExtUtils-PkgConfig>=1.03:devel/p5-ExtUtils-PkgConfig \
 		p5-Glib>=1.280:devel/p5-Glib \
 		p5-Pango>=1.220:x11-toolkits/p5-Pango
+LIB_DEPENDS=	libfontconfig.so:x11-fonts/fontconfig \
+		libfreetype.so:print/freetype2 \
+		libharfbuzz.so:print/harfbuzz
 RUN_DEPENDS=	p5-Cairo>=1:graphics/p5-Cairo \
 		p5-Glib>=1.280:devel/p5-Glib \
 		p5-Pango>=1.220:x11-toolkits/p5-Pango
 
 USES=		gmake gnome perl5
+USE_GNOME=	cairo gdkpixbuf2 gtk20 pango
 USE_PERL5=	configure
-USE_GNOME=	gtk20 pango
 
 CONFIGURE_ENV=	FORCE_MAKE_CMD=yes
 
+post-patch:
+	${REINPLACE_CMD} -e 's|"gtk+-2.0.*|"gtk+-2.0");|g' \
+		${WRKSRC}/Makefile.PL
+
 post-install:
 	${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Gtk2/Gtk2.so