blob: a0e95ea74ac9dcd266c80c69ad9bd956468c8952 (
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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
|
# Copyright 1999-2022 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="
http://iverilog.icarus.com
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="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 sparc x86"
S="${WORKDIR}/${PN}-${GITHUB_PV}"
fi
LICENSE="LGPL-2.1"
SLOT="0"
IUSE="examples"
# 721022, should depend on sys-libs/readline:=
DEPEND="
sys-libs/readline:=
sys-libs/zlib
"
RDEPEND="${DEPEND}"
BDEPEND="
dev-util/gperf
sys-devel/bison
sys-devel/flex
"
PATCHES=(
"${FILESDIR}"/${PN}-10.3-file-missing.patch #705412
"${FILESDIR}"/${PN}-10.3-fno-common.patch #706366
"${FILESDIR}"/${PN}-10.3-gen-bison-header.patch #734760
"${FILESDIR}"/${PN}-10.3-call-nm.patch #731906
"${FILESDIR}"/${PN}-10.3-configure-ac.patch #426262
"${FILESDIR}"/${PN}-10.3-override-var.patch #730096
)
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
# Move configure.in to configure.ac (bug #426262)
mv configure.in configure.ac || die
# Autoconf in root ...
eautoconf --force
# 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 build fails with parallel jobs,
# https://github.com/steveicarus/iverilog/pull/294
emake installdirs DESTDIR="${D}"
default
if use examples; then
dodoc -r examples
docompress -x /usr/share/doc/${PF}/examples
fi
}
|