FreeBSD Bugzilla – Attachment 226459 Details for
Bug 257131
[NEW PORT] devel/py-cadquery-pywrap: C++ binding generator for Python
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Git diff of new port.
py38-cadquery-pywrap-7.5.diff (text/plain), 4.12 KB, created by
Neal Nelson
on 2021-07-14 14:08:16 UTC
(
hide
)
Description:
Git diff of new port.
Filename:
MIME Type:
Creator:
Neal Nelson
Created:
2021-07-14 14:08:16 UTC
Size:
4.12 KB
patch
obsolete
>diff --git a/devel/py-cadquery-pywrap/Makefile b/devel/py-cadquery-pywrap/Makefile >new file mode 100644 >index 000000000000..2b984416d651 >--- /dev/null >+++ b/devel/py-cadquery-pywrap/Makefile >@@ -0,0 +1,41 @@ >+PORTNAME= cadquery-pywrap >+DISTVERSIONPREFIX= occt >+DISTVERSION= 7.5 >+CATEGORIES= devel >+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} >+ >+MAINTAINER= ports@nicandneal.net >+COMMENT= C++ binding generator for python >+ >+LICENSE= APACHE20 >+ >+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pybind11>=2.6:devel/py-pybind11@${PY_FLAVOR} \ >+ pybind11>=2.6:devel/pybind11 \ >+ ${PYTHON_PKGNAMEPREFIX}logzero>0:devel/py-logzero@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}pandas>0:math/py-pandas@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}toml>0:textproc/py-toml@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}joblib>0:devel/py-joblib@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}tqdm>0:misc/py-tqdm@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}Jinja2>=2.11.2:devel/py-Jinja2@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}toposort>0:devel/py-toposort@${PY_FLAVOR} \ >+ llvm${LLVMVER}>0:devel/llvm${LLVMVER} \ >+ ${PYTHON_PKGNAMEPREFIX}cymbal>0:devel/py-cymbal@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}schema>0:devel/py-schema@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \ >+ ${PYTHON_PKGNAMEPREFIX}path>0:devel/py-path@${PY_FLAVOR} >+ >+USES= python:3.6+,run >+ >+USE_GITHUB= yes >+GH_ACCOUNT= CadQuery >+GH_PROJECT= pywrap >+GH_TAGNAME= f8869e5 >+ >+USE_PYTHON= distutils autoplist >+LLVMVER= 10 >+ >+post-patch: >+ @${REINPLACE_CMD} -e 's|LLVMVER|${LLVMVER}|g' ${WRKSRC}/bindgen/__init__.py >+ @${REINPLACE_CMD} -e 's|PYTHONVER|${PYTHON_VER}|g' ${WRKSRC}/bindgen/__init__.py >+ >+.include <bsd.port.mk> >diff --git a/devel/py-cadquery-pywrap/distinfo b/devel/py-cadquery-pywrap/distinfo >new file mode 100644 >index 000000000000..e8c680fe111e >--- /dev/null >+++ b/devel/py-cadquery-pywrap/distinfo >@@ -0,0 +1,3 @@ >+TIMESTAMP = 1623770878 >+SHA256 (CadQuery-pywrap-occt7.5-f8869e5_GH0.tar.gz) = 5c2140fc3d6e1137b78c1473cbbe00af0982e4a492e52ae0b3dfc449507efd3d >+SIZE (CadQuery-pywrap-occt7.5-f8869e5_GH0.tar.gz) = 5581254 >diff --git a/devel/py-cadquery-pywrap/files/patch-bindgen_____init____.py b/devel/py-cadquery-pywrap/files/patch-bindgen_____init____.py >new file mode 100644 >index 000000000000..85cb32ed2543 >--- /dev/null >+++ b/devel/py-cadquery-pywrap/files/patch-bindgen_____init____.py >@@ -0,0 +1,9 @@ >+--- bindgen/__init__.py.orig 2021-06-15 15:36:14 UTC >++++ bindgen/__init__.py >+@@ -1,3 +1,6 @@ >++import sys >++sys.path.append("/usr/local/llvmLLVMVER/lib/pythonPYTHONVER/site-packages") >++ >+ from functools import reduce >+ from operator import add >+ from re import match >diff --git a/devel/py-cadquery-pywrap/files/patch-bindgen_utils.py b/devel/py-cadquery-pywrap/files/patch-bindgen_utils.py >new file mode 100644 >index 000000000000..1f6101752bb1 >--- /dev/null >+++ b/devel/py-cadquery-pywrap/files/patch-bindgen_utils.py >@@ -0,0 +1,16 @@ >+--- bindgen/utils.py.orig 2021-01-03 16:03:09 UTC >++++ bindgen/utils.py >+@@ -59,10 +59,12 @@ def init_clang(path=None): >+ pass >+ elif platform.startswith('win'): >+ path = conda_prefix / 'Library' / 'bin' / 'libclang.dll' >+- elif platform.startswith('linux') or platform.startswith('freebsd'): >++ elif platform.startswith('linux'): >+ path = conda_prefix / 'lib' / 'libclang.so' >+ elif platform.startswith('darwin'): >+ path = conda_prefix / 'lib' / 'libclang.dylib' >++ elif platform.startswith('freebsd'): >++ Config.set_library_file(Path("/usr") / "local" / "llvm90" / 'lib' / 'libclang.so') >+ >+ Config.set_library_file(path) >+ >diff --git a/devel/py-cadquery-pywrap/pkg-descr b/devel/py-cadquery-pywrap/pkg-descr >new file mode 100644 >index 000000000000..3c585b166176 >--- /dev/null >+++ b/devel/py-cadquery-pywrap/pkg-descr >@@ -0,0 +1,6 @@ >+PyWrap is a C++ binding generator using pybind11, libclang and jinja. >+The main goal of this project is to automatically generate bindings for OCCT7.3 >+and beyond without single manual edit of the generated code. >+Once finished the project will be usable as a general C++ binding generator. >+ >+WWW: https://github.com/CadQuery/pywrap
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 257131
:
226394
|
226459
|
227451
|
227596