From nobody Sat Aug 06 19:56:57 2022 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 4M0YBx2fbFz4XhH6; Sat, 6 Aug 2022 19:56:57 +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 4M0YBx24Qrz3q4G; Sat, 6 Aug 2022 19:56:57 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659815817; 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=Zs3eXGAW28Lh89hHpLwVPww24RShBvWb+1dzUb7Zttc=; b=ITDLq8N9QKfafxlRKzvJ5J8qDwS2GOutdCgxf+nKr09++OMhod/gzyPkFLzpaTzDFkJwTC /+sjl3WYLwuL8IzDWuvpeMcM0oHGFLPgt44ZJClJiL0t22CwG4TQSRZmsO39WfyRH1pjn2 wf7fHUTaIhcXx9xMvF2A2VihVlFxQDlMPdSGqDv134miYgNI6Bf4pyZQ1JVWM9Ev4q8rLs FHtrHNklwHoiShOzLIZi7fAwzVmgX7PbvRFFI73anM5rNZizt7Z3UL8zSNDPuUstNCVh6+ hLnBdOwzulwSpW7+F7HW1OqnicDH/wMJ9nqolZY49SPCkRDr5JFLjxcpZun36g== 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 4M0YBx15wgzlMl; Sat, 6 Aug 2022 19:56:57 +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 276Juv2u054236; Sat, 6 Aug 2022 19:56:57 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 276JuvwN054235; Sat, 6 Aug 2022 19:56:57 GMT (envelope-from git) Date: Sat, 6 Aug 2022 19:56:57 GMT Message-Id: <202208061956.276JuvwN054235@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: 15286a76707b - main - math/ssht: New port: Fast and exact spin spherical harmonic transforms 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: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 15286a76707bc8686bd3beb9c5be0f5d181dee4e Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1659815817; 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=Zs3eXGAW28Lh89hHpLwVPww24RShBvWb+1dzUb7Zttc=; b=XgPs8ssPLiyenuOm9FEQxsoNET29pVq3Ahm1rF3MNZIJCbT5fEbziW90iamFUxZxwY/Xnw SJ4D+hHDtAzn9Q/UK6KPFdvWXdC+cvWNeYxmHGrUUoWFnbnrj/DRfznrJb/O+Z6r3+6LU0 OpcYDjC6r54IG0ZIAU341rMwMtwmebazRv26PL6n65jHhkbMI15Zahc4V4+qMNj7kdJEv2 GoFFwYi3HjJK/DzOh0rdB+X01RYClHwnPTww1GSmSz83lMvSz5xsOqhuTWDbEgTlR+bFGL kHV/LHZk6t+TLXJcfGfXZj65EZUlBfaNluaf1L7I0kc8XeOM9eJ+0fqf0UJvHg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1659815817; a=rsa-sha256; cv=none; b=X+0oyE/jWcYyxHoAYJDko39xLvhgNQUiP30FsBC1a1Lge3SJ1qW2ZVbzeJzSQO+2aVQwWD j8C7FegmwMO+915YrX3C/ZKKibH+lAX9b54w4rGgKKxuibpKvSBvj3tJnzNqbXiZV/XW1a CvYY7NCpSLWUr5Oerbs589g6tygnJEi9+0Ypqj66h5WBsfzu3zF1gPj96/tYCiB024w0bG rYzaAd5avQXiWrFxUzREBzXc5wPi4+MucTu1U1VxiZqLh3C3XqY0OyHVcTfPj+AGVPIKGy 0yku84pDoLyj9Ya46+mR6w8+ENHfd17aoJfX7/jQ30nF5jCWKXbnFKivIv5Arg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=15286a76707bc8686bd3beb9c5be0f5d181dee4e commit 15286a76707bc8686bd3beb9c5be0f5d181dee4e Author: Yuri Victorovich AuthorDate: 2022-08-06 19:36:39 +0000 Commit: Yuri Victorovich CommitDate: 2022-08-06 19:56:54 +0000 math/ssht: New port: Fast and exact spin spherical harmonic transforms --- math/Makefile | 1 + math/ssht/Makefile | 22 ++++++++++++++++++++++ math/ssht/distinfo | 3 +++ math/ssht/files/patch-CMakeLists.txt | 11 +++++++++++ math/ssht/files/patch-src_c_CMakeLists.txt | 8 ++++++++ math/ssht/pkg-descr | 13 +++++++++++++ math/ssht/pkg-plist | 13 +++++++++++++ 7 files changed, 71 insertions(+) diff --git a/math/Makefile b/math/Makefile index 39f6fafd12bd..e21357cce66b 100644 --- a/math/Makefile +++ b/math/Makefile @@ -1058,6 +1058,7 @@ SUBDIR += spooles-mpich SUBDIR += spot SUBDIR += sprng + SUBDIR += ssht SUBDIR += stan SUBDIR += stanmath SUBDIR += stp diff --git a/math/ssht/Makefile b/math/ssht/Makefile new file mode 100644 index 000000000000..2e3a00f94235 --- /dev/null +++ b/math/ssht/Makefile @@ -0,0 +1,22 @@ +PORTNAME= ssht +DISTVERSIONPREFIX= v +DISTVERSION= 1.5.1 +CATEGORIES= math + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Fast and exact spin spherical harmonic transforms + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= fftw3>0:math/fftw3 # see https://github.com/astro-informatics/ssht/issues/6 + +USES= cmake:testing pkgconfig # tests clone cmocka, see https://github.com/astro-informatics/ssht/issues/63 + +USE_GITHUB= yes +GH_ACCOUNT= astro-informatics + +CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_OFF= BUILD_TESTING + +.include diff --git a/math/ssht/distinfo b/math/ssht/distinfo new file mode 100644 index 000000000000..15f2ffc62a81 --- /dev/null +++ b/math/ssht/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1659813524 +SHA256 (astro-informatics-ssht-v1.5.1_GH0.tar.gz) = f0b6fb6a1de40354fcf4eafe09b953c96a72ba9c533a42e290802e93cd14170c +SIZE (astro-informatics-ssht-v1.5.1_GH0.tar.gz) = 2332554 diff --git a/math/ssht/files/patch-CMakeLists.txt b/math/ssht/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..79922d5319e5 --- /dev/null +++ b/math/ssht/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2022-08-06 19:21:48 UTC ++++ CMakeLists.txt +@@ -42,7 +42,7 @@ elseif(NOT CONAN_EXPORTED) + endif() + + # only run documentation if this is not a sub-project +-if(CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) ++if(FREEBSD_BUILD_DOCS AND CMAKE_SOURCE_DIR STREQUAL CMAKE_CURRENT_SOURCE_DIR) + find_package(Doxygen) + if(DOXYGEN_FOUND) + set(DOXYGEN_OPTIMIZE_OUTPUT_FOR_C "YES") diff --git a/math/ssht/files/patch-src_c_CMakeLists.txt b/math/ssht/files/patch-src_c_CMakeLists.txt new file mode 100644 index 000000000000..443085f6e1be --- /dev/null +++ b/math/ssht/files/patch-src_c_CMakeLists.txt @@ -0,0 +1,8 @@ +--- src/c/CMakeLists.txt.orig 2022-08-06 19:20:16 UTC ++++ src/c/CMakeLists.txt +@@ -1,4 +1,4 @@ +-add_library(ssht STATIC ssht_adjoint.c ssht_core.c ssht_dl.c ssht_sampling.c) ++add_library(ssht ssht_adjoint.c ssht_core.c ssht_dl.c ssht_sampling.c) + target_link_libraries(ssht PUBLIC FFTW3::FFTW3 ${MATH_LIBRARY}) + target_include_directories( + ssht diff --git a/math/ssht/pkg-descr b/math/ssht/pkg-descr new file mode 100644 index 000000000000..ef65a84bec82 --- /dev/null +++ b/math/ssht/pkg-descr @@ -0,0 +1,13 @@ +The SSHT code provides functionality to perform fast and exact spin spherical +harmonic transforms based on the sampling theorem on the sphere derived in +McEwen & Wiaux (2011). + +SSHT can also interface with ducc0 and use it as a backend for the forward, +inverse and inverse adjoint transforms. + +In some applications adjoint forward and inverse spherical harmonic transforms +are also required (for example, when solving convex optimisation problems). +Functionality is also provided to perform fast and exact adjoint transforms, +based on the fast algorithms derived in McEwen et al. (2013). + +WWW: https://astro-informatics.github.io/ssht/ diff --git a/math/ssht/pkg-plist b/math/ssht/pkg-plist new file mode 100644 index 000000000000..7f160493e9a3 --- /dev/null +++ b/math/ssht/pkg-plist @@ -0,0 +1,13 @@ +include/ssht/ssht.h +include/ssht/ssht_adjoint.h +include/ssht/ssht_core.h +include/ssht/ssht_dl.h +include/ssht/ssht_error.h +include/ssht/ssht_sampling.h +include/ssht/ssht_types.h +include/ssht/ssht_version.h +lib/cmake/ssht/sshtConfig.cmake +lib/cmake/ssht/sshtConfigVersion.cmake +lib/cmake/ssht/sshtTargets-%%CMAKE_BUILD_TYPE%%.cmake +lib/cmake/ssht/sshtTargets.cmake +lib/libssht.so