summaryrefslogtreecommitdiff
blob: 116e5fcc871eed1c217dcbb3490fd1b5ff3833cd (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
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/mlton/mlton-20040227.ebuild,v 1.2 2004/06/24 22:51:43 agriffis Exp $

inherit eutils

DESCRIPTION="Standard ML optimizing compiler and libraries"
SRC_URI="http://www.mlton.org/download/${P}-1.src.tgz"
HOMEPAGE="http://www.mlton.org"

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

IUSE="doc"

DEPEND="virtual/glibc
dev-libs/gmp
dev-lang/mlton-bin"

src_compile() {
	epatch ${FILESDIR}/${P}-obsolete-flags.patch
	# does not support parallel make
	make
}

src_install() {
	make DESTDIR=${D} install-no-docs

	if use doc; then
		make DESTDIR=${D} TDOC=${D}/usr/share/doc/${P} install-docs
	else
		cd doc && dodoc changelog license/*
	fi
}