/[gentoo-x86]/app-sci/tbass/tbass-20030318.ebuild
Gentoo

Contents of /app-sci/tbass/tbass-20030318.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Mon May 12 04:11:22 2003 UTC (16 years, 9 months ago) by george
Branch: MAIN
Branch point for: RELEASE-1_4
new version, a bug-fix update

1 # Copyright 1999-2003 Gentoo Technologies, Inc.
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /home/cvsroot/gentoo-x86/app-sci/tbass/tbass-20030108.ebuild,v 1.3 2003/03/11 21:11:45 seemant Exp $
4
5 IUSE=""
6
7 Name="balsa"
8 VerilogV="20030204"
9
10 DESCRIPTION="Balsa is both a framework for synthesising asynchronous hardware systems and the language for describing such systems"
11 HOMEPAGE="http://www.cs.man.ac.uk/amulet/projects/balsa/"
12 SRC_URI="ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/snapshots/${Name}-${PV}.tar.gz
13 ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/docs/balsa-manual-20030120.pdf
14 ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/examples/dma-example.tar.gz
15 ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/examples/examples.tar.gz
16 ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/snapshots/${Name}-tech-verilog-${VerilogV}.tar.gz
17 ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/snapshots/${Name}-tech-xilinx-20021029.tar.gz"
18
19 LICENSE="GPL-2"
20 SLOT="0"
21 KEYWORDS="~x86 ~ppc ~sparc "
22
23 DEPEND="sys-devel/binutils
24 >=app-sci/lard-${VerilogV}
25 dev-libs/gmp
26 dev-lang/perl
27 x11-libs/gtk+"
28
29 RDEPEND="${DEPEND}
30 dev-util/guile
31 media-gfx/graphviz
32 app-sci/gtkwave
33 app-sci/espresso-ab"
34
35 S=${WORKDIR}/${Name}-${PV}
36
37 if [ -f ${DISTDIR}/balsa-tech-ams-20030314.tar.gz ]; then
38 TECH_AMS=1
39 fi
40
41 src_unpack() {
42 unpack ${Name}-${PV}.tar.gz dma-example.tar.gz examples.tar.gz ${Name}-tech-verilog-${VerilogV}.tar.gz ${Name}-tech-xilinx-20021029.tar.gz
43 if [ $TECH_AMS ]; then unpack balsa-tech-ams-20030314.tar.gz; fi
44 cd ${WORKDIR}/balsa-tech-verilog-${VerilogV}
45 patch -p1 < ${FILESDIR}/${PN}-${VerilogV}-tech-verilog-configure.patch || die
46 cd ${WORKDIR}/balsa-tech-xilinx-20021029
47 patch -p1 < ${FILESDIR}/${PN}-${VerilogV}-tech-xilinx-configure.patch || die
48 }
49
50 src_compile() {
51 # compile balsa
52 econf
53
54 cd bin
55 sed -e "s: \$(bindir): \$(DESTDIR)\$(bindir):g" Makefile > Makefile.1
56 cp Makefile.1 Makefile
57 emake || die
58
59 # configure tech paths
60 if [ $TECH_AMS ]; then
61 cd ${WORKDIR}/balsa-tech-ams-20030314
62 econf
63 fi
64
65 cd ${WORKDIR}/balsa-tech-verilog-${VerilogV}
66 econf
67
68 cd ${WORKDIR}/balsa-tech-xilinx-20021029
69 econf
70 }
71
72 src_install() {
73 # install balsa
74 einstall || die "make install failed"
75
76 # move the docs to the right directory
77 dodoc ${D}/usr/doc/*
78 rm -rf ${D}/usr/doc
79
80 # install manual and examples
81 dodir /usr/share/doc/${P}/examples/dma-example
82 cp -R ${WORKDIR}/dma-example ${D}/usr/share/doc/${P}/examples
83 cp -R ${WORKDIR}/examples/* ${D}/usr/share/doc/${P}/examples
84 dodoc ${DISTDIR}/balsa-manual-20030120.pdf
85
86 # install tech
87 if [ $TECH_AMS ]; then
88 cd ${WORKDIR}/balsa-tech-ams-20030314
89 make DESTDIR=${D} install || die "make install failed"
90 fi
91
92 cd ${WORKDIR}/balsa-tech-verilog-${VerilogV}
93 make DESTDIR=${D} install || die "make install failed"
94
95 cd ${WORKDIR}/balsa-tech-xilinx-20021029
96 make DESTDIR=${D} install || die "make install failed"
97 }
98
99 pkg_postinst() {
100 if [ ! $TECH_AMS ]; then
101 einfo "The AMS035 tech library is no longer distributed publically."
102 einfo "To obtain it you must have the appropriate license from AMS."
103 einfo "If you do request the ${Name}-tech-ams-20030314.tar.gz file"
104 einfo "directly from the Balsa developers and add it to "
105 einfo "/usr/portage/distfiles before emerging."
106 echo
107 fi
108 }

  ViewVC Help
Powered by ViewVC 1.1.20