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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sun Sep 16 15:37:15 2007 UTC (7 years ago) by calchan
Branch: MAIN
Version bump, thanks to Luis Vitorio Cargnini (bug #187067).
(Portage version: 2.1.3.9)

1 calchan 1.1 # Copyright 1999-2007 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.2 2006/08/12 11:42:09 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="~ppc ~x86"
13     IUSE=""
14     S=${WORKDIR}/${P}.src
15    
16     src_unpack() {
17     unpack ${A}
18     cd ${S}
19     sed -i \
20     -e "s/^CFLAGS/#CFLAGS/" \
21     -e "s/(CFLAGS)/(INCS) \$(CFLAGS)/" \
22     -e "s/(LFLAGS)/(LFLAGS) \$(LDFLAGS)/" \
23     src/makefile.* | die "sed failed"
24     sed -i \
25     -e "s/^CFLAGS/#CFLAGS/" \
26     -e "s/(OPTFLGS) vcddiff.o/(LDFLAGS) vcddiff.o/" \
27     vcddiff.dir/src/makefile.* | die "sed failed"
28     }
29    
30     src_compile(){
31     cd ${S}/src
32     emake -f makefile.lnx || die "emake failed"
33     cd ${S}/vcddiff.dir/src
34     emake -f makefile.lnx || die "emake failed"
35     }
36    
37     src_install() {
38     dobin bin/cver bin/vcddiff || die "Failed installing binaries"
39     doman doc/systasks.1
40     dodoc doc/README doc/cver*[!htm] doc/dbg.hlp doc/systasks.pdf vcddiff.dir/README.vcddiff
41     dohtml doc/cver.faq.htm
42     dodir /usr/include/cver_pli_incs
43     insinto /usr/include/cver_pli_incs
44     doins pli_incs/*.h
45     }
46    
47     src_test() {
48     # fixme: make tests die if something fails
49     cd ${S}/tests_and_examples/
50     # first verify install
51     cd install.tst
52     ./inst_tst.sh
53     # now individual tests
54     cd ../capacity.tst
55     ../../bin/cver -f lfsr.vc
56     diff verilog.log lfsr.plg
57     cd ../examples.acc
58     ./inst_pli.sh lnx
59     #opt_inst_pli.sh lnx
60     cd ../examples.tf
61     ./inst_pli.sh lnx
62     #opt_inst_pli.sh lnx
63     cd ../examples.vpi
64     ./inst_pli.sh lnx
65     }

  ViewVC Help
Powered by ViewVC 1.1.20