From 6f0b9d2bc3952de477fefeaa68783e5dc27e4e2d Mon Sep 17 00:00:00 2001 From: Maciej Barć Date: Mon, 27 Dec 2021 14:07:02 +0100 Subject: sci-mathematics/stp: dev-libs -> sci-mathematics MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Maciej Barć --- sci-mathematics/stp/Manifest | 1 + sci-mathematics/stp/metadata.xml | 26 +++++++++++++++++++++ sci-mathematics/stp/stp-2.3.3.ebuild | 45 ++++++++++++++++++++++++++++++++++++ 3 files changed, 72 insertions(+) create mode 100644 sci-mathematics/stp/Manifest create mode 100644 sci-mathematics/stp/metadata.xml create mode 100644 sci-mathematics/stp/stp-2.3.3.ebuild (limited to 'sci-mathematics/stp') diff --git a/sci-mathematics/stp/Manifest b/sci-mathematics/stp/Manifest new file mode 100644 index 000000000000..e41280980dc7 --- /dev/null +++ b/sci-mathematics/stp/Manifest @@ -0,0 +1 @@ +DIST stp-2.3.3.tar.gz 2577550 BLAKE2B 9ebedf3cb8e6b50d037cfacbc14826bd4e6505d29a53b1fcc6580749f0637fe5f96619c166babdb3a52b18fb6337e49c02f5693e233effe84d0131d0e7402381 SHA512 a0b1bf419d8230e40ce0aee90d9c8c9d814aca300831c24b3576c75623362942abf20673c419f9f0ea1e0505bfae000dc65fdd818179f5759879b0b255f1b99a diff --git a/sci-mathematics/stp/metadata.xml b/sci-mathematics/stp/metadata.xml new file mode 100644 index 000000000000..511b06e39e35 --- /dev/null +++ b/sci-mathematics/stp/metadata.xml @@ -0,0 +1,26 @@ + + + + + jeffrey@icurse.nl + Jeffrey Lin + + + proxy-maint@gentoo.org + Proxy Maintainers + + + STP is a constraint solver (or SMT solver) aimed at solving + constraints of bitvectors and arrays. These types of + constraints can be generated by program analysis tools, theorem + provers, automated bug finders, cryptographic attack tools, + intelligent fuzzers, model checkers, and by many other + applications. + + + stp/stp + + + Enable building the Python interface + + diff --git a/sci-mathematics/stp/stp-2.3.3.ebuild b/sci-mathematics/stp/stp-2.3.3.ebuild new file mode 100644 index 000000000000..c88151911bae --- /dev/null +++ b/sci-mathematics/stp/stp-2.3.3.ebuild @@ -0,0 +1,45 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit cmake + +DESCRIPTION="Simple Theorem Prover, an efficient SMT solver for bitvectors" +HOMEPAGE="https://stp.github.io/" +SRC_URI="https://github.com/stp/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="GPL-2+ MIT" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="python test" +RESTRICT="!test? ( test )" + +DEPEND=" + dev-libs/boost:= + sci-mathematics/minisat +" +RDEPEND="${DEPEND}" + +src_prepare() { + # replace static lib with $(get_libdir) + sed -i "s/set(LIBDIR lib/set(LIBDIR $(get_libdir)/" CMakeLists.txt || die + + cmake_src_prepare +} + +src_configure() { + local mycmakeargs=( + -DENABLE_ASSERTIONS="$(usex test)" + -DENABLE_TESTING="$(usex test)" + -DENABLE_PYTHON_INTERFACE="$(usex python)" + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + # don't install to /usr/man + doman "${D}/usr/man/man1/stp.1" + rm -r "${D}/usr/man" || die +} -- cgit v1.2.3-65-gdbad