blob: 9a1b1dfb3628f20b35b954ab5a19de7ca0294e5c (
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
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Automated theorem prover for full first-order logic with equality"
HOMEPAGE="https://www.eprover.org/
https://github.com/eprover/eprover/"
SRC_URI="https://github.com/eprover/${PN}/archive/E-${PV/_/}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}"/${PN}-E-${PV/_/}
LICENSE="GPL-2+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="+ho"
BDEPEND="sys-apps/help2man"
src_prepare() {
default
sed -e "/^OPTFLAGS/s|= .*|= ${CFLAGS}|" \
-e "/^LD/s|= .*|= $(tc-getCC) ${LDFLAGS}|" \
-e "/^ AR/s|ar|$(tc-getAR)|" \
-e "/^ CC/s|gcc|$(tc-getCC)|" \
-i "${S}"/Makefile.vars || die
sed -e "s|ar rc|$(tc-getAR) rc|g" \
-e "s|ranlib|$(tc-getRANLIB)|g" \
-i "${S}"/CONTRIB/picosat-965/makefile.in || die
}
src_configure() {
local -a myconf=(
$(usex ho '--enable-ho' '')
--bindir=/usr/bin
--exec-prefix=/usr
--man-prefix=/usr/share/man/man1
)
sh ./configure ${myconf[@]} || die
}
src_compile() {
default
if use ho ; then
ln -s "${S}"/PROVER/${PN}-ho "${S}"/PROVER/${PN} || die
fi
emake man
}
src_install() {
# Picosat (CONTRIB package) is available as separate package.
rm -r "${S}"/CONTRIB || die
emake EXECPATH="${ED}"/usr/bin MANPATH="${ED}"/usr/share/man/man1 install
dodoc -r DOC EXAMPLE_PROBLEMS
if use ho ; then
dosym -r /usr/bin/${PN}-ho /usr/bin/${PN}
fi
}
|