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.
65 lines
1.4 KiB
65 lines
1.4 KiB
5 months ago
|
# Copyright 1999-2024 Gentoo Authors
|
||
3 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
|
|
||
|
EAPI=7
|
||
|
|
||
|
CMAKE_MAKEFILE_GENERATOR=emake
|
||
5 months ago
|
PYTHON_COMPAT=( python3_{9..12} )
|
||
3 years ago
|
inherit cmake python-any-r1
|
||
|
|
||
|
DESCRIPTION="Automatic theorem prover for satisfiability modulo theories (SMT) problems"
|
||
|
HOMEPAGE="https://cvc4.github.io/"
|
||
|
SRC_URI="https://github.com/CVC4/CVC4-archived/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
|
||
|
|
||
|
LICENSE="GPL-2"
|
||
|
SLOT="0"
|
||
|
KEYWORDS="~amd64 ~x86"
|
||
2 years ago
|
IUSE="+cln proofs readline +statistics"
|
||
3 years ago
|
|
||
|
RDEPEND="dev-libs/antlr-c
|
||
|
dev-java/antlr:3
|
||
|
dev-libs/boost
|
||
|
readline? ( sys-libs/readline:0= )
|
||
|
cln? ( sci-libs/cln )
|
||
|
!cln? ( dev-libs/gmp:= )"
|
||
|
DEPEND="${RDEPEND}"
|
||
2 years ago
|
BDEPEND="$(python_gen_any_dep '
|
||
2 years ago
|
dev-python/tomli[${PYTHON_USEDEP}]
|
||
2 years ago
|
')
|
||
|
"
|
||
3 years ago
|
|
||
|
S="${WORKDIR}"/${PN^^}-archived-${PV}
|
||
|
|
||
2 years ago
|
PATCHES=(
|
||
|
"${FILESDIR}"/${P}-gentoo.patch
|
||
|
"${FILESDIR}"/${P}-toml.patch
|
||
1 year ago
|
"${FILESDIR}"/${P}-bash-5.2-fix.patch
|
||
2 years ago
|
)
|
||
3 years ago
|
|
||
2 years ago
|
python_check_deps() {
|
||
2 years ago
|
python_has_version "dev-python/tomli[${PYTHON_USEDEP}]"
|
||
2 years ago
|
}
|
||
|
|
||
3 years ago
|
src_configure() {
|
||
|
local mycmakeargs=(
|
||
|
-DANTLR_BINARY=/usr/bin/antlr3
|
||
|
-DENABLE_GPL=ON
|
||
|
-DUSE_CLN="$(usex cln ON OFF)"
|
||
|
-DUSE_READLINE="$(usex readline ON OFF)"
|
||
|
-DENABLE_STATISTICS="$(usex statistics ON OFF)"
|
||
|
-DENABLE_PROOFS="$(usex proofs ON OFF)"
|
||
|
)
|
||
|
cmake_src_configure
|
||
|
}
|
||
|
|
||
|
src_test() {
|
||
|
emake -C "${BUILD_DIR}" \
|
||
|
systemtests
|
||
|
cmake_src_test
|
||
|
}
|
||
|
|
||
|
src_install() {
|
||
|
cmake_src_install
|
||
|
mv "${D}"/usr/{lib,$(get_libdir)}
|
||
|
}
|