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 C11CC158094 for ; Wed, 22 Jun 2022 17:39:19 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A5906E099C; Wed, 22 Jun 2022 17:39:18 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 78B8DE099C for ; Wed, 22 Jun 2022 17:39:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 3EB6D341B69 for ; Wed, 22 Jun 2022 17:39:17 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id C84D251D for ; Wed, 22 Jun 2022 17:39:14 +0000 (UTC) From: "Andrew Ammerlaan" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrew Ammerlaan" Message-ID: <1655906030.833d9869cc43cda3d6bc2c6fb09ea9d4752d26c7.andrewammerlaan@gentoo> Subject: [gentoo-commits] repo/proj/guru:master commit in: sci-electronics/kactus2/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sci-electronics/kactus2/kactus2-9999.ebuild sci-electronics/kactus2/metadata.xml X-VCS-Directories: sci-electronics/kactus2/ X-VCS-Committer: andrewammerlaan X-VCS-Committer-Name: Andrew Ammerlaan X-VCS-Revision: 833d9869cc43cda3d6bc2c6fb09ea9d4752d26c7 X-VCS-Branch: master Date: Wed, 22 Jun 2022 17:39:14 +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: c88df3dd-8528-403f-a821-e8bc7176e638 X-Archives-Hash: f2a2f538aa7ae1ce4700b6b5c59047ba commit: 833d9869cc43cda3d6bc2c6fb09ea9d4752d26c7 Author: Huang Rui gmail com> AuthorDate: Wed Jun 22 13:53:50 2022 +0000 Commit: Andrew Ammerlaan gentoo org> CommitDate: Wed Jun 22 13:53:50 2022 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=833d9869 sci-electronics/kactus2: update EAPI 7 -> 8 Signed-off-by: Huang Rui gmail.com> sci-electronics/kactus2/kactus2-9999.ebuild | 39 +++++++++++++++++++++++++---- sci-electronics/kactus2/metadata.xml | 2 +- 2 files changed, 35 insertions(+), 6 deletions(-) diff --git a/sci-electronics/kactus2/kactus2-9999.ebuild b/sci-electronics/kactus2/kactus2-9999.ebuild index 4ecae13d2..f8dd19778 100644 --- a/sci-electronics/kactus2/kactus2-9999.ebuild +++ b/sci-electronics/kactus2/kactus2-9999.ebuild @@ -1,9 +1,10 @@ # Copyright 1999-2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI="7" +EAPI="8" -inherit xdg +PYTHON_COMPAT=( python3_{8..11} ) +inherit python-r1 qmake-utils xdg DESCRIPTION="A open source IP-XACT-based tool" HOMEPAGE=" @@ -16,12 +17,14 @@ if [[ "${PV}" == "9999" ]] ; then EGIT_REPO_URI="https://github.com/${PN}/${PN}dev.git" else SRC_URI="https://github.com/${PN}/${PN}dev/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86" + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86" S="${WORKDIR}/${PN}dev-${PV}" fi LICENSE="GPL-2" SLOT="0" +IUSE="+python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" RDEPEND=" dev-qt/qtcore:5 @@ -31,13 +34,39 @@ RDEPEND=" dev-qt/qtsvg:5 dev-qt/qtwidgets:5 dev-qt/qtxml:5 + python? ( ${PYTHON_DEPS} ) " DEPEND=" ${RDEPEND} " +QA_PRESTRIPPED="usr/share/kactus2/plugins/*" + +src_prepare() { + default + + # Fix QTBIN_PATH + sed -i -e "s|QTBIN_PATH=.*|QTBIN_PATH=\"$(qt5_get_bindir)/\"|" configure || die +} + src_install() { - # Can't use default, set INSTALL_ROOT - emake INSTALL_ROOT="${D}" install + # Can't use default, set INSTALL_ROOT and workaround parallel install bug + emake -j1 INSTALL_ROOT="${D}" install + if use python; then + python_install() { + export PYTHON_C_FLAGS="$(python_get_CFLAGS)" + export PYTHON_LIBS="$(python_get_LIBS)" + pushd "PythonAPI" || die + emake clean + eqmake5 PREFIX="$(python_get_library_path)" + emake + rm -rf _pythonAPI.so || die + cp -rf libPythonAPI.so.1.0.0 _pythonAPI.so || die + python_domodule _pythonAPI.so + python_domodule pythonAPI.py + popd + } + python_foreach_impl python_install + fi } diff --git a/sci-electronics/kactus2/metadata.xml b/sci-electronics/kactus2/metadata.xml index 7dd9d6b41..a452da17d 100644 --- a/sci-electronics/kactus2/metadata.xml +++ b/sci-electronics/kactus2/metadata.xml @@ -1,5 +1,5 @@ - + vowstar@gmail.com