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: 1655905900.1a6a22668aa501e9ea527c24c2368a938254c388.andrewammerlaan@gentoo
1 commit: 1a6a22668aa501e9ea527c24c2368a938254c388
2 Author: Huang Rui <vowstar <AT> gmail <DOT> com>
3 AuthorDate: Wed Jun 22 13:51:40 2022 +0000
4 Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
5 CommitDate: Wed Jun 22 13:51:40 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1a6a2266
7
8 sci-electronics/kactus2: add 3.10.0
9
10 Signed-off-by: Huang Rui <vowstar <AT> gmail.com>
11
12 sci-electronics/kactus2/Manifest | 1 +
13 sci-electronics/kactus2/kactus2-3.10.0.ebuild | 72 +++++++++++++++++++++++++++
14 2 files changed, 73 insertions(+)
15
16 diff --git a/sci-electronics/kactus2/Manifest b/sci-electronics/kactus2/Manifest
17 index 12bdbeb65..93c3530ee 100644
18 --- a/sci-electronics/kactus2/Manifest
19 +++ b/sci-electronics/kactus2/Manifest
20 @@ -1 +1,2 @@
21 +DIST kactus2-3.10.0.tar.gz 27887683 BLAKE2B 3addb9d2112fcd79891748ad35bd9e1b93acff1d04bcb75612d4e8018f30c6f015e496860e66e0e8ade3397339de31f700e91d35b18f2eccbd2621b8751d477b SHA512 a54396f6e305bbc8f70a1af4a5ca0cdc28fc6a95ea1f44c8f9bcd16b7f4a161ad738edd14840ee2356aba4d7e2f198d6ee3ced1f0e5ef32a5717f2ea61cfb5bd
22 DIST kactus2-3.8.0.tar.gz 19410435 BLAKE2B 2117a7ea5118c59f5b96a449348ba2425646038eb756c5423301d3deba15765005aafae3241c943b7adfaa728edeac3f0963b1cad7c23892b68bbd6ed7de78c0 SHA512 426021465f296c63ff70738b7a56547ac6e5b46ed06b165da2bbcd7239ff9e65c099721ebfb5e7f90b0afa9f5621d7825ff7e216bcc4786f0431f1e98d95eee8
23
24 diff --git a/sci-electronics/kactus2/kactus2-3.10.0.ebuild b/sci-electronics/kactus2/kactus2-3.10.0.ebuild
25 new file mode 100644
26 index 000000000..f8dd19778
27 --- /dev/null
28 +++ b/sci-electronics/kactus2/kactus2-3.10.0.ebuild
29 @@ -0,0 +1,72 @@
30 +# Copyright 1999-2022 Gentoo Authors
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI="8"
34 +
35 +PYTHON_COMPAT=( python3_{8..11} )
36 +inherit python-r1 qmake-utils xdg
37 +
38 +DESCRIPTION="A open source IP-XACT-based tool"
39 +HOMEPAGE="
40 + https://research.tuni.fi/system-on-chip/tools/
41 + https://github.com/kactus2/kactus2dev
42 +"
43 +
44 +if [[ "${PV}" == "9999" ]] ; then
45 + inherit git-r3
46 + EGIT_REPO_URI="https://github.com/${PN}/${PN}dev.git"
47 +else
48 + SRC_URI="https://github.com/${PN}/${PN}dev/archive/v${PV}.tar.gz -> ${P}.tar.gz"
49 + KEYWORDS="~amd64 ~arm ~arm64 ~hppa ~ppc ~ppc64 ~riscv ~x86"
50 + S="${WORKDIR}/${PN}dev-${PV}"
51 +fi
52 +
53 +LICENSE="GPL-2"
54 +SLOT="0"
55 +IUSE="+python"
56 +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
57 +
58 +RDEPEND="
59 + dev-qt/qtcore:5
60 + dev-qt/qtgui:5
61 + dev-qt/qthelp:5
62 + dev-qt/qtprintsupport:5
63 + dev-qt/qtsvg:5
64 + dev-qt/qtwidgets:5
65 + dev-qt/qtxml:5
66 + python? ( ${PYTHON_DEPS} )
67 +"
68 +
69 +DEPEND="
70 + ${RDEPEND}
71 +"
72 +
73 +QA_PRESTRIPPED="usr/share/kactus2/plugins/*"
74 +
75 +src_prepare() {
76 + default
77 +
78 + # Fix QTBIN_PATH
79 + sed -i -e "s|QTBIN_PATH=.*|QTBIN_PATH=\"$(qt5_get_bindir)/\"|" configure || die
80 +}
81 +
82 +src_install() {
83 + # Can't use default, set INSTALL_ROOT and workaround parallel install bug
84 + emake -j1 INSTALL_ROOT="${D}" install
85 + if use python; then
86 + python_install() {
87 + export PYTHON_C_FLAGS="$(python_get_CFLAGS)"
88 + export PYTHON_LIBS="$(python_get_LIBS)"
89 + pushd "PythonAPI" || die
90 + emake clean
91 + eqmake5 PREFIX="$(python_get_library_path)"
92 + emake
93 + rm -rf _pythonAPI.so || die
94 + cp -rf libPythonAPI.so.1.0.0 _pythonAPI.so || die
95 + python_domodule _pythonAPI.so
96 + python_domodule pythonAPI.py
97 + popd
98 + }
99 + python_foreach_impl python_install
100 + fi
101 +}