sci-mathematics/cadical - 3.0.0 (gentoo)

Search

Install

Install this version:

emerge -a =sci-mathematics/cadical-3.0.0

If this version is masked, you can unmask it using the autounmask tool or standard emerge options:

autounmask =sci-mathematics/cadical-3.0.0

Or alternatively:

emerge --autounmask-write -a =sci-mathematics/cadical-3.0.0

Package Information

Description:
Simplified Satisfiability Solver
Homepage:
https://fmv.jku.at/cadical/ https://github.com/arminbiere/cadical/
License:
MIT

Ebuild Details

Version EAPI Keywords Slot
3.0.0 8 ~amd64 ~x86 0/3.0.0
View Raw Ebuild
# Copyright 1999-2026 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}-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() {
	dobin build/{cadical,mobical}
	dolib.a build/libcadical.a
	doheader src/cadical.hpp
	doheader src/ccadical.h
	strip-lto-bytecode
	einstalldocs
}

Inherited Eclasses

Manifest for 3.0.0

Type File Size Source URLs
DIST cadical-3.0.0.tar.gz 885834 bytes https://github.com/arminbiere/cadical/archive/rel-3.0.0.tar.gz