sci-electronics/cocotb: add 2.1.0

Signed-off-by: Huang Rui <vowstar@gmail.com>
This commit is contained in:
Huang Rui committed 2026-09-10 21:30:52 -07:00
1 parent 5e70152a90
commit 91ceec6e89
2 files changed
+58

No files matched your search

+1
View File
@@ -1,2 +1,3 @@
DIST cocotb-1.9.2.tar.gz 300696 BLAKE2B 6905ad2ff978083c1d6ae39df8c31e322ac68c1c8eb289a5bf50d027f99ae7dc4b40748b328fdabc543cbf7f8ca16d214809adba23054021d973016a13bc7d56 SHA512 1a151a63ed9ec3868b6d9165ee6e6144b52fbbc9b83e78027cc9a1d907142148e2643fd8880f8fd6b1155ce76cba65ecf1f851c6a72e45ece7c3c9921ab5fe83
DIST cocotb-2.0.1.tar.gz 318250 BLAKE2B 1152130d3da5d8238f85367f6122594bb8ad6bb6595a42285e5eef7e52afe57568418fd9bfe528990fc3d55fb3303741d388514df885c7f3a01358c81055fa95 SHA512 db420c53cf1432123b3ca9ee3daddfdd43a3ec2918962a5a4cc465701456e6678edc1e3b08571f7cdb3e7530910915d6ab2d5850f01833abd359e5ef5b62f0c7
DIST cocotb-2.1.0.tar.gz 372215 BLAKE2B 0a9d6b894dfbfeca6086b86c5b0888a14e0a4dae9af797faa998c8fc217d41f3c38d5706b5a0c6f83e7a10b6c24e11e94617e3b52626eb427cb3f76e3ee5a9d4 SHA512 18d135c98756ed593f37f096385c6fc5f85d54f221918583394b577de9a1aa05d28a7626cecc6cf684c2bd2675576f85eb6e323289014bfd3a1f6ac3121df207
@@ -0,0 +1,57 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{12..14} )
DISTUTILS_USE_PEP517=setuptools
DISTUTILS_EXT=1
inherit distutils-r1 pypi
DESCRIPTION="Python-based chip (RTL) verification"
HOMEPAGE="https://www.cocotb.org"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~riscv ~x86"
# Tests requires many eda tools, and can't work inside network sandbox
RESTRICT=test
RDEPEND="
dev-python/find-libpython[${PYTHON_USEDEP}]
>=dev-python/pytest-6[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
src_prepare() {
# upstream resolves the version through setuptools-git-versioning
sed -i -e "s/^dynamic = \\[\"version\"\\]$/version = \"${PV}\"/" pyproject.toml || die
distutils-r1_src_prepare
}
src_compile() {
# parallel build is broken
MAKEOPTS="-j1" distutils-r1_src_compile
}
python_test() {
epytest
}
pkg_postinst() {
elog "cocotb requires a HDL simulator to function correctly."
elog "You may want to install one of the following packages:"
elog " sci-electronics/icarus-verilog - Verilog simulator"
elog " sci-electronics/ghdl - VHDL simulator"
elog " sci-electronics/verilator - Fast Verilog simulator"
elog ""
elog "Commercial EDA tools are also supported, including:"
elog " - Synopsys VCS"
elog " - Cadence Xcelium/Incisive"
elog " - Siemens EDA Modelsim/Questa"
elog " - Aldec Riviera-PRO"
elog "Note: These commercial tools need to be obtained from their respective vendors"
}