git: 32a412c3537b - main - cad/horizon-eda: Fix build broken after the recent opencascade update

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Tue, 16 Nov 2021 01:15:07 UTC
The branch main has been updated by yuri:

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

commit 32a412c3537badee29321168880590b773b88e85
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2021-11-16 01:11:11 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2021-11-16 01:15:05 +0000

    cad/horizon-eda: Fix build broken after the recent opencascade update
    
    Also change to llvm-12 (from llvm-10).
    
    Reported by:    fallout
---
 cad/horizon-eda/Makefile | 8 ++++++--
 cad/horizon-eda/distinfo | 4 +++-
 2 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/cad/horizon-eda/Makefile b/cad/horizon-eda/Makefile
index 1da05dafc3f7..4e9f0c71ef51 100644
--- a/cad/horizon-eda/Makefile
+++ b/cad/horizon-eda/Makefile
@@ -4,6 +4,9 @@ DISTVERSION=	2.1.0
 PORTREVISION=	1
 CATEGORIES=	cad
 
+PATCH_SITES=	https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/
+PATCHFILES=	0d801d4807cbed405998688b361bf0543207f1b1.patch:-p1 # fixes opencascade-7.6.0 compatibility, see https://github.com/horizon-eda/horizon/issues/623
+
 MAINTAINER=	yuri@FreeBSD.org
 COMMENT=	EDA package for printed circuit board design
 
@@ -25,15 +28,16 @@ LIB_DEPENDS=	libcurl.so:ftp/curl \
 		libzmq.so:net/libzmq4
 
 USES=		gmake gnome localbase pkgconfig python:build sqlite # compiler:c++17-lang
+USE_GNOME=	atkmm gdkpixbuf2 gtkmm30 librsvg2
+
 USE_GITHUB=	yes
 GH_PROJECT=	horizon
-USE_GNOME=	atkmm gdkpixbuf2 gtkmm30 librsvg2
 
 MAKE_ARGS=	DEBUGFLAGS= OPTIMIZE=
 
 BINARY_ALIAS=	python3=${PYTHON_CMD}
 
-LLVM_VER=	10 # workaround for bug#253551
+LLVM_VER=	12 # workaround for bug#253551
 BUILD_DEPENDS+=	clang${LLVM_VER}:devel/llvm${LLVM_VER}
 CPP=		clang-cpp${LLVM_VER}
 CC=		clang${LLVM_VER}
diff --git a/cad/horizon-eda/distinfo b/cad/horizon-eda/distinfo
index cd99d6795f21..e978eeef3a49 100644
--- a/cad/horizon-eda/distinfo
+++ b/cad/horizon-eda/distinfo
@@ -1,3 +1,5 @@
-TIMESTAMP = 1631174790
+TIMESTAMP = 1637022213
 SHA256 (horizon-eda-horizon-v2.1.0_GH0.tar.gz) = 2ba7a64ef0d8f22ad12e6a5a9c108f865eeb468f954f51ee5fbc03e6a847549a
 SIZE (horizon-eda-horizon-v2.1.0_GH0.tar.gz) = 3140793
+SHA256 (0d801d4807cbed405998688b361bf0543207f1b1.patch) = 64c0200aaf39e967d26d41634fea17db32f779449cd0a05197446e1a973b4d1f
+SIZE (0d801d4807cbed405998688b361bf0543207f1b1.patch) = 2501