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

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

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2007 Gentoo Foundation 1# Copyright 1999-2008 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sci-electronics/gplcver/gplcver-2.12a.ebuild,v 1.1 2007/09/16 15:37:15 calchan Exp $ 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 4
5MY_PN=gpl-cver 5MY_PN=gpl-cver
6 6
7DESCRIPTION="Verilog simulator" 7DESCRIPTION="Verilog simulator"
8HOMEPAGE="http://www.pragmatic-c.com/${MY_PN}" 8HOMEPAGE="http://www.pragmatic-c.com/${MY_PN}"
13IUSE="" 13IUSE=""
14S=${WORKDIR}/${P}.src 14S=${WORKDIR}/${P}.src
15 15
16src_unpack() { 16src_unpack() {
17 unpack ${A} 17 unpack ${A}
18 cd ${S} 18 cd "${S}"
19 sed -i \ 19 sed -i \
20 -e "s/^CFLAGS/#CFLAGS/" \ 20 -e "s/^CFLAGS/#CFLAGS/" \
21 -e "s/(CFLAGS)/(INCS) \$(CFLAGS)/" \ 21 -e "s/(CFLAGS)/(INCS) \$(CFLAGS)/" \
22 -e "s/(LFLAGS)/(LFLAGS) \$(LDFLAGS)/" \ 22 -e "s/(LFLAGS)/(LFLAGS) \$(LDFLAGS)/" \
23 src/makefile.* | die "sed failed" 23 src/makefile.* || die "sed failed"
24 sed -i \ 24 sed -i \
25 -e "s/^CFLAGS/#CFLAGS/" \ 25 -e "s/^CFLAGS/#CFLAGS/" \
26 -e "s/(OPTFLGS) vcddiff.o/(LDFLAGS) vcddiff.o/" \ 26 -e "s/(OPTFLGS) vcddiff.o/(LDFLAGS) vcddiff.o/" \
27 vcddiff.dir/src/makefile.* | die "sed failed" 27 vcddiff.dir/src/makefile.* || die "sed failed"
28} 28}
29 29
30src_compile(){ 30src_compile(){
31 cd ${S}/src 31 cd "${S}"/src
32 emake -f makefile.lnx || die "emake failed" 32 emake -f makefile.lnx || die "emake failed"
33 cd ${S}/vcddiff.dir/src 33 cd "${S}"/vcddiff.dir/src
34 emake -f makefile.lnx || die "emake failed" 34 emake -f makefile.lnx || die "emake failed"
35} 35}
36 36
37src_install() { 37src_install() {
38 dobin bin/cver bin/vcddiff || die "Failed installing binaries" 38 dobin bin/cver bin/vcddiff || die "Failed installing binaries"
44 doins pli_incs/*.h 44 doins pli_incs/*.h
45} 45}
46 46
47src_test() { 47src_test() {
48 # fixme: make tests die if something fails 48 # fixme: make tests die if something fails
49 cd ${S}/tests_and_examples/ 49 cd "${S}"/tests_and_examples/
50 # first verify install 50 # first verify install
51 cd install.tst 51 cd install.tst
52 ./inst_tst.sh 52 ./inst_tst.sh
53 # now individual tests 53 # now individual tests
54 cd ../capacity.tst 54 cd ../capacity.tst

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20