mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-22 21:43:03 -04:00
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 <vowstar@gmail.com>
This commit is contained in:
@@ -1 +1 @@
|
|||||||
DIST yosys-0.66.tar.gz 11178019 BLAKE2B c9ddeeeeb46da5a26098cd1ed342a85e6a18043d143eb720783b737f538ab31c5cb5d956f7ae9b33d11ed55f39f001130c9ac409809ed85eefd86b2fd6e9120a SHA512 729b8b6cdaf52097894e54c9979fa4d3c606dc91270aa547fa473ba88999274bcbee6163c9c30352dae0eabaa804f9c2f1319a789705a257746138ff37ebd080
|
DIST yosys-0.67.tar.gz 16180615 BLAKE2B e7528f0bb0c88db972d720d89ddb174166f22e7c063687a2bae88d372be326e0f24b33c1a67d6a1c80a19aee7b0b8486a100eb504ff0e5d8a21bcef684f1d2fe SHA512 3bfc178b4f36c27085da995dbd60f7a62355bec2d3caa85787ca5e65cc8bbd438fa5aab96c7af0f502923324acddcb0336d840ae0fabcfda8c4aaa2e0dd797e0
|
||||||
|
|||||||
@@ -6,12 +6,12 @@ EAPI=8
|
|||||||
PYTHON_COMPAT=( python3_{12..14} )
|
PYTHON_COMPAT=( python3_{12..14} )
|
||||||
LLVM_COMPAT=( {18..21} )
|
LLVM_COMPAT=( {18..21} )
|
||||||
|
|
||||||
inherit python-any-r1 llvm-r2
|
inherit cmake python-any-r1 llvm-r2
|
||||||
|
|
||||||
DESCRIPTION="framework for Verilog RTL synthesis"
|
DESCRIPTION="framework for Verilog RTL synthesis"
|
||||||
HOMEPAGE="https://yosyshq.net/yosys/"
|
HOMEPAGE="https://yosyshq.net/yosys/"
|
||||||
SRC_URI="
|
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}"
|
S="${WORKDIR}"
|
||||||
|
|
||||||
@@ -34,35 +34,33 @@ RDEPEND="
|
|||||||
DEPEND="${RDEPEND}"
|
DEPEND="${RDEPEND}"
|
||||||
BDEPEND="
|
BDEPEND="
|
||||||
${PYTHON_DEPS}
|
${PYTHON_DEPS}
|
||||||
|
app-alternatives/lex
|
||||||
|
app-alternatives/yacc
|
||||||
dev-vcs/git
|
dev-vcs/git
|
||||||
virtual/pkgconfig
|
virtual/pkgconfig
|
||||||
"
|
"
|
||||||
|
|
||||||
pkg_setup() {
|
pkg_setup() {
|
||||||
# llvm-r2 and python-any-r1 both export pkg_setup and llvm-r2 wins,
|
# llvm-r2 and python-any-r1 both export pkg_setup and llvm-r2 wins,
|
||||||
# leaving PYTHON unset, so call python_setup ourselves. An empty
|
# leaving PYTHON unset, so call python_setup ourselves.
|
||||||
# PYTHON_EXECUTABLE makes the Makefile run helper scripts via their env
|
|
||||||
# python3 shebang, which breaks with python-exec[-native-symlinks].
|
|
||||||
llvm-r2_pkg_setup
|
llvm-r2_pkg_setup
|
||||||
python_setup
|
python_setup
|
||||||
}
|
}
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
||||||
cat <<-__EOF__ >> Makefile.conf || die
|
local mycmakeargs=(
|
||||||
PREFIX := ${EPREFIX}/usr
|
-DYOSYS_WITHOUT_SLANG=ON
|
||||||
STRIP := @echo "skipping strip"
|
-DYOSYS_WITH_PYTHON=OFF
|
||||||
CXXFLAGS += ${CXXFLAGS}
|
-DYOSYS_INSTALL_DRIVER=ON
|
||||||
LINKFLAGS += ${LDFLAGS}
|
-DPython3_EXECUTABLE="${PYTHON}"
|
||||||
PYTHON_EXECUTABLE := ${PYTHON}
|
)
|
||||||
__EOF__
|
cmake_src_configure
|
||||||
|
|
||||||
default
|
|
||||||
}
|
}
|
||||||
|
|
||||||
src_install() {
|
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.
|
# breaks under python-exec[-native-symlinks]; retarget them at EPYTHON.
|
||||||
python_fix_shebang "${ED}"/usr/bin/yosys-smtbmc "${ED}"/usr/bin/yosys-witness
|
python_fix_shebang "${ED}"/usr/bin/yosys-smtbmc "${ED}"/usr/bin/yosys-witness
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user