View | Details | Raw Unified | Return to bug 257131 | Differences between
and this patch

Collapse All | Expand All

(-)b/devel/py-cadquery-pywrap/Makefile (+41 lines)
Added Link Here
1
PORTNAME=	cadquery-pywrap
2
DISTVERSIONPREFIX=	occt
3
DISTVERSION=	7.5
4
CATEGORIES=	devel
5
PKGNAMEPREFIX=  ${PYTHON_PKGNAMEPREFIX}
6
7
MAINTAINER=	ports@nicandneal.net
8
COMMENT=	C++ binding generator for python
9
10
LICENSE=	APACHE20
11
12
RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}pybind11>=2.6:devel/py-pybind11@${PY_FLAVOR} \
13
		pybind11>=2.6:devel/pybind11 \
14
		${PYTHON_PKGNAMEPREFIX}logzero>0:devel/py-logzero@${PY_FLAVOR} \
15
		${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \
16
		${PYTHON_PKGNAMEPREFIX}toml>0:textproc/py-toml@${PY_FLAVOR} \
17
		${PYTHON_PKGNAMEPREFIX}joblib>0:devel/py-joblib@${PY_FLAVOR} \
18
		${PYTHON_PKGNAMEPREFIX}tqdm>0:misc/py-tqdm@${PY_FLAVOR} \
19
		${PYTHON_PKGNAMEPREFIX}Jinja2>=2.11.2:devel/py-Jinja2@${PY_FLAVOR} \
20
		${PYTHON_PKGNAMEPREFIX}toposort>0:devel/py-toposort@${PY_FLAVOR} \
21
		llvm${LLVMVER}>0:devel/llvm${LLVMVER} \
22
		${PYTHON_PKGNAMEPREFIX}cymbal>0:devel/py-cymbal@${PY_FLAVOR} \
23
		${PYTHON_PKGNAMEPREFIX}schema>0:devel/py-schema@${PY_FLAVOR} \
24
		${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \
25
		${PYTHON_PKGNAMEPREFIX}path>0:devel/py-path@${PY_FLAVOR}
26
27
USES=	python:3.6+,run
28
29
USE_GITHUB=	yes
30
GH_ACCOUNT=	CadQuery
31
GH_PROJECT=	pywrap
32
GH_TAGNAME=	f8869e5
33
34
USE_PYTHON=	distutils autoplist
35
LLVMVER=	10
36
37
post-patch:
38
	@${REINPLACE_CMD} -e 's|LLVMVER|${LLVMVER}|g' ${WRKSRC}/bindgen/__init__.py
39
	@${REINPLACE_CMD} -e 's|PYTHONVER|${PYTHON_VER}|g' ${WRKSRC}/bindgen/__init__.py
40
41
.include <bsd.port.mk>
(-)b/devel/py-cadquery-pywrap/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1623770878
2
SHA256 (CadQuery-pywrap-occt7.5-f8869e5_GH0.tar.gz) = 5c2140fc3d6e1137b78c1473cbbe00af0982e4a492e52ae0b3dfc449507efd3d
3
SIZE (CadQuery-pywrap-occt7.5-f8869e5_GH0.tar.gz) = 5581254
(-)b/devel/py-cadquery-pywrap/files/patch-bindgen_____init____.py (+9 lines)
Added Link Here
1
--- bindgen/__init__.py.orig	2021-06-15 15:36:14 UTC
2
+++ bindgen/__init__.py
3
@@ -1,3 +1,6 @@
4
+import sys
5
+sys.path.append("/usr/local/llvmLLVMVER/lib/pythonPYTHONVER/site-packages")
6
+
7
 from functools import reduce
8
 from operator import add
9
 from re import match
(-)b/devel/py-cadquery-pywrap/files/patch-bindgen_utils.py (+16 lines)
Added Link Here
1
--- bindgen/utils.py.orig	2021-01-03 16:03:09 UTC
2
+++ bindgen/utils.py
3
@@ -59,10 +59,12 @@ def init_clang(path=None):
4
             pass
5
         elif platform.startswith('win'):
6
             path = conda_prefix / 'Library' / 'bin' / 'libclang.dll'
7
-        elif platform.startswith('linux') or platform.startswith('freebsd'):
8
+        elif platform.startswith('linux'):
9
             path = conda_prefix / 'lib' / 'libclang.so'
10
         elif platform.startswith('darwin'):
11
             path = conda_prefix / 'lib' / 'libclang.dylib'
12
+        elif platform.startswith('freebsd'):
13
+            Config.set_library_file(Path("/usr") / "local" / "llvm90" / 'lib' / 'libclang.so')
14
         
15
         Config.set_library_file(path)
16
         
(-)b/devel/py-cadquery-pywrap/pkg-descr (+6 lines)
Added Link Here
1
PyWrap is a C++ binding generator using pybind11, libclang and jinja.
2
The main goal of this project is to automatically generate bindings for OCCT7.3
3
and beyond without single manual edit of the generated code.
4
Once finished the project will be usable as a general C++ binding generator.
5
6
WWW: https://github.com/CadQuery/pywrap

Return to bug 257131