blob: 74412d6f85bba60253eb7bbc63798924fce06413 (
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
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/iverilog/iverilog-0.9.5.ebuild,v 1.2 2012/05/25 13:27:55 xmw Exp $
EAPI=4
inherit eutils multilib
DESCRIPTION="A Verilog simulation and synthesis tool"
SRC_URI="ftp://icarus.com/pub/eda/verilog/v${PV:0:3}/verilog-${PV}.tar.gz"
HOMEPAGE="http://www.icarus.com/eda/verilog/"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE="examples"
RDEPEND="app-arch/bzip2
sys-libs/readline
sys-libs/zlib"
DEPEND="${RDEPEND}"
S="${WORKDIR}/verilog-${PV}"
src_prepare() {
# Fix tests
mkdir -p lib/ivl
touch lib/ivl/ivl
sed -i -e 's/driver\/iverilog -B./IVERILOG_ROOT="." driver\/iverilog -B./' Makefile.in || die
# Fix LDFLAGS
sed -i -e 's/@shared@/@shared@ $(LDFLAGS)/' {cadpli,tgt-vhdl,tgt-null,tgt-stub,tgt-vvp}/Makefile.in || die
}
src_install() {
emake \
prefix="${D}"/usr \
mandir="${D}"/usr/share/man \
infodir="${D}"/usr/share/info \
libdir="${D}"/usr/$(get_libdir) \
libdir64="${D}"/usr/$(get_libdir) \
vpidir="${D}"/usr/$(get_libdir)/ivl \
install
dodoc *.txt
if use examples ; then
insinto /usr/share/doc/${PF}
doins -r examples
fi
}
|