blob: d503a85c9f4d5c03b77373b17f2a43b501ca3235 (
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
67
68
69
70
71
72
73
74
75
76
77
78
|
# Copyright 1999-2024 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/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/eprover/${PN}.git"
else
SRC_URI="https://github.com/eprover/${PN}/archive/E-${PV/_/}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}/${PN}-E-${PV/_/}"
KEYWORDS="~amd64 ~x86"
fi
LICENSE="GPL-2+"
SLOT="0"
IUSE="+ho"
BDEPEND="
sys-apps/help2man
"
PATCHES=( "${FILESDIR}/${PN}-3.0.03-unistd.patch" )
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
}
|