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)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5046C158046 for ; Thu, 10 Oct 2024 05:29:03 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 3D283E2AD0; Thu, 10 Oct 2024 05:29:02 +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 1BCECE2AD0 for ; Thu, 10 Oct 2024 05:29:02 +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 F1FEC343240 for ; Thu, 10 Oct 2024 05:29:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 6236397F for ; Thu, 10 Oct 2024 05:28:59 +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: <1728538068.6d3d81ba4fa7cbcc062d5d8fcda5713acc646dab.vowstar@gentoo> Subject: [gentoo-commits] repo/proj/guru:dev commit in: sci-electronics/verilator/ X-VCS-Repository: repo/proj/guru X-VCS-Files: sci-electronics/verilator/Manifest sci-electronics/verilator/verilator-5.026.ebuild X-VCS-Directories: sci-electronics/verilator/ X-VCS-Committer: vowstar X-VCS-Committer-Name: Rui Huang X-VCS-Revision: 6d3d81ba4fa7cbcc062d5d8fcda5713acc646dab X-VCS-Branch: dev Date: Thu, 10 Oct 2024 05:28:59 +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: 46f1a008-2f4f-4521-9724-5bed9af6cf3c X-Archives-Hash: f813a33f33eefdd9aaf75f7ffb6a90ee commit: 6d3d81ba4fa7cbcc062d5d8fcda5713acc646dab Author: Huang Rui gmail com> AuthorDate: Thu Oct 10 05:27:48 2024 +0000 Commit: Rui Huang gmail com> CommitDate: Thu Oct 10 05:27:48 2024 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6d3d81ba sci-electronics/verilator: add 5.026 Signed-off-by: Huang Rui gmail.com> sci-electronics/verilator/Manifest | 1 + sci-electronics/verilator/verilator-5.026.ebuild | 69 ++++++++++++++++++++++++ 2 files changed, 70 insertions(+) diff --git a/sci-electronics/verilator/Manifest b/sci-electronics/verilator/Manifest index 58ddf4424..bb15cfceb 100644 --- a/sci-electronics/verilator/Manifest +++ b/sci-electronics/verilator/Manifest @@ -1,2 +1,3 @@ DIST verilator-5.022.tar.gz 3761782 BLAKE2B 49713ce89f101eb6f6165ee316fc018936ccb21fd6ceccce343684ff3cca10285f851172549843078801e69828f0069877ec68a8ac39a1fbce4a2426d3e4b44d SHA512 5b919ed5d4cf863434f10f39bbb3a5155d63f79765f5f1d5ae543023b0e350e0996507d250fbfb2e5129bbdf9a51cc5fd0b7154962747c89435648897525bc84 DIST verilator-5.024.tar.gz 3879481 BLAKE2B 5f25b4ab0b477fc58f3d052d49d3e13bf1fd5326a20873e2d85d0f2a8702f08dd47d93fc1db6eb3c5cef00d4a5e56c4636c381ca16985c8d7ccbe56bcad89e46 SHA512 34184f4c08bcbecf563b424c4c0fdcaf0c04d60e19887c4df5161b48db256dd7cbe960c71f854bd3dad073c193bbc0c576f171f84b634da58259b81e1afaf622 +DIST verilator-5.026.tar.gz 3931397 BLAKE2B 0c9bb9582dd170e4d4170eaf9353672a3b5f35ebeccf0669cbae6ab0b5060ed4aab07a1ebba616264354f5fddd85d9013440e4ff83b658602f6ec086c0e2a920 SHA512 95660da60c6f5fac9ce3c7298edfc5ee71beeb2aafe2908b31c83802a22bc4529389d687c3a51eb9370cc6bd1ae9e74e11cdab0de69fa278b1da0d664a393a68 diff --git a/sci-electronics/verilator/verilator-5.026.ebuild b/sci-electronics/verilator/verilator-5.026.ebuild new file mode 100644 index 000000000..71d8f4f5b --- /dev/null +++ b/sci-electronics/verilator/verilator-5.026.ebuild @@ -0,0 +1,69 @@ +# Copyright 1999-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI="8" + +PYTHON_COMPAT=( python3_{10..13} ) + +inherit autotools python-single-r1 + +DESCRIPTION="The fast free Verilog/SystemVerilog simulator" +HOMEPAGE=" + https://verilator.org + https://github.com/verilator/verilator +" + +if [[ "${PV}" == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/${PN}/${PN}.git" +else + SRC_URI="https://github.com/${PN}/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86" +fi + +LICENSE="|| ( Artistic-2 LGPL-3 )" +SLOT="0" +IUSE="debug test" +RESTRICT="!test? ( test )" + +REQUIRED_USE="${PYTHON_REQUIRED_USE}" +RDEPEND=" + ${PYTHON_DEPS} + dev-lang/perl + sys-libs/zlib +" + +DEPEND=" + ${RDEPEND} +" + +BDEPEND=" + sys-devel/bison + sys-devel/flex + test? ( + dev-build/cmake + ) +" + +src_prepare() { + default + if [[ ! "${PV}" == "9999" ]] ; then + # https://github.com/verilator/verilator/issues/3352 + sed -i "s/UNKNOWN_REV/(Gentoo ${PVR})/g" "${S}"/src/config_rev || die + fi + # https://bugs.gentoo.org/785151 + sed -i "s/python3/${EPYTHON}/g" "${S}"/configure.ac || die + find . -name "Makefile" -exec sed -i "s/python3/${EPYTHON}/g" {} + || die + find test_regress -type f -exec sed -i "s/python3/${EPYTHON}/g" {} + || die + python_fix_shebang . + # https://bugs.gentoo.org/887917 + if ! use debug; then + sed -i '/AC_SUBST(CFG_CXXFLAGS_DEBUG)/i CFG_CXXFLAGS_DEBUG=""' "${S}"/configure.ac || die + sed -i '/AC_SUBST(CFG_LDFLAGS_DEBUG)/i CFG_LDFLAGS_DEBUG=""' "${S}"/configure.ac || die + fi + eautoconf --force +} + +src_test() { + emake test +}