summaryrefslogtreecommitdiff
blob: cc4f63645052718f142eaa0c1d942440f7d866ce (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/ghc-bin/ghc-bin-6.4.1.ebuild,v 1.3 2006/02/17 00:30:36 dcoutts Exp $

IUSE="" # use the non-binary version if you want to have more choice

DESCRIPTION="Glasgow Haskell Compiler"
# list all arches for proper digest building:
SRC_URI="x86?  ( mirror://gentoo/${P}-x86.tbz2 )
		 amd64? ( mirror://gentoo/${P}-amd64.tbz2 )
		 alpha? ( mirror://gentoo/${P}-alpha.tbz2 )
		 sparc? ( mirror://gentoo/${P}-sparc.tbz2 )"
# add these when they are ready:
#		 ppc? ( mirror://gentoo/${P}-ppc.tbz2 )
#		 ppc64? ( mirror://gentoo/${P}-ppc64.tbz2 )
HOMEPAGE="http://www.haskell.org"

LICENSE="as-is"
KEYWORDS="~alpha ~sparc ~x86 ~amd64"
# add these when they are ready: ~ppc ~ppc64
SLOT="0"

RESTRICT="nostrip" # already stripped

LOC="/opt/ghc"

DEPEND=""
RDEPEND=">=dev-lang/perl-5.6.1
	>=sys-devel/gcc-2.95.3
	>=dev-libs/gmp-4.1
	=sys-libs/readline-5*"

PROVIDE="virtual/ghc"

S="${WORKDIR}"

src_compile() {
	sed -i "s|/usr|${LOC}|g" usr/bin/* usr/lib/ghc-${PV}/package.conf
	mkdir -p ./${LOC}
	mv usr/* ./${LOC}
}

src_install () {
	cp -pr * ${D}
	insinto /etc/env.d
	doins ${FILESDIR}/10ghc
}