From 92ed25ce2ff461f502de1dd96ab0accd683b69d2 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Jan 2023 06:17:43 +0000 Subject: gentoo auto-resync : 09:01:2023 - 06:17:43 --- sci-mathematics/Manifest.gz | Bin 17543 -> 17713 bytes sci-mathematics/opensmt/Manifest | 3 ++ sci-mathematics/opensmt/metadata.xml | 19 ++++++++ sci-mathematics/opensmt/opensmt-2.4.3.ebuild | 62 +++++++++++++++++++++++++++ 4 files changed, 84 insertions(+) create mode 100644 sci-mathematics/opensmt/Manifest create mode 100644 sci-mathematics/opensmt/metadata.xml create mode 100644 sci-mathematics/opensmt/opensmt-2.4.3.ebuild (limited to 'sci-mathematics') diff --git a/sci-mathematics/Manifest.gz b/sci-mathematics/Manifest.gz index 39ac54bff71c..f341a579e5cc 100644 Binary files a/sci-mathematics/Manifest.gz and b/sci-mathematics/Manifest.gz differ diff --git a/sci-mathematics/opensmt/Manifest b/sci-mathematics/opensmt/Manifest new file mode 100644 index 000000000000..dff19713643c --- /dev/null +++ b/sci-mathematics/opensmt/Manifest @@ -0,0 +1,3 @@ +DIST opensmt-2.4.3.tar.gz 1912077 BLAKE2B d945d5b85d81b9b991f2f881f2d8f160dbefad8ce6484cf0d28c9a35c0fa64d18f45442a59cdd45bd29fcf526a09717d902d30376dfe2784de2d4df9627f803b SHA512 a2adbbdebb133d7e97428c0ac9bf4c2413c95bca61567c5475f889f550904fc33a385712536c9026b38a1645b73c943876fa36724b634db061cb7cc0932543f2 +EBUILD opensmt-2.4.3.ebuild 1355 BLAKE2B bf93186fbee03e625ebc711cd27986ce70198ac3b58d644fcffea2e2e459d6baa86b5acbf68510496ecfca68c952c72185d5f3ba426944efea9c4f4ade346a28 SHA512 53b0152acbc429a9f09d03ee9a0385c10c92a0347b07567fcc67a662a0717675f3773b3e3fa336e95e3b3087fd88037c6e063c5e2d5a241b6ff6444f599f2944 +MISC metadata.xml 798 BLAKE2B 173b47beab9c5ecc15caf32dd0514230f5dbefea8a9c75b33ab4f4cc51bc7e66e1a90240c3d0ba55f09959accf4203136c2b1ab400c2289e8329906cc0aabb56 SHA512 e3acadb473098ff0985b15ce2fb7ffcd8ef2f29fde2736a9c7e5d297a0857e358cdfa508b9f030add29f8bd808ce1594961e9a92768cbc8cff155a8195bd392e diff --git a/sci-mathematics/opensmt/metadata.xml b/sci-mathematics/opensmt/metadata.xml new file mode 100644 index 000000000000..e1c63fbdaeca --- /dev/null +++ b/sci-mathematics/opensmt/metadata.xml @@ -0,0 +1,19 @@ + + + + + + sci-mathematics@gentoo.org + Gentoo Mathematics Project + + + OpenSMT2 is an SMT solver written in C++. It supports reading files in + SMT-LIB2 format and the theories QF_UF, QF_RDL, QF_IDL, QF_LRA, QF_LIA, + QF_UFLRA, QF_UFLIA and QF_AX. The system also provides an API; the + distribution includes a minimal example how to use the API. + + + https://github.com/usi-verification-and-security/opensmt/issues/ + usi-verification-and-security/opensmt + + diff --git a/sci-mathematics/opensmt/opensmt-2.4.3.ebuild b/sci-mathematics/opensmt/opensmt-2.4.3.ebuild new file mode 100644 index 000000000000..6e169efbf9ca --- /dev/null +++ b/sci-mathematics/opensmt/opensmt-2.4.3.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="Compact and open-source SMT-solver written in C++" +HOMEPAGE="http://verify.inf.usi.ch/opensmt/ + https://github.com/usi-verification-and-security/opensmt/" + +if [[ ${PV} == *9999* ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/usi-verification-and-security/${PN}.git" +else + SRC_URI="https://github.com/usi-verification-and-security/${PN}/archive/v${PV}.tar.gz + -> ${P}.tar.gz" + KEYWORDS="~amd64 ~x86" +fi + +LICENSE="MIT" +SLOT="0/${PV}" +IUSE="debug libedit +readline test" +REQUIRED_USE="?? ( libedit readline )" +RESTRICT="!test? ( test )" + +RDEPEND=" + dev-libs/gmp:= + readline? ( sys-libs/readline:= ) + libedit? ( dev-libs/libedit:= ) +" +DEPEND="${RDEPEND}" +BDEPEND=" + sys-devel/bison + sys-devel/flex + test? ( dev-cpp/gtest ) +" + +src_configure() { + local CMAKE_BUILD_TYPE + if use debug ; then + CMAKE_BUILD_TYPE=Debug + else + CMAKE_BUILD_TYPE=Release + fi + + local -a mycmakeargs=( + -DPACKAGE_TESTS=$(usex test) + -DUSE_READLINE=$(usex readline) + ) + if use readline || use libedit ; then + mycmakeargs+=( -DENABLE_LINE_EDITING=ON ) + fi + cmake_src_configure +} + +src_install() { + cmake_src_install + + mkdir -p "${ED}"/usr/$(get_libdir) || die + mv "${ED}"/usr/lib/libopensmt.* "${ED}"/usr/$(get_libdir)/ || die +} -- cgit v1.2.3