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 2C1BE1382C5 for ; Fri, 19 Jun 2020 01:33:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 599EFE0965; Fri, 19 Jun 2020 01:33:34 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 3FBB1E0965 for ; Fri, 19 Jun 2020 01:33:34 +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 40E9C34F3FD for ; Fri, 19 Jun 2020 01:33:32 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id AB22A2A8 for ; Fri, 19 Jun 2020 01:33:30 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1592530385.702b7bba86ac86a7e90b6c8dfa37d90ae9ae4f16.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-libs/keystone/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-libs/keystone/keystone-9999.ebuild X-VCS-Directories: dev-libs/keystone/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 702b7bba86ac86a7e90b6c8dfa37d90ae9ae4f16 X-VCS-Branch: master Date: Fri, 19 Jun 2020 01:33:30 +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: d694403e-d9b2-4170-bd4e-3aef7b9cd378 X-Archives-Hash: 700b3ec1b2398d5f3e3069b6f22cdb8d commit: 702b7bba86ac86a7e90b6c8dfa37d90ae9ae4f16 Author: Georgy Yakovlev gentoo org> AuthorDate: Fri Jun 19 00:57:27 2020 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Fri Jun 19 01:33:05 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=702b7bba dev-libs/keystone: rework live ebuild bump to EAPI=7 migrate to cmake.eclass honor Gentoo CMAKE_BUILD_TYPE make python truly optional bump python targets use llvm.eclass (limit to llvm10 for now) keyword on ~ppc64 Issue: https://github.com/gentoo/gentoo/pull/11828 Bug: https://bugs.gentoo.org/685000 Bug: https://bugs.gentoo.org/712354 Bug: https://bugs.gentoo.org/718276 Bug: https://bugs.gentoo.org/652440 Package-Manager: Portage-2.3.101, Repoman-2.3.22 Signed-off-by: Georgy Yakovlev gentoo.org> dev-libs/keystone/keystone-9999.ebuild | 41 +++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 15 deletions(-) diff --git a/dev-libs/keystone/keystone-9999.ebuild b/dev-libs/keystone/keystone-9999.ebuild index dba275576be..a4863b0bced 100644 --- a/dev-libs/keystone/keystone-9999.ebuild +++ b/dev-libs/keystone/keystone-9999.ebuild @@ -1,13 +1,12 @@ # Copyright 1999-2020 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=6 +EAPI=7 DISTUTILS_OPTIONAL=1 -CMAKE_MIN_VERSION=3.8.7 -PYTHON_COMPAT=( python3_6 ) +PYTHON_COMPAT=( python3_{6,7,8} ) -inherit cmake-utils distutils-r1 +inherit cmake distutils-r1 llvm DESCRIPTION="assembly/assembler framework + bindings" HOMEPAGE="http://www.keystone-engine.org/" @@ -18,7 +17,7 @@ if [[ ${PV} == 9999* ]]; then KEYWORDS="" else SRC_URI="https://github.com/keystone-engine/keystone/archive/${PV/_rc/-rc}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~x86" + KEYWORDS="~amd64 ~arm ~ppc64 ~x86" fi LICENSE="GPL-2" @@ -30,19 +29,28 @@ ALL_LLVM_TARGETS=( "${ALL_LLVM_TARGETS[@]/#/llvm_targets_}" ) LLVM_TARGET_USEDEPS=${ALL_LLVM_TARGETS[@]/%/?} IUSE="python ${ALL_LLVM_TARGETS[*]}" -RDEPEND="sys-devel/llvm:=[${LLVM_TARGET_USEDEPS// /,}] - ${PYTHON_DEPS} + +LLVM_MAX_SLOT=10 + +RDEPEND=" + /dev/null || die @@ -53,29 +61,32 @@ wrap_python() { src_prepare() { default - cmake-utils_src_prepare + sed -i '/NOT uppercase_CMAKE_BUILD_TYPE MATCHES/ s/DEBUG/GENTOO|DEBUG/' \ + llvm/CMakeLists.txt || die + cmake_src_prepare wrap_python ${FUNCNAME} } src_configure() { + local libdir="$(get_libdir)" local mycmakeargs=( + -DCMAKE_CONFIGURATION_TYPES="Gentoo" -DLLVM_LIBDIR_SUFFIX=${libdir#lib} - -DBUILD_SHARED_LIBS=ON -DLLVM_TARGETS_TO_BUILD="${LLVM_TARGETS// /;}" -DLLVM_HOST_TRIPLE="${CHOST}" ) - cmake-utils_src_configure + cmake_src_configure wrap_python ${FUNCNAME} } src_compile() { - cmake-utils_src_compile + cmake_src_compile wrap_python ${FUNCNAME} } src_install() { - cmake-utils_src_install + cmake_src_install wrap_python ${FUNCNAME} }