FreeBSD Bugzilla – Attachment 206761 Details for
Bug 239990
devel/llvm90 and devel/llvm80: Add option to install python bindings to libclang
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
python bindings v2
pyclang.diff (text/plain), 2.55 KB, created by
chardon.frederic
on 2019-08-21 19:30:18 UTC
(
hide
)
Description:
python bindings v2
Filename:
MIME Type:
Creator:
chardon.frederic
Created:
2019-08-21 19:30:18 UTC
Size:
2.55 KB
patch
obsolete
>diff --git a/devel/llvm90/Makefile b/devel/llvm90/Makefile >index 49eb9322f6ca..946c4bc3a5e5 100644 >--- a/devel/llvm90/Makefile >+++ b/devel/llvm90/Makefile >@@ -66,10 +66,10 @@ CMAKE_ARGS+= -DPYTHON_EXECUTABLE=${PYTHON_CMD} \ > CFLAGS+= -DNDEBUG > CXXFLAGS+= -DNDEBUG > >-OPTIONS_DEFINE= BE_AMDGPU CLANG DOCS EXTRAS LIT LLD LLDB >+OPTIONS_DEFINE= BE_AMDGPU CLANG DOCS EXTRAS LIT LLD LLDB PYCLANG > OPTIONS_DEFINE_amd64= COMPILER_RT GOLD OPENMP > OPTIONS_DEFINE_i386= COMPILER_RT OPENMP >-OPTIONS_DEFAULT= BE_AMDGPU BE_STANDARD CLANG EXTRAS LIT LLD LLDB >+OPTIONS_DEFAULT= BE_AMDGPU BE_STANDARD CLANG EXTRAS LIT LLD LLDB PYCLANG > OPTIONS_DEFAULT_amd64= COMPILER_RT GOLD OPENMP > OPTIONS_DEFAULT_i386= COMPILER_RT OPENMP > OPTIONS_SINGLE= BACKENDS >@@ -125,6 +125,10 @@ LLDB_PORTDOCS= lldb > LLDB_VARS= _USES_PYTHON=python:3.6+ > OPENMP_DESC= Install libomp, the LLVM OpenMP runtime library > OPENMP_DISTFILES= openmp-${DISTVERSION}.src${EXTRACT_SUFX} >+PYCLANG_DESC= Install python bindings to libclang >+PYCLANG_IMPLIES= CLANG >+PYCLANG_VARS= _USES_PYTHON=python:3.6+ >+PYCLANG_CMAKE_ON= -DCLANG_PYTHON_BINDINGS_VERSIONS=${PYTHON_VER} > > .if defined(WITH_DEBUG) > CMAKE_BUILD_TYPE= RelWithDebInfo >@@ -262,6 +266,10 @@ PORTDOCS+= lld > COMMANDS+= ${LLDB_COMMANDS} > .endif > >+.if ${PORT_OPTIONS:MPYCLANG} >+PYCLANG_PATTERN= (clang\/(__init__|cindex|enumerations).py$) >+.endif >+ > .include <bsd.port.pre.mk> > .include "${.CURDIR}/Makefile.COMMANDS" > >@@ -566,7 +574,7 @@ build-plist: > -e 's|\([^0-9]\)${LLVM_MAJOR}\([^0-9]\)|\1%%LLVM_MAJOR%%\2|' \ > | ${SORT} >> ${PLIST}.tmp > ${AWK} '{ \ >- if ($$0 ~ /${CLANG_PATTERN}/ && $$0 !~ /(omp.h|ompt.h|${EXTRAS_PATTERN}|libclang_rt)/) {printf "%%%%CLANG%%%%"} \ >+ if ($$0 ~ /${CLANG_PATTERN}/ && $$0 !~ /(omp.h|ompt.h|${EXTRAS_PATTERN}|libclang_rt|${PYCLANG_PATTERN})/) {printf "%%%%CLANG%%%%"} \ > if ($$0 ~ /${COMPILER_RT_PATTERN}/) \ > {printf "%%%%COMPILER_RT%%%%"} \ > if ($$0 ~ /(${EXTRAS_PATTERN})/) {printf "%%%%EXTRAS%%%%"} \ >@@ -574,6 +582,7 @@ build-plist: > if ($$0 ~ /(argdumper|lldb|six.py)/) {printf "%%%%LLDB%%%%"} \ > if ($$0 ~ /(lib.*omp|omp.h|ompt.h)/) {printf "%%%%OPENMP%%%%"} \ > if ($$0 ~ /(LLVMgold)/) {printf "%%%%GOLD%%%%"} \ >+ if ($$0 ~ /${PYCLANG_PATTERN}/) {printf "%%%%PYCLANG%%%%"} \ > if ($$0 !~ /(libclang_rt)/ && $$0 !~ /(${BE_PATTERN})$$/) {print}}' ${PLIST}.tmp >> ${PLIST} > ${ECHO_CMD} '@postexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi' >> ${PLIST} > ${ECHO_CMD} '@postunexec if type ccache-update-links >/dev/null 2>&1; then ccache-update-links -v; fi' >> ${PLIST}
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 239990
:
206728
| 206761