mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-19 20:13:01 -04:00
sci-electronics/kactus2: update EAPI 7 -> 8
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
@@ -1,9 +1,10 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
# Copyright 1999-2022 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# 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"
|
DESCRIPTION="A open source IP-XACT-based tool"
|
||||||
HOMEPAGE="
|
HOMEPAGE="
|
||||||
@@ -16,12 +17,14 @@ if [[ "${PV}" == "9999" ]] ; then
|
|||||||
EGIT_REPO_URI="https://github.com/${PN}/${PN}dev.git"
|
EGIT_REPO_URI="https://github.com/${PN}/${PN}dev.git"
|
||||||
else
|
else
|
||||||
SRC_URI="https://github.com/${PN}/${PN}dev/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
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}"
|
S="${WORKDIR}/${PN}dev-${PV}"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
LICENSE="GPL-2"
|
LICENSE="GPL-2"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
|
IUSE="+python"
|
||||||
|
REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
dev-qt/qtcore:5
|
dev-qt/qtcore:5
|
||||||
@@ -31,13 +34,39 @@ RDEPEND="
|
|||||||
dev-qt/qtsvg:5
|
dev-qt/qtsvg:5
|
||||||
dev-qt/qtwidgets:5
|
dev-qt/qtwidgets:5
|
||||||
dev-qt/qtxml:5
|
dev-qt/qtxml:5
|
||||||
|
python? ( ${PYTHON_DEPS} )
|
||||||
"
|
"
|
||||||
|
|
||||||
DEPEND="
|
DEPEND="
|
||||||
${RDEPEND}
|
${RDEPEND}
|
||||||
"
|
"
|
||||||
|
|
||||||
src_install() {
|
QA_PRESTRIPPED="usr/share/kactus2/plugins/*"
|
||||||
# Can't use default, set INSTALL_ROOT
|
|
||||||
emake INSTALL_ROOT="${D}" install
|
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
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?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>
|
<pkgmetadata>
|
||||||
<maintainer type="person">
|
<maintainer type="person">
|
||||||
<email>vowstar@gmail.com</email>
|
<email>vowstar@gmail.com</email>
|
||||||
|
|||||||
Reference in New Issue
Block a user