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: Fri, 24 Jun 2022 06:04:39 +0000 (UTC) [thread overview]
Message-ID: <1656050616.1aeb3e088cbccbaaa406f305cb9e02566eb4363d.vowstar@gentoo> (raw)
commit: 1aeb3e088cbccbaaa406f305cb9e02566eb4363d
Author: Huang Rui <vowstar <AT> gmail <DOT> com>
AuthorDate: Fri Jun 24 06:03:36 2022 +0000
Commit: Rui Huang <vowstar <AT> gmail <DOT> com>
CommitDate: Fri Jun 24 06:03:36 2022 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=1aeb3e08
sci-electronics/kactus2: fix build problem
Add missing python and swig depend
Python3 is required to build and run this package
Closes: https://bugs.gentoo.org/853838
Closes: https://bugs.gentoo.org/853841
Signed-off-by: Huang Rui <vowstar <AT> gmail.com>
sci-electronics/kactus2/kactus2-3.10.0.ebuild | 39 ++++++++++++++-------------
sci-electronics/kactus2/kactus2-9999.ebuild | 39 ++++++++++++++-------------
2 files changed, 40 insertions(+), 38 deletions(-)
diff --git a/sci-electronics/kactus2/kactus2-3.10.0.ebuild b/sci-electronics/kactus2/kactus2-3.10.0.ebuild
index 5ac2c4877..eb13a7c47 100644
--- a/sci-electronics/kactus2/kactus2-3.10.0.ebuild
+++ b/sci-electronics/kactus2/kactus2-3.10.0.ebuild
@@ -23,10 +23,10 @@ fi
LICENSE="GPL-2"
SLOT="0"
-IUSE="+python"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
+ ${PYTHON_DEPS}
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qthelp:5
@@ -34,13 +34,16 @@ RDEPEND="
dev-qt/qtsvg:5
dev-qt/qtwidgets:5
dev-qt/qtxml:5
- python? ( ${PYTHON_DEPS} )
"
DEPEND="
${RDEPEND}
"
+BDEPEND="
+ dev-lang/swig
+"
+
src_prepare() {
default
# Fix QA pre-stripped warnings, bug 781674
@@ -54,20 +57,18 @@ src_prepare() {
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
+ 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
}
diff --git a/sci-electronics/kactus2/kactus2-9999.ebuild b/sci-electronics/kactus2/kactus2-9999.ebuild
index 5ac2c4877..eb13a7c47 100644
--- a/sci-electronics/kactus2/kactus2-9999.ebuild
+++ b/sci-electronics/kactus2/kactus2-9999.ebuild
@@ -23,10 +23,10 @@ fi
LICENSE="GPL-2"
SLOT="0"
-IUSE="+python"
-REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
+ ${PYTHON_DEPS}
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qthelp:5
@@ -34,13 +34,16 @@ RDEPEND="
dev-qt/qtsvg:5
dev-qt/qtwidgets:5
dev-qt/qtxml:5
- python? ( ${PYTHON_DEPS} )
"
DEPEND="
${RDEPEND}
"
+BDEPEND="
+ dev-lang/swig
+"
+
src_prepare() {
default
# Fix QA pre-stripped warnings, bug 781674
@@ -54,20 +57,18 @@ src_prepare() {
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
+ 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
}
next reply other threads:[~2022-06-24 6:04 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-24 6:04 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-23 4:31 Rui Huang
2022-06-22 13:56 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=1656050616.1aeb3e088cbccbaaa406f305cb9e02566eb4363d.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