git: a7091bb3e60a - main - x11-wm/compiz-plugins-main: fix build with NLS=OFF, move to Codeberg

From: Älven <alven_at_FreeBSD.org>
Date: Thu, 28 Aug 2025 09:35:45 UTC
The branch main has been updated by alven:

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

commit a7091bb3e60a96eacb72742995689e2aa23b7562
Author:     Chris Hutchinson <portmaster@BSDforge.com>
AuthorDate: 2025-07-02 01:52:32 +0000
Commit:     Älven <alven@FreeBSD.org>
CommitDate: 2025-08-28 09:33:56 +0000

    x11-wm/compiz-plugins-main: fix build with NLS=OFF, move to Codeberg
    
    * Fix devel/compiz-bcop pkgconfig data move
    * Use MY_DEPENDS and assign it to both BUILD_DEPENDS and RUN_DEPENDS
      https://docs.freebsd.org/en/books/porters-handbook/makefiles/#makefile-run_depends
    
    PR:             235715
    Approved by:    yuri@ (Mentor)
---
 x11-wm/compiz-plugins-main/Makefile | 38 +++++++++++++++++++++----------------
 x11-wm/compiz-plugins-main/distinfo |  5 +++--
 2 files changed, 25 insertions(+), 18 deletions(-)

diff --git a/x11-wm/compiz-plugins-main/Makefile b/x11-wm/compiz-plugins-main/Makefile
index 2a1fcf1494be..763711f5398c 100644
--- a/x11-wm/compiz-plugins-main/Makefile
+++ b/x11-wm/compiz-plugins-main/Makefile
@@ -1,41 +1,47 @@
 PORTNAME=	compiz-plugins-main
-PORTVERSION=	0.8.8
-PORTREVISION=	12
+DISTVERSION=	0.8.8
+PORTREVISION=	13
 CATEGORIES=	x11-wm
-MASTER_SITES=	https://BSDforge.com/projects/source/x11-wm/compiz-plugins-main/
+MASTER_SITES=	https://codeberg.org/BSDforge/${PORTNAME}/archive/${DISTVERSIONFULL}${EXTRACT_SUFX}?dummy=/
 
 MAINTAINER=	portmaster@BSDforge.com
 COMMENT=	Plugins for Compiz Composite Window Manager
-WWW=		https://gitlab.com/compiz/compiz-plugins-main
+WWW=		https://codeberg.org/BSDforge/${PORTNAME}/
 
 LICENSE=	GPLv2+
 LICENSE_FILE=	${WRKSRC}/COPYING
 
+BUILD_DEPENDS=	${MY_DEPENDS}
 LIB_DEPENDS=	libcairo.so:graphics/cairo \
+		libharfbuzz.so:print/harfbuzz \
 		libpangocairo-1.0.so:x11-toolkits/pango \
 		libstartup-notification-1.so:x11/startup-notification
-BUILD_DEPENDS=	${LOCALBASE}/libdata/pkgconfig/compiz.pc:x11-wm/compiz \
-		${LOCALBASE}/libdata/pkgconfig/bcop.pc:devel/compiz-bcop
-RUN_DEPENDS:=	${BUILD_DEPENDS}
+MY_DEPENDS=	${LOCALBASE}/share/pkgconfig/bcop.pc:devel/compiz-bcop \
+		${LOCALBASE}/libdata/pkgconfig/compiz.pc:x11-wm/compiz
+RUN_DEPENDS=	${MY_DEPENDS}
 
-GNU_CONFIGURE=	yes
-INSTALL_TARGET=	install-strip
 USES=		gettext-tools gl gmake gnome jpeg libtool:keepla localbase:ldflags pathfix \
-		pkgconfig tar:bzip2 xorg
+		pkgconfig xorg
 USE_CSTD=	gnu89
 USE_GL=		glu
-USE_GNOME=	intltool libxslt
-USE_XORG=	ice sm x11 xcomposite xdamage xext xfixes xinerama xorgproto xrandr xrender
-USE_LDCONFIG=	yes
+USE_GNOME=	glib20 intltool libxslt
+USE_XORG=	ice sm x11 xcomposite xdamage xext xfixes xinerama xorgproto \
+		xrandr xrender
+
+GNU_CONFIGURE=	yes
+CONFIGURE_ARGS=	--disable-schemas
+
+INSTALL_TARGET=	install-strip
 
 # Fix build with clang11
 CFLAGS+=	-fcommon
 
-CONFIGURE_ARGS=	--disable-schemas
+WRKSRC=		${WRKDIR}/${PORTNAME}
 
-OPTIONS_DEFINE=		NLS
+OPTIONS_DEFINE=	NLS
+OPTIONS_SUB=	yes
 
-NLS_CONFIGURE_ENABLE=	nls
 NLS_USES=		gettext-runtime
+NLS_CONFIGURE_ENABLE=	nls
 
 .include <bsd.port.mk>
diff --git a/x11-wm/compiz-plugins-main/distinfo b/x11-wm/compiz-plugins-main/distinfo
index db566a6bbda9..fcd032298638 100644
--- a/x11-wm/compiz-plugins-main/distinfo
+++ b/x11-wm/compiz-plugins-main/distinfo
@@ -1,2 +1,3 @@
-SHA256 (compiz-plugins-main-0.8.8.tar.bz2) = c79278b5369660d6274661a2c196f1cb016ef2b5d34e30bd18dbaeb241bee248
-SIZE (compiz-plugins-main-0.8.8.tar.bz2) = 1230627
+TIMESTAMP = 1751419715
+SHA256 (compiz-plugins-main-0.8.8.tar.gz) = 2b322a3009857563cc83d6199e5085cebf251b9a2e87b1399a423e8f7fedee16
+SIZE (compiz-plugins-main-0.8.8.tar.gz) = 1869768