math/primesum: New port: Sum of the primes below x

This commit is contained in:
Yuri Victorovich 2022-12-08 07:59:01 -08:00
parent 14c22cdccc
commit 1b5f646095
5 changed files with 49 additions and 0 deletions

View File

@ -849,6 +849,7 @@
SUBDIR += primecount
SUBDIR += primegen
SUBDIR += primesieve
SUBDIR += primesum
SUBDIR += primme
SUBDIR += prng
SUBDIR += pspp

27
math/primesum/Makefile Normal file
View File

@ -0,0 +1,27 @@
PORTNAME= primesum
DISTVERSIONPREFIX= v
DISTVERSION= 1.7-19
DISTVERSIONSUFFIX= -gac22b96
CATEGORIES= math
MAINTAINER= yuri@FreeBSD.org
COMMENT= Sum of the primes below x
WWW= https://github.com/kimwalisch/primesum
LICENSE= BSD2CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
USES= cmake:testing compiler:c++11-lang
USE_LDCONFIG= yes
USE_GITHUB= yes
GH_ACCOUNT= kimwalisch
CMAKE_ON= BUILD_SHARED_LIBS
CMAKE_OFF= BUILD_STATIC_LIBS
do-test:
@cd ${TEST_WRKSRC} && \
${SETENV} LD_LIBRARY_PATH=${STAGEDIR}${PREFIX}/lib ${STAGEDIR}${PREFIX}/bin/primesum --test
.include <bsd.port.mk>

3
math/primesum/distinfo Normal file
View File

@ -0,0 +1,3 @@
TIMESTAMP = 1670527143
SHA256 (kimwalisch-primesum-v1.7-19-gac22b96_GH0.tar.gz) = 309fdde003b33d0ae7b83e652373eef3ab319ee42988591dcd86e8affb8e4b14
SIZE (kimwalisch-primesum-v1.7-19-gac22b96_GH0.tar.gz) = 241887

3
math/primesum/pkg-descr Normal file
View File

@ -0,0 +1,3 @@
primesum is a command-line program that computes the sum of the primes below an
integer x <= 1031 as quickly as possible using a modified version of the
combinatorial prime counting function algorithm.

15
math/primesum/pkg-plist Normal file
View File

@ -0,0 +1,15 @@
bin/primesum
include/primesieve.h
include/primesieve.hpp
include/primesieve/StorePrimes.hpp
include/primesieve/iterator.h
include/primesieve/iterator.hpp
include/primesieve/primesieve_error.hpp
lib/cmake/primesieve/primesieveConfig.cmake
lib/cmake/primesieve/primesieveConfigVersion.cmake
lib/cmake/primesieve/primesieveShared-%%CMAKE_BUILD_TYPE%%.cmake
lib/cmake/primesieve/primesieveShared.cmake
lib/libprimesieve.so
lib/libprimesieve.so.9
lib/libprimesieve.so.9.6.0
libdata/pkgconfig/primesieve.pc