public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Rui Huang" <vowstar@gmail.com>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: sci-electronics/kactus2/
Date: Wed, 22 Jun 2022 13:56:12 +0000 (UTC)	[thread overview]
Message-ID: <1655906030.833d9869cc43cda3d6bc2c6fb09ea9d4752d26c7.vowstar@gentoo> (raw)

commit:     833d9869cc43cda3d6bc2c6fb09ea9d4752d26c7
Author:     Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Wed Jun 22 13:53:50 2022 +0000
Commit:     Rui Huang <vowstar <AT> gmail <DOT> com>
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 <vowstar <AT> 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 @@
 <?xml version="1.0" encoding="UTF-8"?>
-<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
 <pkgmetadata>
 	<maintainer type="person">
 		<email>vowstar@gmail.com</email>


             reply	other threads:[~2022-06-22 13:56 UTC|newest]

Thread overview: 24+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-06-22 13:56 Rui Huang [this message]
  -- strict thread matches above, loose matches on Subject: below --
2024-10-21 12:27 [gentoo-commits] repo/proj/guru:dev commit in: sci-electronics/kactus2/ Rui Huang
2024-10-21 12:27 Rui Huang
2024-02-13 14:55 Rui Huang
2023-10-20 17:40 Rui Huang
2023-10-17 15:08 Rui Huang
2023-10-17 15:08 Rui Huang
2022-06-24  6:04 Rui Huang
2022-06-23  4:31 Rui Huang
2022-06-22 13:56 Rui Huang
2022-05-25 20:21 Alessandro Barbieri
2022-05-02 17:59 [gentoo-commits] repo/proj/guru:master " Arthur Zamarin
2022-05-02 17:34 ` [gentoo-commits] repo/proj/guru:dev " Arthur Zamarin
2021-02-05 12:19 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2021-02-05 12:05 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2021-01-01  9:55 Rui Huang
2020-04-27  7:46 Rui Huang
2020-04-27  7:46 Rui Huang
2020-04-26 22:39 Alessandro Barbieri
2020-04-07  7:03 Rui Huang
2020-04-07  6:57 Rui Huang
2020-03-27 12:40 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-03-27 12:40 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-03-15 11:39 [gentoo-commits] repo/proj/guru:master " Andrew Ammerlaan
2020-03-15 11:29 ` [gentoo-commits] repo/proj/guru:dev " Andrew Ammerlaan
2020-03-02 21:15 Andrew Ammerlaan
2020-03-02  7:29 Rui Huang
2020-02-23  7:17 Rui Huang

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1655906030.833d9869cc43cda3d6bc2c6fb09ea9d4752d26c7.vowstar@gentoo \
    --to=vowstar@gmail.com \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox