mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-24 17:09:10 -07:00
Closes: https://bugs.gentoo.org/940595 Signed-off-by: Huang Rui <vowstar@gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/46011 Closes: https://github.com/gentoo/gentoo/pull/46011 Signed-off-by: Sam James <sam@gentoo.org>
66 lines
1.4 KiB
Bash
66 lines
1.4 KiB
Bash
# Copyright 1999-2026 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
inherit autotools
|
|
|
|
GITHUB_PV=$(ver_rs 1- '_')
|
|
|
|
DESCRIPTION="A Verilog simulation and synthesis tool"
|
|
HOMEPAGE="
|
|
https://steveicarus.github.io/iverilog/
|
|
https://github.com/steveicarus/iverilog
|
|
"
|
|
|
|
if [[ ${PV} == "9999" ]] ; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/steveicarus/${PN}.git"
|
|
else
|
|
SRC_URI="https://github.com/steveicarus/${PN}/archive/v${GITHUB_PV}.tar.gz -> ${P}.tar.gz"
|
|
KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
|
|
S="${WORKDIR}/${PN}-${GITHUB_PV}"
|
|
fi
|
|
|
|
LICENSE="GPL-2+"
|
|
SLOT="0"
|
|
|
|
DEPEND="
|
|
sys-libs/readline:=
|
|
virtual/zlib:=
|
|
"
|
|
RDEPEND="${DEPEND}"
|
|
BDEPEND="
|
|
dev-util/gperf
|
|
sys-devel/bison
|
|
sys-devel/flex
|
|
"
|
|
|
|
src_prepare() {
|
|
default
|
|
|
|
# From upstreams autoconf.sh, to make it utilize the autotools eclass
|
|
# Here translate the autoconf.sh, equivalent to the following code
|
|
# > sh autoconf.sh
|
|
|
|
# Autoconf in root ...
|
|
eautoconf
|
|
|
|
# Precompiling lexor_keyword.gperf
|
|
gperf -o -i 7 -C -k 1-4,6,9,\$ -H keyword_hash -N check_identifier -t ./lexor_keyword.gperf \
|
|
> lexor_keyword.cc || die
|
|
# Precompiling vhdlpp/lexor_keyword.gperf
|
|
cd vhdlpp || die
|
|
gperf -o -i 7 --ignore-case -C -k 1-4,6,9,\$ -H keyword_hash -N check_identifier -t ./lexor_keyword.gperf \
|
|
> lexor_keyword.cc || die
|
|
}
|
|
|
|
src_install() {
|
|
local DOCS=( *.txt )
|
|
|
|
default
|
|
|
|
dodoc -r examples
|
|
docompress -x /usr/share/doc/${PF}/examples
|
|
}
|