summaryrefslogtreecommitdiff
blob: bc683123880c8dd133bb9a1b256071c8b8d8d918 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-mathematics/otter/otter-3.3-r2.ebuild,v 1.1 2010/01/13 02:29:46 markusle Exp $

EAPI="2"
inherit eutils

DESCRIPTION="An Automated Deduction System."
SRC_URI="http://www-unix.mcs.anl.gov/AR/${PN}/${P}.tar.gz"
HOMEPAGE="http://www-unix.mcs.anl.gov/AR/otter/"

KEYWORDS="~amd64 ~ppc ~x86 ~amd64-linux ~x86-linux ~ppc-macos"
LICENSE="otter"
SLOT="0"
IUSE=""
DEPEND="virtual/libc"

src_prepare() {
	epatch "${FILESDIR}"/${P}-build.patch
}

src_compile() {
	cd source
	CC=$(tc-getCC) emake || die "emake failed"
	cd "${S}"/mace2
	CC=$(tc-getCC) emake || die "emake in mace2 failed"
}

src_install() {
	dobin bin/* source/formed/formed \
		|| die "failed to install binaries"
	dodoc README* Legal Changelog Contents \
		|| die "failed to install regular docs"
	insinto /usr/share/doc/${PF}
	doins documents/*.pdf \
		|| die "failed to install pdf docs"
	insinto /usr/share/${PN}/
	doins -r examples examples-mace2 \
		|| die "failed to install examples"
}