You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
48 lines
923 B
48 lines
923 B
3 months ago
|
# Copyright 1999-2024 Gentoo Authors
|
||
8 months ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=8
|
||
|
|
||
|
inherit toolchain-funcs
|
||
|
|
||
|
DESCRIPTION="Simplified Satisfiability Solver"
|
||
|
HOMEPAGE="http://fmv.jku.at/cadical/"
|
||
3 months ago
|
|
||
|
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
|
||
8 months ago
|
|
||
|
LICENSE="MIT"
|
||
|
SLOT="0/${PV}"
|
||
|
|
||
|
PATCHES=(
|
||
3 months ago
|
"${FILESDIR}/${PN}-configure.patch"
|
||
|
"${FILESDIR}/${PN}-makefile.in-ar.patch"
|
||
8 months ago
|
)
|
||
|
|
||
3 months ago
|
DOCS=( CONTRIBUTING.md NEWS.md README.md )
|
||
8 months ago
|
|
||
|
src_configure() {
|
||
|
tc-export AR
|
||
|
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
|
||
|
|
||
|
einstalldocs
|
||
|
}
|