diff options
author | Maciej Barć <xgqt@gentoo.org> | 2022-09-23 13:03:57 +0200 |
---|---|---|
committer | Maciej Barć <xgqt@gentoo.org> | 2022-09-23 13:43:56 +0200 |
commit | bd70ca1e105ae6eda804d50dcb4732e1929ead74 (patch) | |
tree | 6225110d47eec201928d3755562b8bc47853bad7 /sci-mathematics/vampire/vampire-4.6.1-r2.ebuild | |
parent | dev-python/pyside2-tools: drop 5.15.2 (diff) | |
download | gentoo-bd70ca1e105ae6eda804d50dcb4732e1929ead74.tar.gz gentoo-bd70ca1e105ae6eda804d50dcb4732e1929ead74.tar.bz2 gentoo-bd70ca1e105ae6eda804d50dcb4732e1929ead74.zip |
sci-mathematics/vampire: depend on z3 version >=4.11.2
both vampire 4.6.1 and 4.7 build correctly with >=sci-mathematics/z3-4.11.2
Closes: https://bugs.gentoo.org/872512
Bug: https://bugs.gentoo.org/860237
Signed-off-by: Maciej Barć <xgqt@gentoo.org>
Diffstat (limited to 'sci-mathematics/vampire/vampire-4.6.1-r2.ebuild')
-rw-r--r-- | sci-mathematics/vampire/vampire-4.6.1-r2.ebuild | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/sci-mathematics/vampire/vampire-4.6.1-r2.ebuild b/sci-mathematics/vampire/vampire-4.6.1-r2.ebuild new file mode 100644 index 000000000000..d5579bce688d --- /dev/null +++ b/sci-mathematics/vampire/vampire-4.6.1-r2.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic cmake + +DESCRIPTION="The Vampire Prover, theorem prover for first-order logic" +HOMEPAGE="https://vprover.github.io" + +if [[ "${PV}" == *9999* ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/vprover/${PN}.git" + EGIT_SUBMODULES=() +else + SRC_URI="https://github.com/vprover/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="BSD" +SLOT="0/${PV}" +IUSE="debug +z3" +# debug mode needs to be enabled for tests +# https://github.com/vprover/vampire/blob/8197e1d2d86a0b276b5fcb6c02d8122f66b7277e/CMakeLists.txt#L38 +RESTRICT="!debug? ( test )" + +RDEPEND=" + z3? ( + dev-libs/gmp:= + >=sci-mathematics/z3-4.11.2:= + ) +" +DEPEND="${RDEPEND}" + +src_configure() { + # -Werror=strict-aliasing warnings, bug #863269 + filter-lto + append-flags -fno-strict-aliasing + + local CMAKE_BUILD_TYPE + if use debug; then + CMAKE_BUILD_TYPE=Debug + else + CMAKE_BUILD_TYPE=Release + fi + + local mycmakeargs=( -DZ3_DIR=$(usex z3 "/usr/$(get_libdir)/cmake/z3/" "") ) + cmake_src_configure +} + +src_install() { + local bin_name=$(find "${BUILD_DIR}"/bin/ -type f -name "${PN}*") + dobin "${bin_name}" + dosym $(basename "${bin_name}") /usr/bin/${PN} + + einstalldocs +} |