From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5B48D15808B for ; Tue, 13 Feb 2024 14:55:15 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7CD59E29D5; Tue, 13 Feb 2024 14:55:14 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 54866E29D5 for ; Tue, 13 Feb 2024 14:55:14 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1F20F33FE60 for ; Tue, 13 Feb 2024 14:55:13 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id E3102CB1 for ; Tue, 13 Feb 2024 14:55:09 +0000 (UTC) From: "Rui Huang" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Rui Huang" Message-ID: <1707836099.586fcb276d9d6a141869f9e5b0507414019f1b95.vowstar@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sci-electronics/kactus2/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sci-electronics/kactus2/Manifest sci-electronics/kactus2/kactus2-3.13.1.ebuild X-VCS-Directories: sci-electronics/kactus2/ X-VCS-Committer: vowstar X-VCS-Committer-Name: Rui Huang X-VCS-Revision: 586fcb276d9d6a141869f9e5b0507414019f1b95 X-VCS-Branch: dev Date: Tue, 13 Feb 2024 14:55:09 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fcda2441-e48b-4860-9756-34d2de1837bc X-Archives-Hash: 03033e3aefdad1d4cc8544db2351aff7 commit: 586fcb276d9d6a141869f9e5b0507414019f1b95 Author: Huang Rui gmail com> AuthorDate: Tue Feb 13 14:54:59 2024 +0000 Commit: Rui Huang gmail com> CommitDate: Tue Feb 13 14:54:59 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=586fcb27 sci-electronics/kactus2: add 3.13.1 Signed-off-by: Huang Rui gmail.com> sci-electronics/kactus2/Manifest | 1 + sci-electronics/kactus2/kactus2-3.13.1.ebuild | 88 +++++++++++++++++++++++++++ 2 files changed, 89 insertions(+) diff --git a/sci-electronics/kactus2/Manifest b/sci-electronics/kactus2/Manifest index e63830fffb..97d16a6b94 100644 --- a/sci-electronics/kactus2/Manifest +++ b/sci-electronics/kactus2/Manifest @@ -1,2 +1,3 @@ DIST kactus2-3.12.0.tar.gz 28154387 BLAKE2B c8e0a982343d3a34f9186bca1778b68b4dfdcd977488751f90d9d5372df96c4f7349c90e15203f66778ee1be399e9e2ddb5342dffe1025754e44604c77c16684 SHA512 d7cef803314262c9fb0b77db88b5d7935203e1484965f475e954bceb1bc56a31ee9867fe1d73959d62a8454238480226df8fbd2d487442bce44fe7476de6d5bb DIST kactus2-3.13.0.tar.gz 28682844 BLAKE2B 2dc6d6b1ed18d95cce38179c0538c4697c8b2f0de0984fedf0a0b757a7c6c9268e91b9cb09a99c2cdd1913344e928b8d3d665da292d7c47ddf983f92d28142f8 SHA512 750a318fa543f4feaf8176bc9b9bcf244ac3f97d130b6dbe5483e68e7ac30b146c5d9362cdebb4129b62a1fec89a4f3bcfb97822e45930ad05a699ab1ad2f8f5 +DIST kactus2-3.13.1.tar.gz 28686011 BLAKE2B 2abe1d7f6abcfb97f41e293476c200e3d9ba31e32e2b34022d7bbb3007cd2a2c129c73b1414cc422fc7dbc6982636edcd4ad0dc89aff8d352b2e936583d08291 SHA512 9465da2448d54ae3c19aaf5d765b386dd997244ac8385c8e3fddde74807c30e37bdef4d7b56d1610c1c59a1ad10c7c13fe312b53b6263800c9142be7be558049 diff --git a/sci-electronics/kactus2/kactus2-3.13.1.ebuild b/sci-electronics/kactus2/kactus2-3.13.1.ebuild new file mode 100644 index 0000000000..b542e40348 --- /dev/null +++ b/sci-electronics/kactus2/kactus2-3.13.1.ebuild @@ -0,0 +1,88 @@ +# 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] +" + +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 +}