diff options
Diffstat (limited to 'sci-mathematics/libpoly')
-rw-r--r-- | sci-mathematics/libpoly/Manifest | 3 | ||||
-rw-r--r-- | sci-mathematics/libpoly/libpoly-0.1.11.ebuild | 60 | ||||
-rw-r--r-- | sci-mathematics/libpoly/metadata.xml | 19 |
3 files changed, 82 insertions, 0 deletions
diff --git a/sci-mathematics/libpoly/Manifest b/sci-mathematics/libpoly/Manifest new file mode 100644 index 000000000000..9ad5a5691b87 --- /dev/null +++ b/sci-mathematics/libpoly/Manifest @@ -0,0 +1,3 @@ +DIST libpoly-0.1.11.tar.gz 614216 BLAKE2B 42a2510a6a9f94e7170b5df97ec8f2b7b29cb9c95bd13c8c7abebc9e7db7fedcbeb7a928f22d173e154180acc199e081323d2f1cb23264bf31ac1bfc88494dc8 SHA512 df08a6bab33e27023316972e2496801cea4959faf403b5df8314fa45b4541cd1352583a44084bea130c1e3ca4ed86de032f7f96eeb915599f178e80976a68f7a +EBUILD libpoly-0.1.11.ebuild 1240 BLAKE2B eb73ef53ad5ba372b2d03d6bfb8e8b98821444ada7f479d743f69c2d65bf0b039dc7615bea6a65a53a74421d590020954b1b3cf52113eb8cb9487c1660ff30ed SHA512 5a3dd9137eba45c30f803216d9fe3c5b7ef760ba1d9a00ac3326e0fa19a1fe1191213516c4244f33fd5cb4ac20d831a26a9acf6182b3edbcf3b2e3fefc09ae75 +MISC metadata.xml 757 BLAKE2B baf8c7cb139dff0a4fd382eee7583f5f921209ffcddcac77a85086bb5214bc24bc875343f4f4f363e3e72e8077361e2864419c05c28338df4e9dd80b5dc4ce97 SHA512 0d9b28c2900d806f2b4df86eb69e9a3c1491a564559d80fdf78fa77673634a1735a391beb89599caea26f3af1a22880cb91e0611297e9fa811e85495eb12ff02 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> + +<pkgmetadata> + <maintainer type="project"> + <email>sci-mathematics@gentoo.org</email> + <name>Gentoo Mathematics Project</name> + </maintainer> + <longdescription> + 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. + </longdescription> + <upstream> + <bugs-to>https://github.com/SRI-CSL/libpoly/issues/</bugs-to> + <remote-id type="github">SRI-CSL/libpoly</remote-id> + </upstream> +</pkgmetadata> |