1 |
commit: 0fc98522fe830493d8472d21a784d48fa3dca03e |
2 |
Author: Huang Rui <vowstar <AT> gmail <DOT> com> |
3 |
AuthorDate: Tue Jan 7 06:07:14 2020 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Tue Jan 7 06:20:02 2020 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0fc98522 |
7 |
|
8 |
sci-electronics/iverilog: add iverilog-9999.ebuild |
9 |
|
10 |
Signed-off-by: Huang Rui <vowstar <AT> gmail.com> |
11 |
Closes: https://github.com/gentoo/gentoo/pull/14258 |
12 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
13 |
|
14 |
sci-electronics/iverilog/iverilog-9999.ebuild | 72 +++++++++++++++++++++++++++ |
15 |
1 file changed, 72 insertions(+) |
16 |
|
17 |
diff --git a/sci-electronics/iverilog/iverilog-9999.ebuild b/sci-electronics/iverilog/iverilog-9999.ebuild |
18 |
new file mode 100644 |
19 |
index 00000000000..93a9f3f1c0c |
20 |
--- /dev/null |
21 |
+++ b/sci-electronics/iverilog/iverilog-9999.ebuild |
22 |
@@ -0,0 +1,72 @@ |
23 |
+# Copyright 1999-2020 Gentoo Authors |
24 |
+# Distributed under the terms of the GNU General Public License v2 |
25 |
+ |
26 |
+EAPI=7 |
27 |
+ |
28 |
+inherit autotools |
29 |
+ |
30 |
+GITHUB_PV=$(ver_rs 1- '_') |
31 |
+ |
32 |
+DESCRIPTION="A Verilog simulation and synthesis tool" |
33 |
+HOMEPAGE=" |
34 |
+ http://iverilog.icarus.com |
35 |
+ https://github.com/steveicarus/iverilog |
36 |
+" |
37 |
+ |
38 |
+if [[ ${PV} == "9999" ]] ; then |
39 |
+ inherit git-r3 |
40 |
+ EGIT_REPO_URI="https://github.com/steveicarus/${PN}.git" |
41 |
+else |
42 |
+ SRC_URI="https://github.com/steveicarus/${PN}/archive/v${GITHUB_PV}.tar.gz -> ${P}.tar.gz" |
43 |
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sh ~sparc ~x86" |
44 |
+ S="${WORKDIR}/${PN}-${GITHUB_PV}" |
45 |
+fi |
46 |
+ |
47 |
+LICENSE="LGPL-2.1" |
48 |
+SLOT="0" |
49 |
+IUSE="examples" |
50 |
+ |
51 |
+# If you are building from git, you will also need gperf to generate |
52 |
+# the configure scripts. |
53 |
+RDEPEND=" |
54 |
+ sys-libs/readline:0 |
55 |
+ sys-libs/zlib |
56 |
+" |
57 |
+ |
58 |
+DEPEND=" |
59 |
+ dev-util/gperf |
60 |
+ ${RDEPEND} |
61 |
+" |
62 |
+ |
63 |
+src_prepare() { |
64 |
+ default |
65 |
+ |
66 |
+ # From upstreams autoconf.sh, to make it utilize the autotools eclass |
67 |
+ # Here translate the autoconf.sh, equivalent to the following code |
68 |
+ # > sh autoconf.sh |
69 |
+ |
70 |
+ # Autoconf in root ... |
71 |
+ eautoconf --force |
72 |
+ # Precompiling lexor_keyword.gperf |
73 |
+ gperf -o -i 7 -C -k 1-4,6,9,\$ -H keyword_hash -N check_identifier -t ./lexor_keyword.gperf > lexor_keyword.cc || die |
74 |
+ # Precompiling vhdlpp/lexor_keyword.gperf |
75 |
+ cd vhdlpp || die |
76 |
+ 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 |
77 |
+} |
78 |
+ |
79 |
+src_compile() { |
80 |
+ default |
81 |
+} |
82 |
+ |
83 |
+src_install() { |
84 |
+ local DOCS=( *.txt ) |
85 |
+ # Default build fails with parallel jobs, |
86 |
+ # https://github.com/steveicarus/iverilog/pull/294 |
87 |
+ emake installdirs DESTDIR="${D}" |
88 |
+ default |
89 |
+ |
90 |
+ if use examples; then |
91 |
+ dodoc -r examples |
92 |
+ docompress -x /usr/share/doc/${PF}/examples |
93 |
+ fi |
94 |
+} |