From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id CE463158087 for ; Sun, 6 Feb 2022 15:35:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id AC1F72BC045; Sun, 6 Feb 2022 15:35:10 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EB9892BC04A for ; Sun, 6 Feb 2022 15:35:09 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3A82B342D2C for ; Sun, 6 Feb 2022 15:35:08 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 4C14E2DB for ; Sun, 6 Feb 2022 15:35:04 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1644161662.5ebd4ea56c2d7d3e316db89fbc991dcffe29ad63.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/clang-python/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/clang-python/clang-python-15.0.0.9999.ebuild X-VCS-Directories: dev-python/clang-python/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 5ebd4ea56c2d7d3e316db89fbc991dcffe29ad63 X-VCS-Branch: master Date: Sun, 6 Feb 2022 15:35:04 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 77b3309a-dc01-4719-8a3c-833d5f10ef39 X-Archives-Hash: f90c757f6b493363956e2fe9f7ce69a9 commit: 5ebd4ea56c2d7d3e316db89fbc991dcffe29ad63 Author: Michał Górny gentoo org> AuthorDate: Sun Feb 6 15:16:43 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Feb 6 15:34:22 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5ebd4ea5 dev-python/clang-python: Add 15.x live ebuild Signed-off-by: Michał Górny gentoo.org> .../clang-python/clang-python-15.0.0.9999.ebuild | 41 ++++++++++++++++++++++ 1 file changed, 41 insertions(+) diff --git a/dev-python/clang-python/clang-python-15.0.0.9999.ebuild b/dev-python/clang-python/clang-python-15.0.0.9999.ebuild new file mode 100644 index 000000000000..fb6456619641 --- /dev/null +++ b/dev-python/clang-python/clang-python-15.0.0.9999.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8..10} ) +inherit llvm.org python-r1 + +DESCRIPTION="Python bindings for sys-devel/clang" +HOMEPAGE="https://llvm.org/" + +LICENSE="Apache-2.0-with-LLVM-exceptions UoI-NCSA" +SLOT="0" +KEYWORDS="" +IUSE="test" +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RESTRICT="!test? ( test )" + +# The module is opening libclang.so directly, and doing some blasphemy +# on top of it. +RDEPEND=" + >=sys-devel/clang-${PV}:* + !sys-devel/llvm:0[clang(-),python(-)] + !sys-devel/clang:0[python(-)] + ${PYTHON_DEPS}" +DEPEND="${RDEPEND}" + +LLVM_COMPONENTS=( clang/bindings/python ) +llvm.org_set_globals + +python_test() { + "${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 +}