blob: e6dfe3179facf4db4bbd642ba6f6e7ee27d82ab3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-electronics/lard/lard-2.0.15-r1.ebuild,v 1.1 2004/12/27 19:56:31 ribosome Exp $
inherit eutils
IUSE=""
DESCRIPTION="Language for Asynchronous Research and Development. Used to describe and simulate asynchronous circuits"
HOMEPAGE="http://www.cs.man.ac.uk/apt/projects/tools/lard/index.html"
SRC_URI="ftp://ftp.cs.man.ac.uk/pub/amulet/lard/${P}.tar.gz
ftp://ftp.cs.man.ac.uk/pub/amulet/lard/lard-demos-2.0.12.tar.gz
ftp://ftp.cs.man.ac.uk/pub/amulet/lard/lard-doc-2.0.14.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc"
DEPEND="sys-devel/flex
dev-lang/tcl
dev-lang/tk
sys-devel/bison
sys-devel/binutils
dev-tcltk/tclx
dev-libs/gmp
dev-lang/perl
dev-tcltk/bwidget"
src_unpack() {
unpack ${A} ; cd ${S}
epatch ${FILESDIR}/${P}-configure.patch
epatch ${FILESDIR}/${PV}-gcc-multi-string-literal.patch
chmod +x interpreter/con.py
}
src_compile() {
econf --libdir=/usr/lib/lard || die "econf failed"
emake || die "emake failed"
}
src_install() {
make DESTDIR=${D} install || die "install failed"
dodoc AUTHORS COPYING NEWS README
dodir /usr/share/doc/${PF}/demos
cp -R ${WORKDIR}/lard-demos-2.0.12/* ${D}/usr/share/doc/${PF}/demos
cd ${WORKDIR}/lard-doc
find . -name "*.doc *.cgi" -exec rm {} \;
dodir /usr/share/doc/${PF}/html
cp -R * ${D}/usr/share/doc/${PF}/html
cd ${WORKDIR}
dosed "s:\$exec_prefix:#\$exec_prefix:g" /usr/bin/lcd
}
|