From nobody Sat Dec 03 09:48:42 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 4NPQ4B471Gz4hw5N; Sat, 3 Dec 2022 09:48:42 +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 4NPQ4B3Y2cz4JPW; Sat, 3 Dec 2022 09:48:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670060922; 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=CIfehh5UQxTctvita7+lRvxZeb2TH+YcuW4eBb5vyj8=; b=mgACz49iQ3KvnuqLkC55lnb0xZsWyNZ4RljpP9nbuqECDNh8tL1QUOQYCUTrpq1JGowh7M /sZLZ04LC1XexpxKpkTqsg4donxtnYv55tVdxmTYSkHx7PPrS+nIwIx4lDL+PDYCqPqNWK wxaGba7nezKGfLZiabRYUD/Z3ODEJWwyfkr/65dJ2fGsuk104E+lfWC8unNYCLD99VPnnk 6lzPktuDZLOp4RUxJenoNvh9esP+SBKCG5IgsQAGpnNyrJVsljlZj+hFpS4aMX8xsGkXzw XEqbninR6zLkTWI8gH0Nd949pdMbqJQyLZFy82yxn7R2qBV6bccs41l2RdUEhA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1670060922; 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=CIfehh5UQxTctvita7+lRvxZeb2TH+YcuW4eBb5vyj8=; b=Lvxy0TDKJhRqA9hQiwpHgYJpujklUNWlixKgnSz1rU3QAQ6Q0r2eAwRjyKxPN+kbZTiYb4 XVIOvVDaeaOXFVGIwYIWBULBJRMJVyKtwA3lnsWE0k8EXprOpdAbluWF3TPWoNkUn7iWZP QdLrgX0dsyOQS0bd9pDunPhejQOMiON35akA2ul+r5kHC9AgmNiq3x1KKJTSI9HuD3NLSm 86AT1hMxCbGF+2MXRopPXsr6r4PakC0Tu1/yaa5oHvHF8ZFirButhrnVcvaGNi29aBetkw Cj1HylQOh75qdvtEcjrYvNyElT1OFwPyaTOtZDAHn6Q2zfK2D4aW1RPboadrzQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1670060922; a=rsa-sha256; cv=none; b=SRUZWa6Tn4BvqNhLCWqTQI1W53LYtDJMXTyn/5NXIOFfFhFEayvNeKMX5DMO8EmtCmWp0C nXKvJBzDkrKVVRjmqbwfdCIvbTI0PLywMLd8KzJUSD3HyAxqs2GZj1jyXZe/YbKGOUerHB bRO+jEn1vUYWiInao2zMu+pVx1mJpn/XlWXJAYlivBJgLgh8dKTPzH5d11INnNPZBR869K +pmMyrtKYrlKrJ3EaCtSeVbbGwtznsl6/qcKM+XBq44AZ5jWNaqkshTY0z8ultsP67VHTR BqSnihIyf+Lh0yLBGPancFpwzwEVpM2jAah7DbJiUS0QIF+08Fr6DwuS6jZ+Mg== 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 4NPQ4B2Ys6zqr5; Sat, 3 Dec 2022 09:48:42 +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 2B39mgBT068220; Sat, 3 Dec 2022 09:48:42 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 2B39mgcZ068219; Sat, 3 Dec 2022 09:48:42 GMT (envelope-from git) Date: Sat, 3 Dec 2022 09:48:42 GMT Message-Id: <202212030948.2B39mgcZ068219@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: 27ca116ba828 - main - science/polytope: New port: Library for generating Voronoi and Voronoi-like tessellations 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: 27ca116ba8283c5aebf6024b9db878a84fb2fe7a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=27ca116ba8283c5aebf6024b9db878a84fb2fe7a commit 27ca116ba8283c5aebf6024b9db878a84fb2fe7a Author: Yuri Victorovich AuthorDate: 2022-12-03 09:17:57 +0000 Commit: Yuri Victorovich CommitDate: 2022-12-03 09:47:44 +0000 science/polytope: New port: Library for generating Voronoi and Voronoi-like tessellations --- science/Makefile | 1 + science/polytope/Makefile | 33 ++++++++++++++++++ science/polytope/distinfo | 3 ++ science/polytope/files/patch-CMakeLists.txt | 11 ++++++ science/polytope/files/patch-src_CMakeLists.txt | 22 ++++++++++++ science/polytope/pkg-descr | 8 +++++ science/polytope/pkg-plist | 45 +++++++++++++++++++++++++ 7 files changed, 123 insertions(+) diff --git a/science/Makefile b/science/Makefile index e9d5ac65faf8..2b60a49bfe35 100644 --- a/science/Makefile +++ b/science/Makefile @@ -265,6 +265,7 @@ SUBDIR += phonopy SUBDIR += plumed SUBDIR += pnetcdf + SUBDIR += polytope SUBDIR += precice SUBDIR += psi4 SUBDIR += pulseview diff --git a/science/polytope/Makefile b/science/polytope/Makefile new file mode 100644 index 000000000000..f8f70b3177ca --- /dev/null +++ b/science/polytope/Makefile @@ -0,0 +1,33 @@ +PORTNAME= polytope +DISTVERSION= 0.6.2-2 +DISTVERSIONSUFFIX= -g764fd19 +CATEGORIES= science + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Library for generating Voronoi and Voronoi-like tessellations +WWW= https://github.com/pbtoast/polytope + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${LOCALBASE}/include/boost/geometry.hpp:devel/boost-libs +LIB_DEPENDS= libsz.so:science/libaec + +USES= cmake:testing +USE_LDCONFIG= yes + +USE_GITHUB= yes +GH_ACCOUNT= pbtoast + +CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_OFF= TESTING +CMAKE_TESTING_ON= TESTING # 1 test is known to fail, see https://github.com/pbtoast/polytope/issues/18 + +OPTIONS_DEFINE= SILO +OPTIONS_DEFAULT= SILO + +SILO_DESC= Use SILO reader/writer +SILO_CMAKE_BOOL= USE_SILO +SILO_LIB_DEPENDS= libsiloh5.so:science/silo + +.include diff --git a/science/polytope/distinfo b/science/polytope/distinfo new file mode 100644 index 000000000000..90a3e187be3a --- /dev/null +++ b/science/polytope/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1670054925 +SHA256 (pbtoast-polytope-0.6.2-2-g764fd19_GH0.tar.gz) = e28a965271e3c1c4cd09c015d7f1d4410b3092a64b994c41d27b9c577bebdc8c +SIZE (pbtoast-polytope-0.6.2-2-g764fd19_GH0.tar.gz) = 6858333 diff --git a/science/polytope/files/patch-CMakeLists.txt b/science/polytope/files/patch-CMakeLists.txt new file mode 100644 index 000000000000..9e78993b664c --- /dev/null +++ b/science/polytope/files/patch-CMakeLists.txt @@ -0,0 +1,11 @@ +--- CMakeLists.txt.orig 2022-12-03 08:13:57 UTC ++++ CMakeLists.txt +@@ -10,7 +10,7 @@ set(CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake/Modul + project(Polytope) + + # We require at least C++11 +-set(CMAKE_CXX_STANDARD 11) ++set(CMAKE_CXX_STANDARD 14) + set(CMAKE_CXX_STANDARD_REQUIRED ON) + set(CMAKE_CXX_EXTENSIONS OFF) + diff --git a/science/polytope/files/patch-src_CMakeLists.txt b/science/polytope/files/patch-src_CMakeLists.txt new file mode 100644 index 000000000000..731eabaac985 --- /dev/null +++ b/science/polytope/files/patch-src_CMakeLists.txt @@ -0,0 +1,22 @@ +- uses std::integer_sequence C++14 feature + +--- src/CMakeLists.txt.orig 2022-12-03 08:18:04 UTC ++++ src/CMakeLists.txt +@@ -17,7 +17,7 @@ endif() + # TriangleTessellator and triangle source + if (HAVE_TRIANGLE) + list(APPEND TESSELLATOR_SOURCES TriangleTessellator.cc) +- add_library(triangle STATIC predicates.cc triangle.c) ++ add_library(triangle predicates.cc triangle.c) + #set(TRIANGLE_LIB triangle PARENT_SCOPE) + set(TRIANGLE_LIB triangle) + set_target_properties(triangle PROPERTIES +@@ -49,7 +49,7 @@ endif() + file(GLOB HEADERS *.hh) + list(APPEND HEADERS "${PROJECT_BINARY_DIR}/polytope.hh") + +-add_library(polytope STATIC ++add_library(polytope + ${TESSELLATOR_SOURCES} ${IO_SOURCES} ErrorHandler.cc + polytope_internal_abort.cc) + diff --git a/science/polytope/pkg-descr b/science/polytope/pkg-descr new file mode 100644 index 000000000000..fbeefbde9e46 --- /dev/null +++ b/science/polytope/pkg-descr @@ -0,0 +1,8 @@ +Polytope is a C++ library for generating polygonal and polyhedral meshes. +It makes use of various 2D and 3D tessellation techniques, but provides +a single representation for these tessellations, and a simple interface +for generating them. + +Polytope has a simple C interface for use with other languages. It also +includes bindings for Python. These bindings allow you to easily incorporate +Polytope into your own mesh generation tools. diff --git a/science/polytope/pkg-plist b/science/polytope/pkg-plist new file mode 100644 index 000000000000..1a3ad063500d --- /dev/null +++ b/science/polytope/pkg-plist @@ -0,0 +1,45 @@ +include/polytope/BoostOrphanage.hh +include/polytope/BoostTessellator.hh +include/polytope/BoostTessellatorTraits.hh +include/polytope/Clipper2d.hh +include/polytope/DimensionTraits.hh +include/polytope/ErrorHandler.hh +include/polytope/IntPointMap.hh +include/polytope/KeyTraits.hh +include/polytope/MeshEditor.hh +include/polytope/OrphanageBase.hh +include/polytope/PLC.hh +include/polytope/PLC_Boost_2d.hh +include/polytope/PLC_CSG_2d.hh +include/polytope/PLC_CSG_3d.hh +include/polytope/Point.hh +include/polytope/QuantTessellation.hh +include/polytope/QuantizedCoordinates.hh +include/polytope/QuantizedTessellation2d.hh +include/polytope/QuantizedTessellation3d.hh +include/polytope/ReducedPLC.hh +include/polytope/SiloReader.hh +include/polytope/SiloWriter.hh +include/polytope/Tessellation.hh +include/polytope/Tessellator.hh +include/polytope/TessellatorInline.hh +include/polytope/TetgenTessellator.hh +include/polytope/TriangleTessellator.hh +include/polytope/VoroPP_2d.hh +include/polytope/VoroPP_3d.hh +include/polytope/clipQuantizedTessellation.hh +include/polytope/convexHull_2d.hh +include/polytope/convexHull_3d.hh +include/polytope/findBoundaryElements.hh +include/polytope/makeBoxPLC.hh +include/polytope/polytope.hh +include/polytope/polytope_geometric_utilities.hh +include/polytope/polytope_internal.hh +include/polytope/polytope_parallel_utilities.hh +include/polytope/polytope_serialize.hh +include/polytope/polytope_tessellator_utilities.hh +include/polytope/polytope_write_OOGL.hh +include/polytope/removeElements.hh +include/polytope/simplifyPLCfacets.hh +include/polytope/snapToBoundary.hh +lib/libpolytope.so