From nobody Sun Nov 28 17:56:02 2021 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 8F22C18AEC40; Sun, 28 Nov 2021 17:56:03 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4J2GPG3SmGz4k7N; Sun, 28 Nov 2021 17:56:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 40368136BA; Sun, 28 Nov 2021 17:56:02 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 1ASHu26i021051; Sun, 28 Nov 2021 17:56:02 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 1ASHu2ZE021050; Sun, 28 Nov 2021 17:56:02 GMT (envelope-from git) Date: Sun, 28 Nov 2021 17:56:02 GMT Message-Id: <202111281756.1ASHu2ZE021050@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Thierry Thomas Subject: git: 818abd4c5541 - main - math/primecount: addind fast prime counting function implementations List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-main@freebsd.org X-BeenThere: dev-commits-ports-main@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: thierry X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 818abd4c554116d4a6ae6a0c7b722b2617c0f5b2 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1638122162; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=HhjqemRGaPVZHo/iovpZ8wXnH4orI0Yf/xLO/bb7wRo=; b=KO1u4w+Fc/E7IPoBxXsmyZADPW8+ThQbfpOVzpU1O6b2Ihmj8SDo3VPJHNHSkp0jV4Lv3T TTIOGksDt47upuxDxRDvHvatBtlL7CJlUOa3xxwEfgW4jP0Nq/8rzqPn6+sJeEhIoHwtj3 sEZaQbEI9hR8TRR+BwUx6rDkm/USnKinaCrxWCBtdZHVdpBl+5Wa4hUUXkvoAUPS5kJlvT RIsLyttCrr6/KlSdyscCPkhoDf8ymbYYnOzkbpLVNaNT2WhWNxXTyBNhWAkyJ0XLoOKR/6 nz11SwL6wAhcRuktUH8ZqUexUzbccW63Ai0c+6ihLyZ/8owVnQIjpuqMYC4+ZQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1638122162; a=rsa-sha256; cv=none; b=Lm94K9u7AozFK2FWEr5FH5SibUBoDZLsE7PEA/eCiweXBNz2ERcohcfcwqOiqNiDpogBh1 Ax6TUXJLySazreGSyHEfMMqup2MwLgsycJxVg2I9EPbN8qE/5tMudDVfA9UuBbCO7zQfj0 jBWzEW+152o6GX7aH3nKNtWgDpT42TjOpm0D5PUCB+FwSCUbITetPWtteCRXPL/viF/j5U AYljKuf3G87Y9ET44RdBSWFjXYBjhVEDZra173PdLOh4FuNlYRN+eI3xAkzcpr1mgoVRwn RZB+hdmO2XhduiWYuLAhi/5Qq6KoQQaJUH19H6VjS/oHlLABIUJOcEDyCTFdvQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by thierry: URL: https://cgit.FreeBSD.org/ports/commit/?id=818abd4c554116d4a6ae6a0c7b722b2617c0f5b2 commit 818abd4c554116d4a6ae6a0c7b722b2617c0f5b2 Author: Thierry Thomas AuthorDate: 2021-11-28 17:48:00 +0000 Commit: Thierry Thomas CommitDate: 2021-11-28 17:55:56 +0000 math/primecount: addind fast prime counting function implementations primecount is a command-line program and C/C++ library that counts the primes below an integer x ≤ 1031 using highly optimized implementations of the combinatorial prime counting algorithms. To be used by SageMath. --- math/Makefile | 1 + math/primecount/Makefile | 31 +++++++++++++++++++++++++++++++ math/primecount/distinfo | 3 +++ math/primecount/pkg-descr | 5 +++++ math/primecount/pkg-plist | 7 +++++++ 5 files changed, 47 insertions(+) diff --git a/math/Makefile b/math/Makefile index 5341be1e6987..5ee6ba182630 100644 --- a/math/Makefile +++ b/math/Makefile @@ -778,6 +778,7 @@ SUBDIR += poly2tri SUBDIR += polylib SUBDIR += polymake + SUBDIR += primecount SUBDIR += primegen SUBDIR += primesieve SUBDIR += primme diff --git a/math/primecount/Makefile b/math/primecount/Makefile new file mode 100644 index 000000000000..1a69fdf704c9 --- /dev/null +++ b/math/primecount/Makefile @@ -0,0 +1,31 @@ +# Created by: thierry@pompo.net + +PORTNAME= primecount +DISTVERSIONPREFIX= v +DISTVERSION= 7.1 +CATEGORIES= math + +MAINTAINER= thierry@FreeBSD.org +COMMENT= Fast prime counting function implementations + +LICENSE= BSD2CLAUSE + +BUILD_DEPENDS= libdivide>0:math/libdivide +LIB_DEPENDS= libprimesieve.so:math/primesieve + +USE_GITHUB= yes +GH_ACCOUNT= kimwalisch + +USES= cmake compiler:c++11-lang +USE_LDCONFIG= yes + +CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_OFF= BUILD_LIBPRIMESIEVE BUILD_STATIC_LIBS + +do-test: + cd ${BUILD_WRKSRC} && \ + ${SETENV} ${CONFIGURE_ENV} ${CMAKE_BIN} ${CMAKE_ARGS} -DBUILD_TESTS:BOOL=ON ${CMAKE_SOURCE_PATH} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} ${ALL_TARGET} && \ + ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_ARGS} test + +.include diff --git a/math/primecount/distinfo b/math/primecount/distinfo new file mode 100644 index 000000000000..96c6224de16d --- /dev/null +++ b/math/primecount/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1638108625 +SHA256 (kimwalisch-primecount-v7.1_GH0.tar.gz) = 4f156f3945b613c9262156a25255f689abcaf30fff778c1d27b17126fcd1db72 +SIZE (kimwalisch-primecount-v7.1_GH0.tar.gz) = 331976 diff --git a/math/primecount/pkg-descr b/math/primecount/pkg-descr new file mode 100644 index 000000000000..39d205fd17fb --- /dev/null +++ b/math/primecount/pkg-descr @@ -0,0 +1,5 @@ +primecount is a command-line program and C/C++ library that counts the primes +below an integer x <= 1031 using highly optimized implementations of the +combinatorial prime counting algorithms. + +WWW: https://github.com/kimwalisch/primecount diff --git a/math/primecount/pkg-plist b/math/primecount/pkg-plist new file mode 100644 index 000000000000..c437ab5777b0 --- /dev/null +++ b/math/primecount/pkg-plist @@ -0,0 +1,7 @@ +bin/primecount +include/primecount.h +include/primecount.hpp +lib/libprimecount.so +lib/libprimecount.so.7 +lib/libprimecount.so.7.1 +man/man1/primecount.1.gz