commit: 1a6a22668aa501e9ea527c24c2368a938254c388
Author: Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Wed Jun 22 13:51:40 2022 +0000
Commit: Andrew Ammerlaan <andrewammerlaan <AT> gentoo <DOT> org>
CommitDate: Wed Jun 22 13:51:40 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1a6a2266
sci-electronics/kactus2: add 3.10.0
Signed-off-by: Huang Rui <vowstar <AT> gmail.com>
sci-electronics/kactus2/Manifest | 1 +
sci-electronics/kactus2/kactus2-3.10.0.ebuild | 72 +++++++++++++++++++++++++++
2 files changed, 73 insertions(+)
diff --git a/sci-electronics/kactus2/Manifest b/sci-electronics/kactus2/Manifest
index 12bdbeb65..93c3530ee 100644
--- a/sci-electronics/kactus2/Manifest
+++ b/sci-electronics/kactus2/Manifest
@@ -1 +1,2 @@
+DIST kactus2-3.10.0.tar.gz 27887683 BLAKE2B
3addb9d2112fcd79891748ad35bd9e1b93acff1d04bcb75612d4e8018f30c6f015e496860e66e0e8ade3397339de31f700e91d35b18f2eccbd2621b8751d477b
SHA512
a54396f6e305bbc8f70a1af4a5ca0cdc28fc6a95ea1f44c8f9bcd16b7f4a161ad738edd14840ee2356aba4d7e2f198d6ee3ced1f0e5ef32a5717f2ea61cfb5bd
DIST kactus2-3.8.0.tar.gz 19410435 BLAKE2B
2117a7ea5118c59f5b96a449348ba2425646038eb756c5423301d3deba15765005aafae3241c943b7adfaa728edeac3f0963b1cad7c23892b68bbd6ed7de78c0
SHA512
426021465f296c63ff70738b7a56547ac6e5b46ed06b165da2bbcd7239ff9e65c099721ebfb5e7f90b0afa9f5621d7825ff7e216bcc4786f0431f1e98d95eee8
diff --git a/sci-electronics/kactus2/kactus2-3.10.0.ebuild
b/sci-electronics/kactus2/kactus2-3.10.0.ebuild
new file mode 100644
index 000000000..f8dd19778
--- /dev/null
+++ b/sci-electronics/kactus2/kactus2-3.10.0.ebuild
@@ -0,0 +1,72 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI="8"
+
+PYTHON_COMPAT=( python3_{8..11} )
+inherit python-r1 qmake-utils xdg
+
+DESCRIPTION="A open source IP-XACT-based tool"
+HOMEPAGE="
+ https://research.tuni.fi/system-on-chip/tools/
+ https://github.com/kactus2/kactus2dev
+"
+
+if [[ "${PV}" == "9999" ]] ; then
+ inherit git-r3
+ 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 ~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
+ dev-qt/qtgui:5
+ dev-qt/qthelp:5
+ dev-qt/qtprintsupport:5
+ 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 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
+}