git: 135447f2e2be - main - graphics/py-s2: Use the same C++ version as devel/abseil

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Mon, 30 Jan 2023 13:06:48 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=135447f2e2be5a9b9ac1e482ed01915a19a6a93d

commit 135447f2e2be5a9b9ac1e482ed01915a19a6a93d
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-01-30 12:29:19 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-01-30 12:59:17 +0000

    graphics/py-s2: Use the same C++ version as devel/abseil
    
    - Update version requirement of *_DEPENDS
    - Bump PORTREVISION for package change
    
    Reference:      https://github.com/google/s2geometry/blob/master/README.md#building
---
 graphics/py-s2/Makefile | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/graphics/py-s2/Makefile b/graphics/py-s2/Makefile
index 29883bb2e5ac..920d39694398 100644
--- a/graphics/py-s2/Makefile
+++ b/graphics/py-s2/Makefile
@@ -1,5 +1,6 @@
 PORTNAME=	s2
 PORTVERSION=	0.10.0
+PORTREVISION=	1
 DISTVERSIONPREFIX=	v
 CATEGORIES=	graphics python
 PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
@@ -11,13 +12,15 @@ WWW=		https://s2geometry.io/
 LICENSE=	APACHE20
 LICENSE_FILE=	${WRKSRC}/../../LICENSE
 
-BUILD_DEPENDS=	s2>=${PORTVERSION}:graphics/s2 \
+BUILD_DEPENDS=	s2>=${PORTVERSION}<${PORTVERSION}_99:graphics/s2 \
 		swig>=4:devel/swig
 LIB_DEPENDS=	libs2.so:graphics/s2
 
-USES=		cmake compiler:c++11-lang localbase:ldflags python
+USES=		cmake compiler:c++17-lang localbase:ldflags python
 
 CMAKE_ON=	WITH_PYTHON
+USE_CXXSTD=	c++17
+
 WRKSRC_SUBDIR=	src/python
 
 GH_ACCOUNT=	google