/[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.3 - (hide annotations) (download)
Mon Oct 22 21:49:21 2012 UTC (22 months, 3 weeks ago) by ago
Branch: MAIN
CVS Tags: HEAD
Changes since 1.2: +3 -3 lines
Add ~amd64, wrt bug #439326

(Portage version: 2.1.11.9/cvs/Linux x86_64)

1 ago 1.3 # Copyright 1999-2012 Gentoo Foundation
2 calchan 1.1 # Distributed under the terms of the GNU General Public License v2
3 ago 1.3 # $Header: /var/cvsroot/gentoo-x86/sci-electronics/gplcver/gplcver-2.12a.ebuild,v 1.2 2008/02/12 22:31:50 calchan Exp $
4 calchan 1.1
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 ago 1.3 KEYWORDS="~amd64 ~ppc ~x86"
13 calchan 1.1 IUSE=""
14     S=${WORKDIR}/${P}.src
15    
16     src_unpack() {
17     unpack ${A}
18 calchan 1.2 cd "${S}"
19 calchan 1.1 sed -i \
20     -e "s/^CFLAGS/#CFLAGS/" \
21     -e "s/(CFLAGS)/(INCS) \$(CFLAGS)/" \
22     -e "s/(LFLAGS)/(LFLAGS) \$(LDFLAGS)/" \
23 calchan 1.2 src/makefile.* || die "sed failed"
24 calchan 1.1 sed -i \
25     -e "s/^CFLAGS/#CFLAGS/" \
26     -e "s/(OPTFLGS) vcddiff.o/(LDFLAGS) vcddiff.o/" \
27 calchan 1.2 vcddiff.dir/src/makefile.* || die "sed failed"
28 calchan 1.1 }
29    
30     src_compile(){
31 calchan 1.2 cd "${S}"/src
32 calchan 1.1 emake -f makefile.lnx || die "emake failed"
33 calchan 1.2 cd "${S}"/vcddiff.dir/src
34 calchan 1.1 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 calchan 1.2 cd "${S}"/tests_and_examples/
50 calchan 1.1 # 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