summaryrefslogtreecommitdiff
path: root/dev-python/clang
diff options
context:
space:
mode:
Diffstat (limited to 'dev-python/clang')
-rw-r--r--dev-python/clang/Manifest2
-rw-r--r--dev-python/clang/clang-20.0.0_pre20241221.ebuild53
2 files changed, 55 insertions, 0 deletions
diff --git a/dev-python/clang/Manifest b/dev-python/clang/Manifest
index e47f8bbf603d..2911af1cc3f2 100644
--- a/dev-python/clang/Manifest
+++ b/dev-python/clang/Manifest
@@ -14,6 +14,7 @@ DIST llvm-project-19.1.6.src.tar.xz 141248428 BLAKE2B b35ab0c754f28c850ac6fd4ee5
DIST llvm-project-19.1.6.src.tar.xz.sig 438 BLAKE2B 1791e98252ab78a9a762ef601ff9edee115385181781c8100f14ec80061d7888ee4c4c519297a0e89b9c7ab2203aa9d5bb3084ea1d0f0024c2acf84826fd370b SHA512 8e79a39a4f54da3579794f9b5a009ea8ee56c7bc1805187274794ce56e81aa492ea93f5c7839a59beedcf7d657acded5ecb75d5803658cce1f9e8f753439c6c4
DIST llvm-project-32f7f0010bca99ee4bd917f57272733fb2bf3bd9.tar.gz 223983502 BLAKE2B fd3e6b0b795abc42568ef98fa774d927029c18838a5d0f34eaa66c37976444a63f2fc5d883f3bf3a98533f51e387936f1c659230f31c757d26153425696a16cd SHA512 65a345ad5b77c627008f759947e5e9f28a62c8992d7146113e0446e5849feaf9088c15c8b22ca0824af5b927d6a417f5326258b489fb8ccea78ec9e0e0fe8fba
DIST llvm-project-49a5ad8e5714fd404210279303acc97b495d66d0.tar.gz 224456065 BLAKE2B 0077b9d37c479ac6190cc4b897cc35d6f1f3e6a772cd0620bcb1006afc19377e9968e38fb9d9adffe316e85290c9045deecbf9bf62b440c55968634b442edb31 SHA512 45d779eb27c230f656fda47c85127381cab8c8f7f75d77411c6960269f8aad5fa3c99c024a98ab8a349da1c88ad9d892cc82f91a6f344b791b281449031ae49a
+DIST llvm-project-665d79f2e967a5eee6fff93685e45f50cf24cab2.tar.gz 224186302 BLAKE2B 6d4a02b6cfaf53324161c43ed02024f0fea0e7de25a9150cc0168602d7dff3f618026fa8318aa6e03904a9424afa1f12c5eb33bfdfa82e72210f34e5829a7804 SHA512 7482e176b1e2389b0dd0e67271cdb0489e9db0595874408156a034b40d336ecd960c63b89c237ca22eee3650880b0f08a97de14f8a17c918245915d422e568c9
EBUILD clang-15.0.7.ebuild 1203 BLAKE2B cf84f97fb260baf4ad6fdaeba840b1029f7d8491db85f40a46688e1ab8af050b3f6f7d2e95659bafe90f100c65c1db02e050907ed5023ded5ea72e3c66c32ab3 SHA512 b680e5a1f559f90abace19a911bb524ed1785e4d80e6fe05319cd6908da4b15af060d503c304b138aca9594b2695294a3cf3833062a6c1aadc748932e9d15931
EBUILD clang-16.0.6.ebuild 1203 BLAKE2B f23b17daa233b1881d42219f47dc1f320a7914deaaa1ce52fbee16726ca89aeaabc3bcac00f33ea88855d60bfa70e7aafa440c27971b5a6e9830cd864cb15ee0 SHA512 439b98a2cee13a658817a313fe32a8f16e9cee8abd64620284130562e3ba34535c5016c8eba337d03a8e5b376a03504c64481f6f45dc99b664c100e4f3c8cd14
EBUILD clang-17.0.6.ebuild 1203 BLAKE2B f23b17daa233b1881d42219f47dc1f320a7914deaaa1ce52fbee16726ca89aeaabc3bcac00f33ea88855d60bfa70e7aafa440c27971b5a6e9830cd864cb15ee0 SHA512 439b98a2cee13a658817a313fe32a8f16e9cee8abd64620284130562e3ba34535c5016c8eba337d03a8e5b376a03504c64481f6f45dc99b664c100e4f3c8cd14
@@ -24,4 +25,5 @@ EBUILD clang-19.1.6.ebuild 1205 BLAKE2B ec7483def2ab28e9c995e2730430f31df4a8bc8d
EBUILD clang-20.0.0.9999.ebuild 1170 BLAKE2B 83e1d256d07a4228d40900d639841a2ef237a96d30c094ead8550929a606389dfbe65ccc0bc3da8b6c7ecf68b660860c982be14716af452daa81619cc8106dca SHA512 9d72b20cac73924a921f1f687e466c2fc1e3c233e06133f0495b7dfc0a601954214d689b89b78356dd63c9d073609282b4bfef72799d51be6f978eb80a3fc707
EBUILD clang-20.0.0_pre20241207.ebuild 1170 BLAKE2B 83e1d256d07a4228d40900d639841a2ef237a96d30c094ead8550929a606389dfbe65ccc0bc3da8b6c7ecf68b660860c982be14716af452daa81619cc8106dca SHA512 9d72b20cac73924a921f1f687e466c2fc1e3c233e06133f0495b7dfc0a601954214d689b89b78356dd63c9d073609282b4bfef72799d51be6f978eb80a3fc707
EBUILD clang-20.0.0_pre20241215.ebuild 1170 BLAKE2B 83e1d256d07a4228d40900d639841a2ef237a96d30c094ead8550929a606389dfbe65ccc0bc3da8b6c7ecf68b660860c982be14716af452daa81619cc8106dca SHA512 9d72b20cac73924a921f1f687e466c2fc1e3c233e06133f0495b7dfc0a601954214d689b89b78356dd63c9d073609282b4bfef72799d51be6f978eb80a3fc707
+EBUILD clang-20.0.0_pre20241221.ebuild 1170 BLAKE2B 83e1d256d07a4228d40900d639841a2ef237a96d30c094ead8550929a606389dfbe65ccc0bc3da8b6c7ecf68b660860c982be14716af452daa81619cc8106dca SHA512 9d72b20cac73924a921f1f687e466c2fc1e3c233e06133f0495b7dfc0a601954214d689b89b78356dd63c9d073609282b4bfef72799d51be6f978eb80a3fc707
MISC metadata.xml 299 BLAKE2B 2feead2cd1b35b3a43335ddd7711f8181b52bc63ee7166608914260c67528add5251349063afbef4f8cf0ec09b2cd4c3ffdd90f2c14ed60bb69ebc03888f6333 SHA512 cd745c54ab18d25bdaff18582105072574103a36cfe7c175ef740f266d00e9fc6f44c332904d23b911c939cf5bdf52973b388923099d8dd5dfef3c283b5cb685
diff --git a/dev-python/clang/clang-20.0.0_pre20241221.ebuild b/dev-python/clang/clang-20.0.0_pre20241221.ebuild
new file mode 100644
index 000000000000..871a0ee635a8
--- /dev/null
+++ b/dev-python/clang/clang-20.0.0_pre20241221.ebuild
@@ -0,0 +1,53 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+inherit llvm.org python-r1
+
+DESCRIPTION="Python bindings for llvm-core/clang"
+HOMEPAGE="https://llvm.org/"
+
+LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA"
+SLOT="0"
+IUSE="test"
+RESTRICT="!test? ( test )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+# The module is opening libclang.so directly, and doing some blasphemy
+# on top of it.
+DEPEND="
+ >=llvm-core/clang-${PV}:*
+ !llvm-core/llvm:0[clang(-),python(-)]
+ !llvm-core/clang:0[python(-)]
+"
+RDEPEND="
+ ${DEPEND}
+ ${PYTHON_DEPS}
+"
+BDEPEND="
+ ${PYTHON_DEPS}
+ test? (
+ llvm-core/clang:${LLVM_MAJOR}
+ )
+"
+
+LLVM_COMPONENTS=( clang/bindings/python )
+llvm.org_set_globals
+
+python_test() {
+ # tests rely on results from a specific clang version, so override
+ # the search path
+ local -x CLANG_LIBRARY_PATH=${BROOT}/usr/lib/llvm/${LLVM_MAJOR}/$(get_libdir)
+ local -x CLANG_NO_DEFAULT_CONFIG=1
+ "${EPYTHON}" -m unittest discover -v || die "Tests fail with ${EPYTHON}"
+}
+
+src_test() {
+ python_foreach_impl python_test
+}
+
+src_install() {
+ python_foreach_impl python_domodule clang
+}