Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-electronics/iverilog/
Date: Sun, 28 Feb 2021 17:39:15
Message-Id: 1614533946.4c02986d1eb865d18930db5d684b50f155d7cac2.sam@gentoo
1 commit: 4c02986d1eb865d18930db5d684b50f155d7cac2
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Sun Feb 28 17:33:40 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Sun Feb 28 17:39:06 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c02986d
7
8 sci-electronics/iverilog: Revert "remove old"
9
10 This dropped the last stable versions for ppc and sparc.
11 This reverts commit df8b7414f4120d86af3b2d69a54529919ecef655.
12
13 Bug: https://bugs.gentoo.org/772065
14 Signed-off-by: Sam James <sam <AT> gentoo.org>
15
16 sci-electronics/iverilog/iverilog-10.3-r1.ebuild | 75 ++++++++++++++++++++++++
17 sci-electronics/iverilog/iverilog-10.3.ebuild | 75 ++++++++++++++++++++++++
18 2 files changed, 150 insertions(+)
19
20 diff --git a/sci-electronics/iverilog/iverilog-10.3-r1.ebuild b/sci-electronics/iverilog/iverilog-10.3-r1.ebuild
21 new file mode 100644
22 index 00000000000..8a107b99189
23 --- /dev/null
24 +++ b/sci-electronics/iverilog/iverilog-10.3-r1.ebuild
25 @@ -0,0 +1,75 @@
26 +# Copyright 1999-2020 Gentoo Authors
27 +# Distributed under the terms of the GNU General Public License v2
28 +
29 +EAPI=7
30 +
31 +inherit autotools
32 +
33 +GITHUB_PV=$(ver_rs 1- '_')
34 +
35 +DESCRIPTION="A Verilog simulation and synthesis tool"
36 +HOMEPAGE="
37 + http://iverilog.icarus.com
38 + https://github.com/steveicarus/iverilog
39 +"
40 +
41 +if [[ ${PV} == "9999" ]] ; then
42 + inherit git-r3
43 + EGIT_REPO_URI="https://github.com/steveicarus/${PN}.git"
44 +else
45 + SRC_URI="https://github.com/steveicarus/${PN}/archive/v${GITHUB_PV}.tar.gz -> ${P}.tar.gz"
46 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
47 + S="${WORKDIR}/${PN}-${GITHUB_PV}"
48 +fi
49 +
50 +LICENSE="LGPL-2.1"
51 +SLOT="0"
52 +IUSE="examples"
53 +
54 +# If you are building from git, you will also need gperf to generate
55 +# the configure scripts.
56 +RDEPEND="
57 + sys-libs/readline:=
58 + sys-libs/zlib
59 +"
60 +
61 +DEPEND="
62 + dev-util/gperf
63 + sys-devel/bison
64 + sys-devel/flex
65 + ${RDEPEND}
66 +"
67 +
68 +PATCHES=(
69 + "${FILESDIR}"/${PN}-10.3-file-missing.patch #705412
70 + "${FILESDIR}"/${PN}-10.3-fno-common.patch #706366
71 +)
72 +
73 +src_prepare() {
74 + default
75 +
76 + # From upstreams autoconf.sh, to make it utilize the autotools eclass
77 + # Here translate the autoconf.sh, equivalent to the following code
78 + # > sh autoconf.sh
79 +
80 + # Autoconf in root ...
81 + eautoconf --force
82 + # Precompiling lexor_keyword.gperf
83 + gperf -o -i 7 -C -k 1-4,6,9,\$ -H keyword_hash -N check_identifier -t ./lexor_keyword.gperf > lexor_keyword.cc || die
84 + # Precompiling vhdlpp/lexor_keyword.gperf
85 + cd vhdlpp || die
86 + 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
87 +}
88 +
89 +src_install() {
90 + local DOCS=( *.txt )
91 + # Default build fails with parallel jobs,
92 + # https://github.com/steveicarus/iverilog/pull/294
93 + emake installdirs DESTDIR="${D}"
94 + default
95 +
96 + if use examples; then
97 + dodoc -r examples
98 + docompress -x /usr/share/doc/${PF}/examples
99 + fi
100 +}
101
102 diff --git a/sci-electronics/iverilog/iverilog-10.3.ebuild b/sci-electronics/iverilog/iverilog-10.3.ebuild
103 new file mode 100644
104 index 00000000000..a2dea488d4f
105 --- /dev/null
106 +++ b/sci-electronics/iverilog/iverilog-10.3.ebuild
107 @@ -0,0 +1,75 @@
108 +# Copyright 1999-2020 Gentoo Authors
109 +# Distributed under the terms of the GNU General Public License v2
110 +
111 +EAPI=7
112 +
113 +inherit autotools
114 +
115 +GITHUB_PV=$(ver_rs 1- '_')
116 +
117 +DESCRIPTION="A Verilog simulation and synthesis tool"
118 +HOMEPAGE="
119 + http://iverilog.icarus.com
120 + https://github.com/steveicarus/iverilog
121 +"
122 +
123 +if [[ ${PV} == "9999" ]] ; then
124 + inherit git-r3
125 + EGIT_REPO_URI="https://github.com/steveicarus/${PN}.git"
126 +else
127 + SRC_URI="https://github.com/steveicarus/${PN}/archive/v${GITHUB_PV}.tar.gz -> ${P}.tar.gz"
128 + KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ppc ~ppc64 ~riscv ~s390 sparc x86"
129 + S="${WORKDIR}/${PN}-${GITHUB_PV}"
130 +fi
131 +
132 +LICENSE="LGPL-2.1"
133 +SLOT="0"
134 +IUSE="examples"
135 +
136 +# If you are building from git, you will also need gperf to generate
137 +# the configure scripts.
138 +RDEPEND="
139 + sys-libs/readline:0
140 + sys-libs/zlib
141 +"
142 +
143 +DEPEND="
144 + dev-util/gperf
145 + sys-devel/bison
146 + sys-devel/flex
147 + ${RDEPEND}
148 +"
149 +
150 +PATCHES=(
151 + "${FILESDIR}"/${PN}-10.3-file-missing.patch #705412
152 + "${FILESDIR}"/${PN}-10.3-fno-common.patch #706366
153 +)
154 +
155 +src_prepare() {
156 + default
157 +
158 + # From upstreams autoconf.sh, to make it utilize the autotools eclass
159 + # Here translate the autoconf.sh, equivalent to the following code
160 + # > sh autoconf.sh
161 +
162 + # Autoconf in root ...
163 + eautoconf --force
164 + # Precompiling lexor_keyword.gperf
165 + gperf -o -i 7 -C -k 1-4,6,9,\$ -H keyword_hash -N check_identifier -t ./lexor_keyword.gperf > lexor_keyword.cc || die
166 + # Precompiling vhdlpp/lexor_keyword.gperf
167 + cd vhdlpp || die
168 + 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
169 +}
170 +
171 +src_install() {
172 + local DOCS=( *.txt )
173 + # Default build fails with parallel jobs,
174 + # https://github.com/steveicarus/iverilog/pull/294
175 + emake installdirs DESTDIR="${D}"
176 + default
177 +
178 + if use examples; then
179 + dodoc -r examples
180 + docompress -x /usr/share/doc/${PF}/examples
181 + fi
182 +}