mirror of
https://github.com/gentoo-mirror/guru.git
synced 2025-04-20 23:46:14 -04:00
sci-electronics/kactus2: add 3.13.0
Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
parent
c5b808cd38
commit
04e47297fd
@ -1 +1,2 @@
|
||||
DIST kactus2-3.12.0.tar.gz 28154387 BLAKE2B c8e0a982343d3a34f9186bca1778b68b4dfdcd977488751f90d9d5372df96c4f7349c90e15203f66778ee1be399e9e2ddb5342dffe1025754e44604c77c16684 SHA512 d7cef803314262c9fb0b77db88b5d7935203e1484965f475e954bceb1bc56a31ee9867fe1d73959d62a8454238480226df8fbd2d487442bce44fe7476de6d5bb
|
||||
DIST kactus2-3.13.0.tar.gz 28682844 BLAKE2B 2dc6d6b1ed18d95cce38179c0538c4697c8b2f0de0984fedf0a0b757a7c6c9268e91b9cb09a99c2cdd1913344e928b8d3d665da292d7c47ddf983f92d28142f8 SHA512 750a318fa543f4feaf8176bc9b9bcf244ac3f97d130b6dbe5483e68e7ac30b146c5d9362cdebb4129b62a1fec89a4f3bcfb97822e45930ad05a699ab1ad2f8f5
|
||||
|
@ -0,0 +1,45 @@
|
||||
From d69c10931e17655f6d159e58a910a91c7fcd0a63 Mon Sep 17 00:00:00 2001
|
||||
From: Huang Rui <vowstar@gmail.com>
|
||||
Date: Sat, 9 Dec 2023 12:34:01 +0800
|
||||
Subject: [PATCH] [CORRECTIVE] Fix incomplete QObject type in
|
||||
FieldReferenceValidator
|
||||
|
||||
- Added missing #include <QObject> in FieldReferenceValidator.h
|
||||
- Resolves compilation errors due to incomplete type 'QObject' used
|
||||
in nested name specifier in various validator components
|
||||
|
||||
Signed-off-by: Huang Rui <vowstar@gmail.com>
|
||||
---
|
||||
IPXACTmodels/Component/validators/FieldReferenceValidator.h | 2 ++
|
||||
IPXACTmodels/Component/validators/MemoryArrayValidator.h | 2 ++
|
||||
2 files changed, 4 insertions(+)
|
||||
|
||||
diff --git a/IPXACTmodels/Component/validators/FieldReferenceValidator.h b/IPXACTmodels/Component/validators/FieldReferenceValidator.h
|
||||
index 0beea5845..4cfcbcb8b 100644
|
||||
--- a/IPXACTmodels/Component/validators/FieldReferenceValidator.h
|
||||
+++ b/IPXACTmodels/Component/validators/FieldReferenceValidator.h
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#include <IPXACTmodels/Component/FieldReference.h>
|
||||
|
||||
+#include <QObject>
|
||||
+
|
||||
namespace FieldReferenceValidator
|
||||
{
|
||||
/*!
|
||||
diff --git a/IPXACTmodels/Component/validators/MemoryArrayValidator.h b/IPXACTmodels/Component/validators/MemoryArrayValidator.h
|
||||
index b0f3e492f..c8ddc249e 100644
|
||||
--- a/IPXACTmodels/Component/validators/MemoryArrayValidator.h
|
||||
+++ b/IPXACTmodels/Component/validators/MemoryArrayValidator.h
|
||||
@@ -16,6 +16,8 @@
|
||||
|
||||
#include <KactusAPI/include/SystemVerilogExpressionParser.h>
|
||||
|
||||
+#include <QObject>
|
||||
+
|
||||
class MemoryArray;
|
||||
|
||||
class IPXACTMODELS_EXPORT MemoryArrayValidator
|
||||
--
|
||||
2.43.0
|
||||
|
92
sci-electronics/kactus2/kactus2-3.13.0.ebuild
Normal file
92
sci-electronics/kactus2/kactus2-3.13.0.ebuild
Normal file
@ -0,0 +1,92 @@
|
||||
# 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.13.0-fix-missing-qobject.patch
|
||||
)
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# Fix QA pre-stripped warnings, bug 781674
|
||||
find . -type f -name \*.pro -exec sed -e '$a\\nCONFIG+=nostrip' -i '{}' + || die
|
||||
# Fix bug 854081
|
||||
python_setup
|
||||
sed -e "s|PYTHON_CONFIG=.*|PYTHON_CONFIG=${EPYTHON}-config|" -i .qmake.conf || die
|
||||
}
|
||||
|
||||
src_configure() {
|
||||
default
|
||||
# Fix bug 854075
|
||||
# Fix bug 854078
|
||||
eqmake6 Kactus2_Solution.pro
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
default
|
||||
python_compile() {
|
||||
cp -TR "${S}/" "${BUILD_DIR}/" || die
|
||||
# Fix bug 854081
|
||||
python_setup
|
||||
sed -e "s|PYTHON_CONFIG=.*|PYTHON_CONFIG=${EPYTHON}-config|" -i .qmake.conf || die
|
||||
export PYTHON_C_FLAGS="$(python_get_CFLAGS)"
|
||||
export PYTHON_LIBS="$(python_get_LIBS)"
|
||||
pushd "PythonAPI" || die
|
||||
eqmake6 PREFIX="$(python_get_library_path)"
|
||||
emake
|
||||
rm _pythonAPI.so || die
|
||||
cp libPythonAPI.so.1.0.0 _pythonAPI.so || die
|
||||
popd
|
||||
}
|
||||
python_foreach_impl run_in_build_dir python_compile
|
||||
}
|
||||
|
||||
src_install() {
|
||||
# Can't use default, set INSTALL_ROOT and workaround parallel install bug
|
||||
emake -j1 INSTALL_ROOT="${D}" install
|
||||
python_install() {
|
||||
pushd "PythonAPI" || die
|
||||
python_domodule _pythonAPI.so
|
||||
python_domodule pythonAPI.py
|
||||
popd
|
||||
}
|
||||
python_foreach_impl run_in_build_dir python_install
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user