summaryrefslogtreecommitdiff
path: root/sci-mathematics/picosat/picosat-965.ebuild
blob: 68c4d49c5f997380e854223207aa7a021dcb5d62 (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
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

inherit toolchain-funcs

DESCRIPTION="SAT solver with proof and core support"
HOMEPAGE="http://fmv.jku.at/picosat/"
SRC_URI="http://fmv.jku.at/${PN}/${P}.tar.gz"

SLOT="0"
KEYWORDS="amd64 ~x86"
LICENSE="MIT"

PATCHES=( "${FILESDIR}"/${P}-makefile.in.patch )

src_configure() {
	CC="$(tc-getCC)" sh ./configure.sh --shared --trace || die
}

src_compile() {
	emake AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" \
		CFLAGS="${CFLAGS} ${LDFLAGS} -fPIC"
}

src_install() {
	exeinto /usr/bin
	doexe picomus picomcs picosat picogcnf

	insinto /usr/share
	newins VERSION picosat.version

	dolib.so libpicosat.so
	doheader picosat.h

	dodoc NEWS README
}