blob: 61f8ca352e2a1454646e52c8bbac95ffdf346dd7 (
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-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-haskell/buddha/buddha-1.2-r1.ebuild,v 1.1 2006/10/11 23:21:13 dcoutts Exp $
inherit base ghc-package multilib autotools
DESCRIPTION="A declarative debugger for Haskell 98"
HOMEPAGE="http://www.cs.mu.oz.au/~bjpop/buddha/"
SRC_URI="http://www.cs.mu.oz.au/~bjpop/buddha/download/${P}.tar.gz
mirror://gentoo/${P}-ghc66.patch.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
IUSE=""
RDEPEND=">=virtual/ghc-6.4"
DEPEND="${RDEPEND}"
src_unpack() {
base_src_unpack
cd "${S}"
epatch "${FILESDIR}/${P}-ghc66.patch.gz"
# Get rid of those 100's of pointless one-line 'wise' files:
sed -i 's/advice//' "${S}/Makefile.am"
}
src_compile() {
# Since we've patched the build system:
eautoreconf
econf --includedir=/usr/$(get_libdir)/buddha/include || die "Configure failed"
# Makefile has no parallelism
emake -j1 || die "Make failed"
}
src_install() {
make DESTDIR=${D} install || die "Make install failed"
#note that buddha's ghc packages do not need to be registered
}
pkg_postinst() {
echo
ewarn "WARNING: buddha-1.2 appears to generate code which is not"
ewarn "fully compatible with ghc 6.4 or later. We are working on this"
ewarn "issue with the upstream developers. Please do not report this"
ewarn "as a bug, as we are already aware of the problem."
echo
}
|