From owner-svn-ports-all@freebsd.org Sat Sep 12 12:07:19 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 1F1B43D5D87; Sat, 12 Sep 2020 12:07:19 +0000 (UTC) (envelope-from sunpoet@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 "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4BpWZq2Rz9z3Yrt; Sat, 12 Sep 2020 12:07:13 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 8B6C314D2A; Sat, 12 Sep 2020 12:07:12 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 08CC7CFG099167; Sat, 12 Sep 2020 12:07:12 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 08CC7B8E099162; Sat, 12 Sep 2020 12:07:11 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <202009121207.08CC7B8E099162@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Sat, 12 Sep 2020 12:07:11 +0000 (UTC) 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 X-SVN-Group: ports-head X-SVN-Commit-Author: sunpoet X-SVN-Commit-Paths: in head/graphics: . py-h3 py-h3/files X-SVN-Commit-Revision: 548312 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 12 Sep 2020 12:07:19 -0000 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 +# $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 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