aboutsummaryrefslogtreecommitdiff
blob: bc9b946fa3baffd8b142dfe303870589d314591b (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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit eutils

DESCRIPTION="ACL2 industrial strength theorem prover"
HOMEPAGE="http://www.cs.utexas.edu/users/moore/acl2/"
SRC_URI="http://www.cs.utexas.edu/users/moore/acl2/v${PV/\./-}/distrib/acl2.tar.gz"

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

DEPEND="dev-lisp/sbcl"
RDEPEND="${DEPEND}"

S="${WORKDIR}/${PN}-sources"

src_compile() {
	emake LISP="sbcl --noinform --noprint" || die "emake failed"
}

src_install() {
	sed -ie "s:${S}:/usr/share/acl2:g" saved_acl2
	insinto /usr/bin
	insopts -m0755
	doins saved_acl2

	insinto /usr/share/acl2
	doins TAGS || die
	insopts -m0755
	doins saved_acl2 || die
	doins saved_acl2.core || die

	dodir /usr/share/acl2/books
	cp -a books "${D}"/usr/share/acl2
	chmod --recursive a+rx "${D}"/usr/share/acl2/books

	dohtml doc/HTML/* || die

	doinfo doc/EMACS/* || die
}

pkg_postinst() {
	local BOOKSDIR="/usr/share/acl2/books"
	cd "${BOOKSDIR}"
	einfo
	einfo "Building certificates in ${BOOKSDIR} ..."
	einfo "(this may take hours to finish)"
	sleep 5
	emake || die
}