/[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.6 - (hide annotations) (download)
Mon Apr 19 12:33:51 2004 UTC (15 years, 10 months ago) by phosphan
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
Cleanup, moving patch -> epatch

1 mr_bones_ 1.5 # Copyright 1999-2004 Gentoo Technologies, Inc.
2 george 1.1 # Distributed under the terms of the GNU General Public License v2
3 phosphan 1.6 # $Header: /home/cvsroot/gentoo-x86/app-sci/tbass/tbass-20030318.ebuild,v 1.5 2004/02/24 08:52:08 mr_bones_ Exp $
4 george 1.1
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 mr_bones_ 1.5 KEYWORDS="x86 ~sparc"
22 george 1.1
23     DEPEND="sys-devel/binutils
24 george 1.3 >=app-sci/lard-2.0.15
25 george 1.1 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