Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Sep 2020 12:07:11 +0000 (UTC)
From:      Sunpoet Po-Chuan Hsieh <sunpoet@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r548312 - in head/graphics: . py-h3 py-h3/files
Message-ID:  <202009121207.08CC7B8E099162@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: sunpoet
Date: Sat Sep 12 12:07:11 2020
New Revision: 548312
URL: https://svnweb.freebsd.org/changeset/ports/548312

Log:
  Add py-h3 3.6.4
  
  H3 is a geospatial indexing system using a hexagonal grid that can be
  (approximately) subdivided into finer and finer hexagonal grids, combining the
  benefits of a hexagonal grid with S2's hierarchical subdivisions.
  
  This port is the Python binding for H3 core library.
  
  WWW: https://github.com/uber/h3-py

Added:
  head/graphics/py-h3/
  head/graphics/py-h3/Makefile   (contents, props changed)
  head/graphics/py-h3/distinfo   (contents, props changed)
  head/graphics/py-h3/files/
  head/graphics/py-h3/files/patch-CMakeLists.txt   (contents, props changed)
  head/graphics/py-h3/pkg-descr   (contents, props changed)
Modified:
  head/graphics/Makefile

Modified: head/graphics/Makefile
==============================================================================
--- head/graphics/Makefile	Sat Sep 12 12:07:05 2020	(r548311)
+++ head/graphics/Makefile	Sat Sep 12 12:07:11 2020	(r548312)
@@ -822,6 +822,7 @@
     SUBDIR += py-graphviz
     SUBDIR += py-graphy
     SUBDIR += py-gvgen
+    SUBDIR += py-h3
     SUBDIR += py-hiplot
     SUBDIR += py-imageio
     SUBDIR += py-imageio-ffmpeg

Added: head/graphics/py-h3/Makefile
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/py-h3/Makefile	Sat Sep 12 12:07:11 2020	(r548312)
@@ -0,0 +1,31 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME=	h3
+PORTVERSION=	3.6.4
+CATEGORIES=	graphics python
+MASTER_SITES=	CHEESESHOP
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	sunpoet@FreeBSD.org
+COMMENT=	Python binding of H3 library
+
+LICENSE=	APACHE20
+LICENSE_FILE=	${WRKSRC}/LICENSE
+
+BUILD_DEPENDS=	cmake:devel/cmake \
+		${PYTHON_PKGNAMEPREFIX}scikit-build>=0:devel/py-scikit-build@${PY_FLAVOR}
+LIB_DEPENDS=	libh3.so:graphics/h3
+
+USES=		localbase:ldflags python
+USE_PYTHON=	autoplist concurrent cython distutils
+
+CFLAGS+=	-I${LOCALBASE}/include/h3
+
+OPTIONS_DEFINE=	NUMPY
+OPTIONS_DEFAULT=NUMPY
+NUMPY_DESC=	NumPy support
+
+NUMPY_RUN_DEPENDS=	${PYNUMPY}
+
+.include <bsd.port.mk>

Added: head/graphics/py-h3/distinfo
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/py-h3/distinfo	Sat Sep 12 12:07:11 2020	(r548312)
@@ -0,0 +1,3 @@
+TIMESTAMP = 1599729121
+SHA256 (h3-3.6.4.tar.gz) = 416e35d736ef6ec9c1f73b9d4a9d5c696cc2a7561811f8bcfa08c8c4912f2289
+SIZE (h3-3.6.4.tar.gz) = 17292758

Added: head/graphics/py-h3/files/patch-CMakeLists.txt
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/py-h3/files/patch-CMakeLists.txt	Sat Sep 12 12:07:11 2020	(r548312)
@@ -0,0 +1,19 @@
+--- CMakeLists.txt.orig	2020-07-20 21:47:43 UTC
++++ CMakeLists.txt
+@@ -6,16 +6,6 @@ set(CMAKE_POSITION_INDEPENDENT_CODE ON)
+ # Always make a release build
+ set(CMAKE_BUILD_TYPE Release)
+ 
+-# Avoid building tooling we won't need for release
+-set(BUILD_BENCHMARKS OFF CACHE BOOL "" FORCE)
+-set(BUILD_FILTERS OFF CACHE BOOL "" FORCE)
+-set(BUILD_GENERATORS OFF CACHE BOOL "" FORCE)
+-set(BUILD_TESTING OFF CACHE BOOL "" FORCE)
+-
+-# Build the core library as static
+-set(BUILD_SHARED_LIBS OFF)
+-add_subdirectory(src/h3lib)
+-
+ # Build the rest (other than the core library dependency) as shared
+ set(BUILD_SHARED_LIBS ON)
+ add_subdirectory(src/h3)

Added: head/graphics/py-h3/pkg-descr
==============================================================================
--- /dev/null	00:00:00 1970	(empty, because file is newly added)
+++ head/graphics/py-h3/pkg-descr	Sat Sep 12 12:07:11 2020	(r548312)
@@ -0,0 +1,7 @@
+H3 is a geospatial indexing system using a hexagonal grid that can be
+(approximately) subdivided into finer and finer hexagonal grids, combining the
+benefits of a hexagonal grid with S2's hierarchical subdivisions.
+
+This port is the Python binding for H3 core library.
+
+WWW: https://github.com/uber/h3-py



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202009121207.08CC7B8E099162>