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
This commit is contained in:
Po-Chuan Hsieh 2023-01-30 20:29:19 +08:00
parent 88638d8757
commit 135447f2e2
No known key found for this signature in database
GPG Key ID: 9A4BD10F002DD04B
1 changed files with 5 additions and 2 deletions

View File

@ -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