blob: 54336b2b4dd751d947b66e2fb974a9e2d4a48964 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{13..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
PATCHES=(
"${FILESDIR}"/${P}-python-3.14.patch
)
RDEPEND="
dev-python/find-libpython[${PYTHON_USEDEP}]
"
DEPEND="${RDEPEND}"
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"
}
|