summaryrefslogtreecommitdiff
blob: b8e47ae8bb4dbb9864c314e1d139475064b8bb5e (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 Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-lang/mlton/mlton-20040227.ebuild,v 1.1 2004/06/10 08:39:32 mattam 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
}