summaryrefslogtreecommitdiff
blob: 92b1bb97583b7db17cdcc48dcc222eaa4d149d17 (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
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

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
	use examples && dodoc -r examples
}