summaryrefslogtreecommitdiff
blob: a13e571a02402948edd82527a305c9dc88968d92 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

DESCRIPTION="Open source implementation of the Smalltalk-80 programming language."
HOMEPAGE="http://syx.googlecode.com"
SRC_URI="http://syx.googlecode.com/files/${P}.tar.gz"

LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="gmp readline gtk X debug profile"

RDEPEND="gmp? ( dev-libs/gmp )
	readline? ( sys-libs/readline )
	gtk? ( >=x11-libs/gtk+-2.12 )
	X? ( x11-libs/libX11 )"
DEPEND="${RDEPEND}"

src_compile() {
	local myconf=
	use debug && myconf='--enable-debug=info'

	econf \
		$(use_enable gtk) \
		$(use_enable readline) \
		$(use_enable X x11) \
		$(use_enable profile) \
		$(use_with gmp) \
		${myconf}

	emake || die "Compile failed"
}

src_install() {
	emake DESTDIR="${D}" install || die "Install failed"
	dodoc README ChangeLog TODO || die
}