diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-08-07 12:37:21 +0100 |
commit | b8c7370a682e4e29cda623222d17a790c01c3642 (patch) | |
tree | f6caa14689bd00a5760eadaa381ff41e50ef3c1b /sci-mathematics/primesieve | |
parent | 8a4997a7e2d1e36c089d4d76935b5a902d98d3d0 (diff) |
gentoo auto-resync : 07:08:2024 - 12:37:20
Diffstat (limited to 'sci-mathematics/primesieve')
-rw-r--r-- | sci-mathematics/primesieve/Manifest | 2 | ||||
-rw-r--r-- | sci-mathematics/primesieve/primesieve-12.3.ebuild | 54 |
2 files changed, 56 insertions, 0 deletions
diff --git a/sci-mathematics/primesieve/Manifest b/sci-mathematics/primesieve/Manifest index 65b4e325b00c..402a3d56c117 100644 --- a/sci-mathematics/primesieve/Manifest +++ b/sci-mathematics/primesieve/Manifest @@ -1,3 +1,5 @@ DIST primesieve-11.0.tar.gz 125086 BLAKE2B ac425b6435bc95efbfc3d7458b59719af390508db811e0a993a606397166771cfcb9c0269249341fb6f678aafa8bae4a89e7a914176f61a608e6ccdfd0cab22b SHA512 1be9ff9d07068cab1ca69315010238ab15e5ba3b674bd45e9a0e11d20418810ece05a8df3853796118193468ac2ac6e24391f82d6db9581658ce59ddabb5b7fc +DIST primesieve-12.3.tar.gz 140761 BLAKE2B d93aa8747d43850b9194172a2300942a685797c1aeb503240eb23cbbfe4b99281f3058a622d0e2359017e144ff8200dcecdd56922e16b46366d693b04eb1350a SHA512 b7bd74223ca9abe41de9f6a48102e6cfd1b1989fb291292c13f5c751a31f8df93e1faaadee318f169cfe81fa4dc4d5b0678fe7556f77043941d8ae749c6e8cc7 EBUILD primesieve-11.0.ebuild 1038 BLAKE2B 24f210bb5099c96234c0682bf634a3387ad33b8325b229497a93f7bcc77e04d604d08c579f4ad03414dc2669f648ebbf8ee0b1c6fbfe1c14c95fbeeb408e4120 SHA512 e8ef7324d624fbc1033081f443f3d241e631071869cf210ad4a5cf95ca879bda7f7dc29a308ddfedd775c60fbc5fd5d3fd1d85525ec76c06433439bcc8703331 +EBUILD primesieve-12.3.ebuild 1122 BLAKE2B 6f319a223f9440d473d09aae586d3db0ca8798596aa3082b74f8d9c3bac3fdc257914f7a961183a04f202f01a1f47b5a62f701946d3439d3478407e4ce248783 SHA512 a34b7e78759f13b96e868adf0df923dc7af3fbb20cbcd28d58f4f28a9d2d533442afa7a171268b6b2ad86b8eea0bff82f0a33448080ff1da358e035d39537cc7 MISC metadata.xml 672 BLAKE2B e580c88061b6dcece5a34fde2cd13ce8c55264f3bac16fe3af6374df92d6280993452ebeea3d8446d9f8afcf7c1cb6927405c40e82a1c01a153d5060c77392fd SHA512 8ad3dd50c172ad3333d30a01b0e7ddb8f0f96b7666b61a0c6a1644e92abc49fa75f4f54c4c88eb72c2c8c7104d5e720d852bc7319fbc1a9569fcc5de85529b02 diff --git a/sci-mathematics/primesieve/primesieve-12.3.ebuild b/sci-mathematics/primesieve/primesieve-12.3.ebuild new file mode 100644 index 000000000000..580881f0c652 --- /dev/null +++ b/sci-mathematics/primesieve/primesieve-12.3.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2024 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/12" # subslot is first component of libprimesieve.so version +KEYWORDS="~amd64" +IUSE="doc +executable test" +RESTRICT="!test? ( test )" + +# dev-texlive/texlive-latexextra needed for varwidth.sty, bug 936808 +BDEPEND="doc? ( + app-text/doxygen + app-text/texlive + dev-texlive/texlive-latexextra + media-gfx/graphviz +)" + +DOCS=( + ChangeLog + README.md + doc/ALGORITHMS.md + doc/CPP_API.md + doc/C_API.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 +} |