blob: fe1035bd4af7e8915de5ee8b955d53221294a2a3 (
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
|
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit dot-a toolchain-funcs
DESCRIPTION="Simplified Satisfiability Solver"
HOMEPAGE="https://fmv.jku.at/cadical/
https://github.com/arminbiere/cadical/"
if [[ "${PV}" == *9999* ]] ; then
inherit git-r3
EGIT_REPO_URI="https://github.com/arminbiere/${PN}.git"
else
SRC_URI="https://github.com/arminbiere/${PN}/archive/rel-${PV}.tar.gz
-> ${P}.tar.gz"
S="${WORKDIR}/${PN}-rel-${PV}"
KEYWORDS="amd64 ~x86"
fi
LICENSE="MIT"
SLOT="0/${PV}"
PATCHES=(
"${FILESDIR}/${PN}-configure.patch"
"${FILESDIR}/${PN}-makefile-in-respect-ar-2.0.0.patch"
)
DOCS=( CONTRIBUTING.md NEWS.md README.md )
src_configure() {
tc-export AR
lto-guarantee-fat
CXX="$(tc-getCXX)" CXXFLAGS="${CXXFLAGS} ${LDFLAGS}" ./configure || die
}
src_install() {
exeinto /usr/bin
doexe build/{cadical,mobical}
dolib.a build/libcadical.a
doheader src/cadical.hpp
doheader src/ccadical.h
strip-lto-bytecode
einstalldocs
}
|