summaryrefslogtreecommitdiff
blob: 9aa0cbb3ffa6b8f01741e45b99cfd1c10c53d5f1 (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/whitespace/whitespace-0.3.ebuild,v 1.1 2013/08/08 23:54:07 yac Exp $

EAPI=5

CABAL_FEATURES="bin"

inherit haskell-cabal

DESCRIPTION="Whitespace language interpreter in haskell"
HOMEPAGE="http://compsoc.dur.ac.uk/whitespace/"
SRC_URI="http://compsoc.dur.ac.uk/whitespace/downloads/wspace-${PV}.tgz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="examples"

DEPEND="dev-lang/ghc"
RDEPEND=""

S="${WORKDIR}/WSpace"

src_prepare() {
	epatch -p1 "${FILESDIR}/${PN}-cabal.patch"
}

src_install() {
	cabal_src_install

	dohtml docs/tutorial.html || die "dohtml failed"
	use examples && { dodoc -r examples || die "dodoc failed"; }
}