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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (show annotations) (download)
Thu Apr 24 07:45:35 2003 UTC (16 years, 10 months ago) by george
Branch: MAIN
Branch point for: RELEASE-1_4
update and necessary modification to take care of the library made not publicaly awailable

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