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 E2C3B158086 for ; Fri, 24 Dec 2021 13:24:21 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 5DDAD2BC012; Fri, 24 Dec 2021 13:24:19 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (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 8C1FC2BC012 for ; Fri, 24 Dec 2021 13:24:18 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (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 6AC45343337 for ; Fri, 24 Dec 2021 13:24:16 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id ACF4D239 for ; Fri, 24 Dec 2021 13:24:14 +0000 (UTC) From: "Michael Orlitzky" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Orlitzky" Message-ID: <1640351142.e244f8cbcac97753cc33aa2cda2d1e0822b9fa97.mjo@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sci-mathematics/primesieve/ X-VCS-Repository: repo/gentoo X-VCS-Files: sci-mathematics/primesieve/Manifest sci-mathematics/primesieve/metadata.xml sci-mathematics/primesieve/primesieve-7.7.ebuild X-VCS-Directories: sci-mathematics/primesieve/ X-VCS-Committer: mjo X-VCS-Committer-Name: Michael Orlitzky X-VCS-Revision: e244f8cbcac97753cc33aa2cda2d1e0822b9fa97 X-VCS-Branch: master Date: Fri, 24 Dec 2021 13:24:14 +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: 5257d7db-d695-4bb6-94ab-0839789e56b4 X-Archives-Hash: 26a7da92a41748705df1f01c832289e7 commit: e244f8cbcac97753cc33aa2cda2d1e0822b9fa97 Author: Michael Orlitzky gentoo org> AuthorDate: Thu Dec 23 20:26:01 2021 +0000 Commit: Michael Orlitzky gentoo org> CommitDate: Fri Dec 24 13:05:42 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e244f8cb sci-mathematics/primesieve: new CLI/library to quickly generate primes. This package will soon be a dependency of SageMath, transitively via the forthcoming sci-mathematics/primecount that uses it. Based on the sage-on-gentoo ebuild by François Bissey. Package-Manager: Portage-3.0.28, Repoman-3.0.3 Signed-off-by: Michael Orlitzky gentoo.org> sci-mathematics/primesieve/Manifest | 1 + sci-mathematics/primesieve/metadata.xml | 24 ++++++++++++ sci-mathematics/primesieve/primesieve-7.7.ebuild | 50 ++++++++++++++++++++++++ 3 files changed, 75 insertions(+) diff --git a/sci-mathematics/primesieve/Manifest b/sci-mathematics/primesieve/Manifest new file mode 100644 index 000000000000..50af85cf5844 --- /dev/null +++ b/sci-mathematics/primesieve/Manifest @@ -0,0 +1 @@ +DIST primesieve-7.7.tar.gz 101558 BLAKE2B cfaa91ddcf661e265d403f8a93461fe297ac48db843b096d0dd7828c4e3d11cdba60cb102197248359c79950fe2ac66c8e9295ab17b0d6bd0eed5a6260c7d115 SHA512 bbcc141a12afdf54386d2408e067b1c6af2dd9b5c9f44d71290269ddefc7c46ba6794064cde6728c8356724553cb6bc2e765bf18c24a18b6d5d1f472d2c6e6dd diff --git a/sci-mathematics/primesieve/metadata.xml b/sci-mathematics/primesieve/metadata.xml new file mode 100644 index 000000000000..e2285b80a8b4 --- /dev/null +++ b/sci-mathematics/primesieve/metadata.xml @@ -0,0 +1,24 @@ + + + + + mjo@gentoo.org + + + + frp.bissey@gmail.com + François Bissey + + + proxy-maint@gentoo.org + Proxy Maintainers + + + + Build the primesieve CLI executable + + + + kimwalisch/primesieve + + diff --git a/sci-mathematics/primesieve/primesieve-7.7.ebuild b/sci-mathematics/primesieve/primesieve-7.7.ebuild new file mode 100644 index 000000000000..5d26f8b6a858 --- /dev/null +++ b/sci-mathematics/primesieve/primesieve-7.7.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit cmake + +DESCRIPTION="CLI and library for quickly generating prime numbers." +HOMEPAGE="https://github.com/kimwalisch/primesieve" +SRC_URI="https://github.com/kimwalisch/${PN}/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz" +LICENSE="BSD-2" +SLOT="0/9" # subslot is first component of libprimesieve.so version +KEYWORDS="~amd64" +IUSE="doc +executable test" +RESTRICT="!test? ( test )" + +BDEPEND="doc? ( app-doc/doxygen app-text/texlive media-gfx/graphviz )" +DEPEND="" +RDEPEND="" + +DOCS=( + ChangeLog + README.md + doc/ALGORITHMS.md + doc/CPP_Examples.md + doc/C_Examples.md +) + +src_configure() { + local mycmakeargs=( + -DBUILD_DOC="$(usex doc)" + -DBUILD_PRIMESIEVE="$(usex executable)" + -DBUILD_STATIC_LIBS="OFF" + -DBUILD_TESTS="$(usex test)" + ) + + if use doc; then + DOCS+=( + "${BUILD_DIR}/doc/html" + "${BUILD_DIR}/doc/latex/refman.pdf" + ) + fi + + cmake_src_configure +} + +src_compile() { + cmake_src_compile + use doc && cmake_build doc +}