Gentoo Archives: gentoo-commits

From: Andrew Ammerlaan <andrewammerlaan@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:master commit in: sci-electronics/kactus2/
Date: Wed, 22 Jun 2022 17:39:19
Message-Id: 1655906030.833d9869cc43cda3d6bc2c6fb09ea9d4752d26c7.andrewammerlaan@gentoo
1 commit: 833d9869cc43cda3d6bc2c6fb09ea9d4752d26c7
2 Author: Huang Rui <vowstar <AT> gmail <DOT> com>
3 AuthorDate: Wed Jun 22 13:53:50 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 22 13:53:50 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=833d9869
7
8 sci-electronics/kactus2: update EAPI 7 -> 8
9
10 Signed-off-by: Huang Rui <vowstar <AT> gmail.com>
11
12 sci-electronics/kactus2/kactus2-9999.ebuild | 39 +++++++++++++++++++++++++----
13 sci-electronics/kactus2/metadata.xml | 2 +-
14 2 files changed, 35 insertions(+), 6 deletions(-)
15
16 diff --git a/sci-electronics/kactus2/kactus2-9999.ebuild b/sci-electronics/kactus2/kactus2-9999.ebuild
17 index 4ecae13d2..f8dd19778 100644
18 --- a/sci-electronics/kactus2/kactus2-9999.ebuild
19 +++ b/sci-electronics/kactus2/kactus2-9999.ebuild
20 @@ -1,9 +1,10 @@
21 # Copyright 1999-2022 Gentoo Authors
22 # Distributed under the terms of the GNU General Public License v2
23
24 -EAPI="7"
25 +EAPI="8"
26
27 -inherit xdg
28 +PYTHON_COMPAT=( python3_{8..11} )
29 +inherit python-r1 qmake-utils xdg
30
31 DESCRIPTION="A open source IP-XACT-based tool"
32 HOMEPAGE="
33 @@ -16,12 +17,14 @@ if [[ "${PV}" == "9999" ]] ; then
34 EGIT_REPO_URI="https://github.com/${PN}/${PN}dev.git"
35 else
36 SRC_URI="https://github.com/${PN}/${PN}dev/archive/v${PV}.tar.gz -> ${P}.tar.gz"
37 - KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~sparc ~x86"
38 + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86"
39 S="${WORKDIR}/${PN}dev-${PV}"
40 fi
41
42 LICENSE="GPL-2"
43 SLOT="0"
44 +IUSE="+python"
45 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
46
47 RDEPEND="
48 dev-qt/qtcore:5
49 @@ -31,13 +34,39 @@ RDEPEND="
50 dev-qt/qtsvg:5
51 dev-qt/qtwidgets:5
52 dev-qt/qtxml:5
53 + python? ( ${PYTHON_DEPS} )
54 "
55
56 DEPEND="
57 ${RDEPEND}
58 "
59
60 +QA_PRESTRIPPED="usr/share/kactus2/plugins/*"
61 +
62 +src_prepare() {
63 + default
64 +
65 + # Fix QTBIN_PATH
66 + sed -i -e "s|QTBIN_PATH=.*|QTBIN_PATH=\"$(qt5_get_bindir)/\"|" configure || die
67 +}
68 +
69 src_install() {
70 - # Can't use default, set INSTALL_ROOT
71 - emake INSTALL_ROOT="${D}" install
72 + # Can't use default, set INSTALL_ROOT and workaround parallel install bug
73 + emake -j1 INSTALL_ROOT="${D}" install
74 + if use python; then
75 + python_install() {
76 + export PYTHON_C_FLAGS="$(python_get_CFLAGS)"
77 + export PYTHON_LIBS="$(python_get_LIBS)"
78 + pushd "PythonAPI" || die
79 + emake clean
80 + eqmake5 PREFIX="$(python_get_library_path)"
81 + emake
82 + rm -rf _pythonAPI.so || die
83 + cp -rf libPythonAPI.so.1.0.0 _pythonAPI.so || die
84 + python_domodule _pythonAPI.so
85 + python_domodule pythonAPI.py
86 + popd
87 + }
88 + python_foreach_impl python_install
89 + fi
90 }
91
92 diff --git a/sci-electronics/kactus2/metadata.xml b/sci-electronics/kactus2/metadata.xml
93 index 7dd9d6b41..a452da17d 100644
94 --- a/sci-electronics/kactus2/metadata.xml
95 +++ b/sci-electronics/kactus2/metadata.xml
96 @@ -1,5 +1,5 @@
97 <?xml version="1.0" encoding="UTF-8"?>
98 -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
99 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
100 <pkgmetadata>
101 <maintainer type="person">
102 <email>vowstar@×××××.com</email>