git: ad34a6142b80 - main - net-p2p/gtk-gnutella: fix packaging on powerpc*

From: Piotr Kubaj <pkubaj_at_FreeBSD.org>
Date: Mon, 20 Dec 2021 02:03:39 UTC
The branch main has been updated by pkubaj:

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

commit ad34a6142b80075d66ec2c6feb8149ece4051bbc
Author:     Piotr Kubaj <pkubaj@FreeBSD.org>
AuthorDate: 2021-12-20 01:56:48 +0000
Commit:     Piotr Kubaj <pkubaj@FreeBSD.org>
CommitDate: 2021-12-20 01:56:48 +0000

    net-p2p/gtk-gnutella: fix packaging on powerpc*
    
    ===> Checking for items in STAGEDIR missing from pkg-plist
    Error: Orphaned: %%DATADIR%%/powerpc-%%OPSYS%%/gtk-gnutella.nm
    ===> Checking for items in pkg-plist which are not in STAGEDIR
    Error: Missing: %%DATADIR%%/%%ARCH%%-%%OPSYS%%/gtk-gnutella.nm
    ===> Error: Plist issues found.
---
 net-p2p/gtk-gnutella/Makefile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/net-p2p/gtk-gnutella/Makefile b/net-p2p/gtk-gnutella/Makefile
index d20746d75910..27fba3fda9e2 100644
--- a/net-p2p/gtk-gnutella/Makefile
+++ b/net-p2p/gtk-gnutella/Makefile
@@ -28,7 +28,7 @@ CONFIGURE_ARGS=	-O -Dyacc='byacc' \
 MAKE_ARGS=	INSTALL_PREFIX="${STAGEDIR}"
 INSTALL_TARGET=	install install.man
 
-PLIST_SUB=	ARCH="${ARCH}" OPSYS="${OPSYS:tl}"
+PLIST_SUB=	ARCH="${ARCH:C/powerpc.*/powerpc/}" OPSYS="${OPSYS:tl}"
 
 OPTIONS_DEFINE=		DBUS DEBUG GUI IPV6 NLS PORTABILITY TLS
 OPTIONS_DEFAULT=	GUI TLS