blob: 5d9feb07453892ea512742f4e687d54b753f91b7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="8"
PYTHON_COMPAT=( python3_{10..12} )
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"
S="${WORKDIR}/${PN}dev-${PV}"
fi
LICENSE="GPL-2"
SLOT="0"
REQUIRED_USE="${PYTHON_REQUIRED_USE}"
RDEPEND="
${PYTHON_DEPS}
dev-qt/qtbase:6=[cups,gui,network,opengl,widgets,xml]
dev-qt/qtsvg:6
"
DEPEND="
${RDEPEND}
"
BDEPEND="
dev-lang/swig
dev-qt/qttools:6[linguist,qdoc]
"
PATCHES=(
"${FILESDIR}"/${PN}-3.12.0-fix-createhelp.patch
)
src_prepare() {
default
# Fix QA pre-stripped warnings, bug 781674
while IFS= read -r -d '' i; do
echo "CONFIG+=nostrip" >> "${i}" || die
done < <(find . -type f '(' -name "*.pro" ')' -print0)
# # Fix QTBIN_PATH
# sed -i -e "s|QTBIN_PATH=.*|QTBIN_PATH=\"$(qt6_get_bindir)/\"|" configure || die
}
src_install() {
# Can't use default, set INSTALL_ROOT and workaround parallel install bug
emake -j1 INSTALL_ROOT="${D}" install
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
}
|