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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E3860138334 for ; Sun, 21 Jul 2019 07:34:17 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C06A1E0815; Sun, 21 Jul 2019 07:34:16 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id A8E1CE0815 for ; Sun, 21 Jul 2019 07:34:16 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 2AD57348392 for ; Sun, 21 Jul 2019 07:34:15 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id D20482A5 for ; Sun, 21 Jul 2019 07:34:12 +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: <1563694426.7e3bd370988e4f26f4f51d5cd6aad79f42f111c2.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-9.0.9999.ebuild X-VCS-Directories: dev-python/clang-python/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7e3bd370988e4f26f4f51d5cd6aad79f42f111c2 X-VCS-Branch: master Date: Sun, 21 Jul 2019 07:34:12 +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: e79ab466-4f94-473a-9414-2d6224322008 X-Archives-Hash: 478cf14eddda1fcca22fe5002ff68b28 commit: 7e3bd370988e4f26f4f51d5cd6aad79f42f111c2 Author: Michał Górny gentoo org> AuthorDate: Sun Jul 21 07:13:23 2019 +0000 Commit: Michał Górny gentoo org> CommitDate: Sun Jul 21 07:33:46 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7e3bd370 dev-python/clang-python: Add 9.0 branch live ebuild Signed-off-by: Michał Górny gentoo.org> .../clang-python/clang-python-9.0.9999.ebuild | 49 ++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/dev-python/clang-python/clang-python-9.0.9999.ebuild b/dev-python/clang-python/clang-python-9.0.9999.ebuild new file mode 100644 index 00000000000..6bf0e1c8573 --- /dev/null +++ b/dev-python/clang-python/clang-python-9.0.9999.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_5,3_6,3_7} ) +inherit git-r3 python-r1 + +DESCRIPTION="Python bindings for sys-devel/clang" +HOMEPAGE="https://llvm.org/" +SRC_URI="" +EGIT_REPO_URI="https://git.llvm.org/git/clang.git + https://github.com/llvm-mirror/clang.git" +EGIT_BRANCH="release_90" + +LICENSE="UoI-NCSA" +SLOT="0" +KEYWORDS="" +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. +RDEPEND=" + >=sys-devel/clang-${PV}:* + !sys-devel/llvm:0[clang(-),python(-)] + !sys-devel/clang:0[python(-)] + ${PYTHON_DEPS}" +DEPEND="${RDEPEND}" + +S=${WORKDIR}/${P}/bindings/python + +src_unpack() { + git-r3_fetch + git-r3_checkout '' '' '' bindings/python +} + +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 +}