git: d09cc80b42e2 - main - cad/oregano: Fix build by updating waf

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Sun, 09 Jun 2024 04:00:04 UTC
The branch main has been updated by yuri:

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

commit d09cc80b42e2ca0c2134c47ef15546a45172f336
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2024-06-09 03:59:09 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2024-06-09 03:59:57 +0000

    cad/oregano: Fix build by updating waf
    
    Reported by:    fallout
---
 cad/oregano/Makefile | 6 ++++++
 cad/oregano/distinfo | 4 +++-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/cad/oregano/Makefile b/cad/oregano/Makefile
index 5c398c2210a1..dfbda1481c27 100644
--- a/cad/oregano/Makefile
+++ b/cad/oregano/Makefile
@@ -3,6 +3,9 @@ DISTVERSIONPREFIX=	v
 DISTVERSION=	0.84.43
 PORTREVISION=	6
 CATEGORIES=	cad
+MASTER_SITES=	https://waf.io/:new_waf # for Python-3.11 compatibility
+DISTFILES=	waf-2.1.1:new_waf
+EXTRACT_ONLY=	${GH_ACCOUNT}-${GH_PROJECT}-${DISTVERSIONFULL}_GH0${EXTRACT_SUFX}
 
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	Schematic capture and circuit simulator
@@ -28,6 +31,9 @@ GLIB_SCHEMAS=	io.ahoi.oregano.gschema.xml
 CFLAGS+=	-Wno-error=incompatible-function-pointer-types
 .endif
 
+post-extract: # use newer waf that is Python-3.11 compatible
+	@${CP} ${DISTDIR}/waf-2.1.1 ${WRKSRC}/waf
+
 post-stage:
 	@cd ${STAGEDIR}${PREFIX} && ${STRIP_CMD} bin/oregano bin/microtests
 	${RM} ${STAGEDIR}${PREFIX}/share/glib-2.0/schemas/gschemas.compiled
diff --git a/cad/oregano/distinfo b/cad/oregano/distinfo
index e44b6be18e5c..f8659b58a412 100644
--- a/cad/oregano/distinfo
+++ b/cad/oregano/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1579937881
+TIMESTAMP = 1717897892
+SHA256 (waf-2.1.1) = 2e66e01fd564f09106419389119c78143327c89a35f26ee3ed376f0ee410a14d
+SIZE (waf-2.1.1) = 108070
 SHA256 (drahnr-oregano-v0.84.43_GH0.tar.gz) = c62442f2fdb01899f6f76b13099a043c563e43de9b356e6f1b18974d70a07111
 SIZE (drahnr-oregano-v0.84.43_GH0.tar.gz) = 1881499