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

inherit eutils

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

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

IUSE="doc"

DEPEND="virtual/glibc
dev-libs/gmp"

src_install() {
	cd ${WORKDIR}/usr
	dobin bin/*

	insinto /usr/lib/mlton

	cp -Rp lib/mlton/* ${D}/usr/lib/mlton

	doman man/man1/*.1.gz

	cd share/doc/mlton
	dodoc changelog README
	dodoc license/*

	if use doc; then
		cp -R cmcat examples ${D}/usr/share/doc/${P}/
		dohtml user-guide/*
		dodoc *.ps.gz
	fi
}