pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

clang: install python bindings



Module Name:	pkgsrc-wip
Committed By:	kikadf <kikadf.01%gmail.com@localhost>
Pushed By:	kikadf
Date:		Wed Nov 18 15:19:12 2026 +0100
Changeset:	3d86fcec0ab20829d8b7da6489a0f115c6bb0bdd

Modified Files:
	clang/Makefile
	clang/PLIST

Log Message:
clang: install python bindings

Sync with pkgsrc

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=3d86fcec0ab20829d8b7da6489a0f115c6bb0bdd

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 clang/Makefile | 4 ++++
 clang/PLIST    | 2 ++
 2 files changed, 6 insertions(+)

diffs:
diff --git a/clang/Makefile b/clang/Makefile
index 647b911ebf..84dd8ec5e2 100644
--- a/clang/Makefile
+++ b/clang/Makefile
@@ -8,6 +8,10 @@ COMMENT=	C language family frontend for LLVM
 
 USE_TOOLS+=	perl:run
 
+# Install clang python bindings
+CMAKE_CONFIGURE_ARGS+=	-DCLANG_PYTHON_BINDINGS_VERSIONS=${PYVERSSUFFIX}
+PLIST_SUBST+=		PYSITELIB=${PYSITELIB}
+
 # Certain header files are generated, and can only be generated
 # if llvm has support for the target.
 PLIST_VARS+=	RISCV
diff --git a/clang/PLIST b/clang/PLIST
index d25e94989f..cd02d3bcf7 100644
--- a/clang/PLIST
+++ b/clang/PLIST
@@ -1412,6 +1412,8 @@ lib/libscanbuild/resources/scanview.css
 lib/libscanbuild/resources/selectable.js
 lib/libscanbuild/resources/sorttable.js
 lib/libscanbuild/shell.py
+${PYSITELIB}/clang/__init__.py
+${PYSITELIB}/clang/cindex.py
 libexec/analyze-c++
 libexec/analyze-cc
 libexec/c++-analyzer


Home | Main Index | Thread Index | Old Index