git: a8569ebf8447 - main - graphics/s2: Update to 0.10.0
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 26 Apr 2022 15:04:36 UTC
The branch main has been updated by sunpoet: URL: https://cgit.FreeBSD.org/ports/commit/?id=a8569ebf844723fb3805b730eeac8971c523b692 commit a8569ebf844723fb3805b730eeac8971c523b692 Author: Po-Chuan Hsieh <sunpoet@FreeBSD.org> AuthorDate: 2022-04-26 14:53:04 +0000 Commit: Po-Chuan Hsieh <sunpoet@FreeBSD.org> CommitDate: 2022-04-26 15:01:16 +0000 graphics/s2: Update to 0.10.0 Changes: https://github.com/google/s2geometry/releases --- graphics/s2/Makefile | 11 +++-- graphics/s2/distinfo | 6 +-- graphics/s2/files/patch-CMakeLists.txt | 30 ------------ graphics/s2/files/patch-gflags | 17 +++++++ ...ird_party-absl-base-internal-unaligned_access.h | 22 --------- graphics/s2/pkg-plist | 54 ++++++---------------- 6 files changed, 40 insertions(+), 100 deletions(-) diff --git a/graphics/s2/Makefile b/graphics/s2/Makefile index 6f00c3c4821c..23223ad64079 100644 --- a/graphics/s2/Makefile +++ b/graphics/s2/Makefile @@ -1,9 +1,8 @@ # Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org> PORTNAME= s2 -PORTVERSION= 0.9.0 +PORTVERSION= 0.10.0 DISTVERSIONPREFIX= v -PORTREVISION= 2 CATEGORIES= graphics MAINTAINER= sunpoet@FreeBSD.org @@ -15,13 +14,18 @@ LICENSE_FILE= ${WRKSRC}/LICENSE NOT_FOR_ARCHS= i386 NOT_FOR_ARCHS_REASON= is currently 64-bit only -LIB_DEPENDS= libgtest.so:devel/googletest +LIB_DEPENDS= libabsl_base.so:devel/abseil \ + libgtest.so:devel/googletest USES= cmake compiler:c++11-lang localbase ssl CMAKE_ON= BUILD_SHARED_LIBS +CMAKE_OFF= WITH_PYTHON +USE_CXXSTD= c++11 USE_LDCONFIG= yes +PLIST_SUB= PORTVERSION=${PORTVERSION} + GH_ACCOUNT= google GH_PROJECT= s2geometry USE_GITHUB= yes @@ -45,7 +49,6 @@ CXXFLAGS+= -mcpu=power7 post-install-EXAMPLES-on: ${MKDIR} ${STAGEDIR}${EXAMPLESDIR} - ${INSTALL_PROGRAM} ${INSTALL_WRKSRC}/examples/point_index ${INSTALL_WRKSRC}/examples/term_index ${STAGEDIR}${EXAMPLESDIR} ${INSTALL_DATA} ${WRKSRC}/doc/examples/point_index.cc ${WRKSRC}/doc/examples/term_index.cc ${STAGEDIR}${EXAMPLESDIR} .include <bsd.port.mk> diff --git a/graphics/s2/distinfo b/graphics/s2/distinfo index 5a5d086bbe8b..904934a03b44 100644 --- a/graphics/s2/distinfo +++ b/graphics/s2/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1599729119 -SHA256 (google-s2geometry-v0.9.0_GH0.tar.gz) = 54c09b653f68929e8929bffa60ea568e26f3b4a51e1b1734f5c3c037f1d89062 -SIZE (google-s2geometry-v0.9.0_GH0.tar.gz) = 1124554 +TIMESTAMP = 1650970063 +SHA256 (google-s2geometry-v0.10.0_GH0.tar.gz) = 1c17b04f1ea20ed09a67a83151ddd5d8529716f509dde49a8190618d70532a3d +SIZE (google-s2geometry-v0.10.0_GH0.tar.gz) = 1110687 diff --git a/graphics/s2/files/patch-CMakeLists.txt b/graphics/s2/files/patch-CMakeLists.txt deleted file mode 100644 index ac0f59421c56..000000000000 --- a/graphics/s2/files/patch-CMakeLists.txt +++ /dev/null @@ -1,30 +0,0 @@ ---- CMakeLists.txt.orig 2019-03-04 16:53:16 UTC -+++ CMakeLists.txt -@@ -61,9 +61,6 @@ endif() - find_package(OpenSSL REQUIRED) - # pthreads isn't used directly, but this is still required for std::thread. - find_package(Threads REQUIRED) --find_package(SWIG) --find_package(PythonInterp) --find_package(PythonLibs) - - if (WIN32) - # Use unsigned characters -@@ -86,7 +83,7 @@ endif() - # OPENSSL_ROOT_DIR=/usr/local/opt/openssl cmake .. - include_directories( - ${GFLAGS_INCLUDE_DIRS} ${GLOG_INCLUDE_DIRS} ${OPENSSL_INCLUDE_DIR} -- ${PYTHON_INCLUDE_DIRS}) -+) - include_directories(src) - - add_library(s2 -@@ -529,8 +526,4 @@ endif() - - if (BUILD_EXAMPLES) - add_subdirectory("doc/examples" examples) --endif() -- --if (${SWIG_FOUND} AND ${PYTHONLIBS_FOUND}) -- add_subdirectory("src/python" python) - endif() diff --git a/graphics/s2/files/patch-gflags b/graphics/s2/files/patch-gflags new file mode 100644 index 000000000000..ca5e9a7a610f --- /dev/null +++ b/graphics/s2/files/patch-gflags @@ -0,0 +1,17 @@ +--- src/s2/base/commandlineflags.h.orig 2022-04-01 11:53:29 UTC ++++ src/s2/base/commandlineflags.h +@@ -44,10 +44,10 @@ + + // gflags has its own int32 definitions. + namespace absl { +-inline int32 GetFlag(google::int32 flag) { return flag; } +-inline int64 GetFlag(google::int64 flag) { return flag; } +-inline void SetFlag(google::int32* f, google::int32 v) { *f = v; } +-inline void SetFlag(google::int64* f, google::int64 v) { *f = v; } ++inline int32 GetFlag(gflags::int32 flag) { return flag; } ++inline int64 GetFlag(gflags::int64 flag) { return flag; } ++inline void SetFlag(gflags::int32* f, gflags::int32 v) { *f = v; } ++inline void SetFlag(gflags::int64* f, gflags::int64 v) { *f = v; } + } // namespace absl + + #else // !defined(S2_USE_GFLAGS) diff --git a/graphics/s2/files/patch-src-s2-third_party-absl-base-internal-unaligned_access.h b/graphics/s2/files/patch-src-s2-third_party-absl-base-internal-unaligned_access.h deleted file mode 100644 index 840e7c6f4c66..000000000000 --- a/graphics/s2/files/patch-src-s2-third_party-absl-base-internal-unaligned_access.h +++ /dev/null @@ -1,22 +0,0 @@ ---- src/s2/third_party/absl/base/internal/unaligned_access.h.orig 2020-11-11 19:42:32 UTC -+++ src/s2/third_party/absl/base/internal/unaligned_access.h -@@ -286,8 +286,8 @@ inline uint32_t UnalignedLoad32(const void *p) { - return t; - } - --inline uint64 UnalignedLoad64(const void *p) { -- uint64 t; -+inline uint64_t UnalignedLoad64(const void *p) { -+ uint64_t t; - memcpy(&t, p, sizeof t); - return t; - } -@@ -296,7 +296,7 @@ inline void UnalignedStore16(void *p, uint16_t v) { me - - inline void UnalignedStore32(void *p, uint32_t v) { memcpy(p, &v, sizeof v); } - --inline void UnalignedStore64(void *p, uint64 v) { memcpy(p, &v, sizeof v); } -+inline void UnalignedStore64(void *p, uint64_t v) { memcpy(p, &v, sizeof v); } - - } // namespace base_internal - } // namespace absl diff --git a/graphics/s2/pkg-plist b/graphics/s2/pkg-plist index f4a3d7a0b732..0ff8f9d4bad7 100644 --- a/graphics/s2/pkg-plist +++ b/graphics/s2/pkg-plist @@ -4,7 +4,6 @@ include/s2/base/commandlineflags.h include/s2/base/integral_types.h include/s2/base/log_severity.h include/s2/base/logging.h -include/s2/base/mutex.h include/s2/base/port.h include/s2/base/spinlock.h include/s2/encoded_s2cell_id_vector.h @@ -21,13 +20,16 @@ include/s2/s1angle.h include/s2/s1chord_angle.h include/s2/s1interval.h include/s2/s2boolean_operation.h +include/s2/s2buffer_operation.h include/s2/s2builder.h include/s2/s2builder_graph.h include/s2/s2builder_layer.h include/s2/s2builderutil_closed_set_normalizer.h include/s2/s2builderutil_find_polygon_degeneracies.h +include/s2/s2builderutil_get_snapped_winding_delta.h include/s2/s2builderutil_graph_shape.h include/s2/s2builderutil_lax_polygon_layer.h +include/s2/s2builderutil_lax_polyline_layer.h include/s2/s2builderutil_s2point_vector_layer.h include/s2/s2builderutil_s2polygon_layer.h include/s2/s2builderutil_s2polyline_layer.h @@ -58,6 +60,7 @@ include/s2/s2earth.h include/s2/s2edge_clipping.h include/s2/s2edge_crosser.h include/s2/s2edge_crossings.h +include/s2/s2edge_crossings_internal.h include/s2/s2edge_distances.h include/s2/s2edge_tessellator.h include/s2/s2edge_vector_shape.h @@ -73,6 +76,7 @@ include/s2/s2loop.h include/s2/s2loop_measures.h include/s2/s2max_distance_targets.h include/s2/s2measures.h +include/s2/s2memory_tracker.h include/s2/s2metrics.h include/s2/s2min_distance_targets.h include/s2/s2padded_cell.h @@ -89,6 +93,7 @@ include/s2/s2polyline_alignment.h include/s2/s2polyline_measures.h include/s2/s2polyline_simplifier.h include/s2/s2predicates.h +include/s2/s2predicates_internal.h include/s2/s2projections.h include/s2/s2r2rect.h include/s2/s2region.h @@ -104,6 +109,7 @@ include/s2/s2shape_measures.h include/s2/s2shapeutil_build_polygon_boundaries.h include/s2/s2shapeutil_coding.h include/s2/s2shapeutil_contains_brute_force.h +include/s2/s2shapeutil_conversion.h include/s2/s2shapeutil_count_edges.h include/s2/s2shapeutil_edge_iterator.h include/s2/s2shapeutil_get_reference_point.h @@ -115,63 +121,29 @@ include/s2/s2shapeutil_visit_crossing_edge_pairs.h include/s2/s2testing.h include/s2/s2text_format.h include/s2/s2wedge_relations.h +include/s2/s2winding_operation.h +include/s2/s2wrapped_shape.h include/s2/sequence_lexicon.h -include/s2/strings/ostringstream.h -include/s2/third_party/absl/algorithm/algorithm.h -include/s2/third_party/absl/base/attributes.h -include/s2/third_party/absl/base/casts.h -include/s2/third_party/absl/base/config.h -include/s2/third_party/absl/base/dynamic_annotations.h -include/s2/third_party/absl/base/internal/identity.h -include/s2/third_party/absl/base/internal/inline_variable.h -include/s2/third_party/absl/base/internal/invoke.h -include/s2/third_party/absl/base/internal/throw_delegate.h -include/s2/third_party/absl/base/internal/unaligned_access.h -include/s2/third_party/absl/base/log_severity.h -include/s2/third_party/absl/base/macros.h -include/s2/third_party/absl/base/optimization.h -include/s2/third_party/absl/base/policy_checks.h -include/s2/third_party/absl/base/port.h -include/s2/third_party/absl/base/thread_annotations.h -include/s2/third_party/absl/container/inlined_vector.h -include/s2/third_party/absl/container/internal/compressed_tuple.h -include/s2/third_party/absl/container/internal/container_memory.h -include/s2/third_party/absl/container/internal/layout.h -include/s2/third_party/absl/memory/memory.h -include/s2/third_party/absl/meta/type_traits.h -include/s2/third_party/absl/numeric/int128.h -include/s2/third_party/absl/numeric/int128_have_intrinsic.inc -include/s2/third_party/absl/numeric/int128_no_intrinsic.inc -include/s2/third_party/absl/strings/numbers.h -include/s2/third_party/absl/strings/str_cat.h -include/s2/third_party/absl/strings/string_view.h -include/s2/third_party/absl/types/span.h -include/s2/third_party/absl/utility/utility.h +include/s2/thread_testing.h include/s2/util/bits/bits.h include/s2/util/coding/coder.h include/s2/util/coding/varint.h include/s2/util/endian/endian.h -include/s2/util/gtl/btree.h -include/s2/util/gtl/btree_container.h -include/s2/util/gtl/btree_map.h -include/s2/util/gtl/btree_set.h include/s2/util/gtl/compact_array.h include/s2/util/gtl/container_logging.h include/s2/util/gtl/dense_hash_set.h include/s2/util/gtl/densehashtable.h include/s2/util/gtl/hashtable_common.h -include/s2/util/gtl/layout.h include/s2/util/hash/mix.h +include/s2/util/math/exactfloat/exactfloat.h include/s2/util/math/mathutil.h include/s2/util/math/matrix3x3.h include/s2/util/math/vector.h -include/s2/util/math/vector3_hash.h include/s2/util/units/length-units.h include/s2/util/units/physical-units.h include/s2/value_lexicon.h lib/libs2.so -lib/libs2testing.a -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/point_index +lib/libs2.so.0 +lib/libs2.so.%%PORTVERSION%% %%PORTEXAMPLES%%%%EXAMPLESDIR%%/point_index.cc -%%PORTEXAMPLES%%%%EXAMPLESDIR%%/term_index %%PORTEXAMPLES%%%%EXAMPLESDIR%%/term_index.cc