From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 5D528158020 for ; Sun, 18 Dec 2022 21:51:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 8A8DDE086A; Sun, 18 Dec 2022 21:51:00 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 7261AE086A for ; Sun, 18 Dec 2022 21:51:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 6C128340E2C for ; Sun, 18 Dec 2022 21:50:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A4649477 for ; Sun, 18 Dec 2022 21:50:57 +0000 (UTC) From: "Maciej Barć" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Maciej Barć" Message-ID: <1671400255.d820c1e66cf14fc974084c92e937611a5c6006f3.xgqt@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/libpoly/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/libpoly/Manifest sci-mathematics/libpoly/libpoly-0.1.11.ebuild sci-mathematics/libpoly/metadata.xml X-VCS-Directories: sci-mathematics/libpoly/ X-VCS-Committer: xgqt X-VCS-Committer-Name: Maciej Barć X-VCS-Revision: d820c1e66cf14fc974084c92e937611a5c6006f3 X-VCS-Branch: master Date: Sun, 18 Dec 2022 21:50:57 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 030714f6-4fec-411b-ba71-0f82adf02d56 X-Archives-Hash: 0946ec68a6734ab0618ddd15000ffdc7 commit: d820c1e66cf14fc974084c92e937611a5c6006f3 Author: Maciej Barć gentoo org> AuthorDate: Sun Dec 18 20:36:50 2022 +0000 Commit: Maciej Barć gentoo org> CommitDate: Sun Dec 18 21:50:55 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d820c1e6 sci-mathematics/libpoly: new package; add 0.1.11 Signed-off-by: Maciej Barć gentoo.org> sci-mathematics/libpoly/Manifest | 1 + sci-mathematics/libpoly/libpoly-0.1.11.ebuild | 60 +++++++++++++++++++++++++++ sci-mathematics/libpoly/metadata.xml | 19 +++++++++ 3 files changed, 80 insertions(+) diff --git a/sci-mathematics/libpoly/Manifest b/sci-mathematics/libpoly/Manifest new file mode 100644 index 000000000000..8e2480c62da5 --- /dev/null +++ b/sci-mathematics/libpoly/Manifest @@ -0,0 +1 @@ +DIST libpoly-0.1.11.tar.gz 614216 BLAKE2B 42a2510a6a9f94e7170b5df97ec8f2b7b29cb9c95bd13c8c7abebc9e7db7fedcbeb7a928f22d173e154180acc199e081323d2f1cb23264bf31ac1bfc88494dc8 SHA512 df08a6bab33e27023316972e2496801cea4959faf403b5df8314fa45b4541cd1352583a44084bea130c1e3ca4ed86de032f7f96eeb915599f178e80976a68f7a diff --git a/sci-mathematics/libpoly/libpoly-0.1.11.ebuild b/sci-mathematics/libpoly/libpoly-0.1.11.ebuild new file mode 100644 index 000000000000..e3b8fb247367 --- /dev/null +++ b/sci-mathematics/libpoly/libpoly-0.1.11.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +PYTHON_COMPAT=( python3_{8,9,10} ) + +inherit python-single-r1 cmake + +DESCRIPTION="C library for manipulating polynomials" +HOMEPAGE="https://github.com/SRI-CSL/libpoly/" +SRC_URI="https://github.com/SRI-CSL/${PN}/archive/v${PV}.tar.gz + -> ${P}.tar.gz" + +LICENSE="LGPL-3+" +SLOT="0/${PV}" +KEYWORDS="~amd64 ~x86" +IUSE="+python" +REQUIRED_USE="python? ( ${PYTHON_REQUIRED_USE} )" + +RDEPEND=" + dev-libs/gmp:= + python? ( + ${PYTHON_DEPS} + $(python_gen_cond_dep 'dev-python/sympy[${PYTHON_USEDEP}]') + ) +" +DEPEND="${RDEPEND}" +BDEPEND="dev-util/patchelf" + +DOCS=( README.md examples ) + +pkg_setup() { + use python && python-single-r1_pkg_setup +} + +src_configure() { + local mycmakeargs=( + -DLIBPOLY_BUILD_PYTHON_API=$(usex python) + -DLIBPOLY_BUILD_STATIC=OFF + -DLIBPOLY_BUILD_STATIC_PIC=OFF + ) + cmake_src_configure +} + +src_install() { + cmake_src_install + + mv "${D}"/usr/lib "${D}"/usr/$(get_libdir) || die + + if use python ; then + local sitedir="${D}"/"$(python_get_sitedir)" + local sopath="${BUILD_DIR}"/python/polypy.so + + patchelf --remove-rpath "${sopath}" || die + + mkdir -p "${sitedir}" || die + cp "${sopath}" "${sitedir}" || die + fi +} diff --git a/sci-mathematics/libpoly/metadata.xml b/sci-mathematics/libpoly/metadata.xml new file mode 100644 index 000000000000..9d9fdde167c9 --- /dev/null +++ b/sci-mathematics/libpoly/metadata.xml @@ -0,0 +1,19 @@ + + + + + + sci-mathematics@gentoo.org + Gentoo Mathematics Project + + + LibPoly is a C library for manipulating polynomials. The target + applications are symbolic reasoning engines, such as SMT solvers, that need + to reason about polynomial constraints. It is research software under + development, so the features and the API might change rapidly. + + + https://github.com/SRI-CSL/libpoly/issues/ + SRI-CSL/libpoly + +