From 4f0e730d7bd20f29ce7ab70f5cb1078a5e8c742e Mon Sep 17 00:00:00 2001 From: Huang Rui Date: Mon, 20 Jul 2026 20:23:46 -0700 Subject: [PATCH] sci-electronics/yosys: add 0.67, drop 0.66 Upstream 0.67 replaced the GNU make build with CMake, so the ebuild now inherits cmake.eclass with slang and pyosys disabled to match the previous build. Signed-off-by: Huang Rui --- sci-electronics/yosys/Manifest | 2 +- .../{yosys-0.66.ebuild => yosys-0.67.ebuild} | 30 +++++++++---------- 2 files changed, 15 insertions(+), 17 deletions(-) rename sci-electronics/yosys/{yosys-0.66.ebuild => yosys-0.67.ebuild} (68%) diff --git a/sci-electronics/yosys/Manifest b/sci-electronics/yosys/Manifest index ea18741e65..535de8406a 100644 --- a/sci-electronics/yosys/Manifest +++ b/sci-electronics/yosys/Manifest @@ -1 +1 @@ -DIST yosys-0.66.tar.gz 11178019 BLAKE2B c9ddeeeeb46da5a26098cd1ed342a85e6a18043d143eb720783b737f538ab31c5cb5d956f7ae9b33d11ed55f39f001130c9ac409809ed85eefd86b2fd6e9120a SHA512 729b8b6cdaf52097894e54c9979fa4d3c606dc91270aa547fa473ba88999274bcbee6163c9c30352dae0eabaa804f9c2f1319a789705a257746138ff37ebd080 +DIST yosys-0.67.tar.gz 16180615 BLAKE2B e7528f0bb0c88db972d720d89ddb174166f22e7c063687a2bae88d372be326e0f24b33c1a67d6a1c80a19aee7b0b8486a100eb504ff0e5d8a21bcef684f1d2fe SHA512 3bfc178b4f36c27085da995dbd60f7a62355bec2d3caa85787ca5e65cc8bbd438fa5aab96c7af0f502923324acddcb0336d840ae0fabcfda8c4aaa2e0dd797e0 diff --git a/sci-electronics/yosys/yosys-0.66.ebuild b/sci-electronics/yosys/yosys-0.67.ebuild similarity index 68% rename from sci-electronics/yosys/yosys-0.66.ebuild rename to sci-electronics/yosys/yosys-0.67.ebuild index e243357db4..5d5d795169 100644 --- a/sci-electronics/yosys/yosys-0.66.ebuild +++ b/sci-electronics/yosys/yosys-0.67.ebuild @@ -6,12 +6,12 @@ EAPI=8 PYTHON_COMPAT=( python3_{12..14} ) LLVM_COMPAT=( {18..21} ) -inherit python-any-r1 llvm-r2 +inherit cmake python-any-r1 llvm-r2 DESCRIPTION="framework for Verilog RTL synthesis" HOMEPAGE="https://yosyshq.net/yosys/" SRC_URI=" - https://github.com/YosysHQ/${PN}/releases/download/v${PV}/yosys-src.tar.gz -> ${P}.tar.gz + https://github.com/YosysHQ/${PN}/releases/download/v${PV}/yosys.tar.gz -> ${P}.tar.gz " S="${WORKDIR}" @@ -34,35 +34,33 @@ RDEPEND=" DEPEND="${RDEPEND}" BDEPEND=" ${PYTHON_DEPS} + app-alternatives/lex + app-alternatives/yacc dev-vcs/git virtual/pkgconfig " pkg_setup() { # llvm-r2 and python-any-r1 both export pkg_setup and llvm-r2 wins, - # leaving PYTHON unset, so call python_setup ourselves. An empty - # PYTHON_EXECUTABLE makes the Makefile run helper scripts via their env - # python3 shebang, which breaks with python-exec[-native-symlinks]. + # leaving PYTHON unset, so call python_setup ourselves. llvm-r2_pkg_setup python_setup } src_configure() { - cat <<-__EOF__ >> Makefile.conf || die - PREFIX := ${EPREFIX}/usr - STRIP := @echo "skipping strip" - CXXFLAGS += ${CXXFLAGS} - LINKFLAGS += ${LDFLAGS} - PYTHON_EXECUTABLE := ${PYTHON} - __EOF__ - - default + local mycmakeargs=( + -DYOSYS_WITHOUT_SLANG=ON + -DYOSYS_WITH_PYTHON=OFF + -DYOSYS_INSTALL_DRIVER=ON + -DPython3_EXECUTABLE="${PYTHON}" + ) + cmake_src_configure } src_install() { - default + cmake_src_install - # yosys-smtbmc and yosys-witness keep an env python3 shebang that also + # yosys-smtbmc and yosys-witness keep an env python3 shebang that # breaks under python-exec[-native-symlinks]; retarget them at EPYTHON. python_fix_shebang "${ED}"/usr/bin/yosys-smtbmc "${ED}"/usr/bin/yosys-witness }