summaryrefslogtreecommitdiff
blob: c03133d2d1650d6e42ef890db9ffa456a0964209 (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
55
56
57
58
59
60
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils autotools

DESCRIPTION="OPAL functional programming language"
HOMEPAGE="http://uebb.cs.tu-berlin.de/~opal/"
SRC_URI="http://uebb.cs.tu-berlin.de/~opal/ocs-${PV}-src.tar.bz2"

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

IUSE="X doc +tk +tcl"

DEPEND=">=sys-libs/readline-4.3-r5
	>=sys-libs/ncurses-5.4-r5
	doc?       ( >=app-text/tetex-2 )
	tk?        ( >=dev-lang/tcl-8.4.6 )
	tcl?       ( >=dev-lang/tk-8.4.6-r1 )
	"

S="${WORKDIR}/ocs"

src_unpack() {
	unpack ${A}
	cd "${S}"

	#epatch "${FILESDIR}/ocs_2.3k-makesystem.diff"
	eautoreconf
}


src_compile() {
	mkdir -p "${D}"

	econf \
		$(use_enable doc) \
		$(use_enable doc dosfop) \
		$(use_enable tk opalwin) \
		$(use_enable tcl oasys) \
		--enable-dynamic \
		--disable-absolute-pathes \
		--enable-reflections \
		--enable-tivi2 \
		--enable-oc5 \
		--enable-proofchecker \
		--disable-locallinks \
		--prefix="${D}/usr" \
		|| die "./configure failed"
}

src_install() {
	# chmod:     /var <-- Prevent access violation
	addpredict /var
	mkdir -p "${D}/usr/"

	emake -j1 install || die "make failed"
}