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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.10 - (show annotations) (download)
Mon Jul 26 17:45:37 2004 UTC (15 years, 6 months ago) by chrb
Branch: MAIN
CVS Tags: HEAD
Changes since 1.9: +1 -1 lines
FILE REMOVED
removing unsupported upstream versions and pointing to new package balsa-async

1 # Copyright 1999-2004 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/app-sci/tbass/tbass-20030725.3.3.ebuild,v 1.9 2004/07/01 11:55:06 eradicator Exp $
4
5 inherit eutils
6
7 IUSE=""
8
9 Name="balsa"
10 My_PV="3.3"
11 #quite custom anyway, this one has version number at the end
12 #to indicate it is a release
13
14 DESCRIPTION="Balsa is both a framework for synthesising asynchronous hardware systems and the language for describing such systems"
15 HOMEPAGE="http://www.cs.man.ac.uk/amulet/projects/balsa/"
16 SRC_URI="ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/${My_PV}/${Name}-${My_PV}.tar.gz
17 ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/${My_PV}/balsa-manual-${My_PV}.pdf
18 ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/${My_PV}/${Name}-tech-example-${My_PV}.tar.gz
19 ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/examples/dma-example.tar.gz
20 ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/examples/examples.tar.gz
21 ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/snapshots/${Name}-tech-verilog-20030204.tar.gz
22 ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/snapshots/${Name}-tech-xilinx-20021029.tar.gz"
23 #ftp://ftp.cs.man.ac.uk/pub/amulet/balsa/${My_PV}/${Name}-lard-${My_PV}.tar.gz"
24
25 LICENSE="GPL-2"
26 SLOT="0"
27 KEYWORDS="x86 ~sparc"
28
29 DEPEND="virtual/libc
30 sys-devel/binutils
31 dev-libs/gmp
32 dev-lang/perl
33 x11-libs/gtk+"
34 #>=app-sci/lard-2.0.15"
35
36 RDEPEND="${DEPEND}
37 dev-util/guile
38 media-gfx/graphviz
39 app-sci/gtkwave
40 app-sci/espresso-ab"
41
42 S=${WORKDIR}/${Name}-${My_PV}
43
44 if [ -f ${DISTDIR}/balsa-tech-ams-20030506.tar.gz ]; then
45 TECH_AMS=1
46 fi
47
48 src_unpack() {
49 unpack ${A}
50 if [ $TECH_AMS ]; then unpack balsa-tech-ams-20030506.tar.gz; fi
51 cd ${WORKDIR}
52 epatch ${FILESDIR}/${P}-tech-verilog-configure.patch
53 epatch ${FILESDIR}/${P}-tech-xilinx-configure.patch
54 epatch ${FILESDIR}/${P}-tech-example-configure.patch
55 #patch -p0 < ${FILESDIR}/${P}-balsa-lard-configure.patch || die
56 #echo "patching file balsa-lard-${PV}/bin/Makefile.in"
57 #sed -i -e "s: \$(bindir): \$(DESTDIR)\$(bindir):g" ${WORKDIR}/balsa-lard-${PV}/bin/Makefile.in
58 }
59
60 src_compile() {
61 # compile balsa
62 econf || die "econf failed"
63 sed -i -e "s: \$(bindir): \$(DESTDIR)\$(bindir):g" bin/Makefile
64 emake BALSAHOME=${S} || die
65
66 # configure tech paths
67 if [ $TECH_AMS ]; then
68 cd ${WORKDIR}/balsa-tech-ams-20030506
69 econf || die "econf failed"
70 fi
71
72 # config generic verilog backend
73 cd ${WORKDIR}/balsa-tech-verilog-20030204
74 econf || die "econf failed"
75
76 # config Xilinx FPGA backend
77 cd ${WORKDIR}/balsa-tech-xilinx-20021029
78 econf || die "econf failed"
79
80 # config example tech
81 cd ${WORKDIR}/balsa-tech-example-${My_PV}
82 econf || die "econf failed"
83
84 # config balsa-lard (deprecated, but may find some use for it)
85 #cd ${WORKDIR}/balsa-lard-${PV}
86 #econf
87 }
88
89 src_install() {
90 # install balsa
91 einstall || die "make install failed"
92
93 # move the docs to the right directory
94 dodoc ${D}/usr/doc/*
95 rm -rf ${D}/usr/doc
96
97 # install manual and examples
98 dodir /usr/share/doc/${P}/examples/dma-example
99 cp -R ${WORKDIR}/dma-example ${D}/usr/share/doc/${P}/examples
100 cp -R ${WORKDIR}/examples/* ${D}/usr/share/doc/${P}/examples
101 dodoc ${DISTDIR}/balsa-manual-${My_PV}.pdf
102
103 # install tech
104 if [ $TECH_AMS ]; then
105 cd ${WORKDIR}/balsa-tech-ams-20030506
106 make DESTDIR=${D} install || die "make install failed"
107 fi
108
109 cd ${WORKDIR}/balsa-tech-verilog-20030204
110 make DESTDIR=${D} install || die "make install failed"
111
112 cd ${WORKDIR}/balsa-tech-xilinx-20021029
113 make DESTDIR=${D} install || die "make install failed"
114
115 cd ${WORKDIR}/balsa-tech-example-${My_PV}
116 make DESTDIR=${D} install || die "make install failed"
117
118 cd ${S}
119 dodoc AUTHORS COPYING NEWS README TODO
120
121 # balsa-lard has been split from balsa .. requires working balsa
122 # install for compile. Paths need fixing to compile in sandbox.
123 # Even with paths fixed I get errors like:
124 # find-filename: cannot open block with dotted path `[balsa.types.synthesis]'
125 #
126 # Lets just ignore the problem and hope it goes away.
127 #
128 #cd ${WORKDIR}/balsa-lard-${PV}
129 # hack - imports come from hard coded path, we set this
130 # for install,
131 #echo "patching ${WORKDIR}/balsa-lard-${PV}/share/scheme/base-local.scm"
132 #sed -i -e "s:/usr/share/scheme/:${D}/usr/share/scheme/:g" share/scheme/base-local.scm
133 #make DESTDIR=${D} install || die "make install failed"
134 }
135
136 pkg_postinst() {
137 if [ ! $TECH_AMS ]; then
138 einfo "The AMS035 tech library was *not* installed."
139 einfo "It is no longer publically distributed."
140 einfo "If you have the appropriate license from AMS request"
141 einfo "the ${Name}-tech-ams-20030506.tar.gz file"
142 einfo "directly from the Balsa developers and add it to "
143 einfo "/usr/portage/distfiles before emerging."
144 else
145 einfo "The AMS035 tech library was found and installed."
146 fi
147 einfo ""
148 einfo "The Balsa-Lard interface has been deprecated and is no longer installed."
149 einfo "If you need it you must manually download and install it."
150 einfo ""
151 }

  ViewVC Help
Powered by ViewVC 1.1.20