/[gentoo-x86]/sci-electronics/gplcver/gplcver-2.11a.ebuild
Gentoo

Contents of /sci-electronics/gplcver/gplcver-2.11a.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (show annotations) (download)
Sat Aug 12 11:42:09 2006 UTC (8 years, 4 months ago) by chrb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.1: +3 -3 lines
stable on x86. remove old ebuilds.
(Portage version: 2.1.1_pre4-r4)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/gplcver/gplcver-2.11a.ebuild,v 1.1 2005/09/22 22:38:27 chrb Exp $
4
5 MY_PN=gpl-cver
6
7 DESCRIPTION="Verilog simulator"
8 HOMEPAGE="http://www.pragmatic-c.com/${MY_PN}"
9 SRC_URI="http://www.pragmatic-c.com/${MY_PN}/downloads/${P}.src.tar.bz2"
10 LICENSE="GPL-2"
11 SLOT="0"
12 KEYWORDS="x86 ~ppc"
13 IUSE=""
14 S=${WORKDIR}/${P}.src
15
16 src_unpack() {
17 unpack ${A}
18 sed -i -e "s/^\(CFLAGS= .*\)/#\1\nCFLAGS=\$(WARNS) \$(INCS) ${CFLAGS}/" ${S}/src/makefile.lnx
19 sed -i -e "s/^\(CFLAGS= .*\)/#\1\nCFLAGS= ${CFLAGS}/" ${S}/vcddiff.dir/src/makefile.lnx
20 }
21
22 src_compile(){
23 cd ${S}/src
24 emake -f makefile.lnx || die
25 cd ${S}/vcddiff.dir/src
26 emake -f makefile.lnx || die
27 }
28
29 src_install() {
30 dodir /usr
31 dodir /usr/bin
32 dobin bin/cver bin/vcddiff || die
33 doman doc/systasks.1
34 dodoc doc/README doc/cver*[!htm] doc/dbg.hlp doc/systasks.pdf vcddiff.dir/README.vcddiff
35 dohtml doc/cver.faq.htm
36 dodir /usr/include/cver_pli_incs
37 insinto /usr/include/cver_pli_incs
38 doins pli_incs/*.h
39 }
40
41 src_test() {
42 # fixme: make tests die if something fails
43 cd ${S}/tests_and_examples/
44 # first verify install
45 cd install.tst
46 ./inst_tst.sh
47 # now individual tests
48 cd ../capacity.tst
49 ../../bin/cver -f lfsr.vc
50 diff verilog.log lfsr.plg
51 cd ../examples.acc
52 ./inst_pli.sh lnx
53 #opt_inst_pli.sh lnx
54 cd ../examples.tf
55 ./inst_pli.sh lnx
56 #opt_inst_pli.sh lnx
57 cd ../examples.vpi
58 ./inst_pli.sh lnx
59 }

  ViewVC Help
Powered by ViewVC 1.1.20