blob: 767eb05426d92865ef69c85ebab03cf20d930e5e (
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
|
# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
MY_PN=gpl-cver
DESCRIPTION="Verilog simulator"
HOMEPAGE="http://sourceforge.net/projects/${PN}"
SRC_URI="http://www.pragmatic-c.com/${MY_PN}/downloads/${P}.src.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~x86"
IUSE=""
S=${WORKDIR}/${P}.src
src_unpack() {
unpack ${A}
cd "${S}"
sed -i \
-e "s/^CFLAGS/#CFLAGS/" \
-e "s/(CFLAGS)/(INCS) \$(CFLAGS)/" \
-e "s/(LFLAGS)/(LFLAGS) \$(LDFLAGS)/" \
src/makefile.* || die "sed failed"
sed -i \
-e "s/^CFLAGS/#CFLAGS/" \
-e "s/(OPTFLGS) vcddiff.o/(LDFLAGS) vcddiff.o/" \
vcddiff.dir/src/makefile.* || die "sed failed"
}
src_compile(){
cd "${S}"/src
emake -f makefile.lnx || die "emake failed"
cd "${S}"/vcddiff.dir/src
emake -f makefile.lnx || die "emake failed"
}
src_install() {
dobin bin/cver bin/vcddiff || die "Failed installing binaries"
doman doc/systasks.1
dodoc doc/README doc/cver*[!htm] doc/dbg.hlp doc/systasks.pdf vcddiff.dir/README.vcddiff
dohtml doc/cver.faq.htm
dodir /usr/include/cver_pli_incs
insinto /usr/include/cver_pli_incs
doins pli_incs/*.h
}
src_test() {
# fixme: make tests die if something fails
cd "${S}"/tests_and_examples/
# first verify install
cd install.tst
./inst_tst.sh
# now individual tests
cd ../capacity.tst
../../bin/cver -f lfsr.vc
diff verilog.log lfsr.plg
cd ../examples.acc
./inst_pli.sh lnx
#opt_inst_pli.sh lnx
cd ../examples.tf
./inst_pli.sh lnx
#opt_inst_pli.sh lnx
cd ../examples.vpi
./inst_pli.sh lnx
}
|