aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2023-10-23 02:56:18 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2023-10-23 02:56:45 +0000
commit1ca80262a408beccf296e65986a6a7b33983a90a (patch)
tree75148a6ef10d0a16bb430c6be5b6af507afaaf33
parent210e12463231af19cec8008dc2043a9db4338ea9 (diff)
misc/py-laspy: New port: Library and tools to read/write LAS files with lidar data
-rw-r--r--misc/Makefile1
-rw-r--r--misc/py-laspy/Makefile28
-rw-r--r--misc/py-laspy/distinfo3
-rw-r--r--misc/py-laspy/pkg-descr6
4 files changed, 38 insertions, 0 deletions
diff --git a/misc/Makefile b/misc/Makefile
index 2e48cbe7adab..677c218455ed 100644
--- a/misc/Makefile
+++ b/misc/Makefile
@@ -424,6 +424,7 @@
SUBDIR += py-icoextract
SUBDIR += py-ipyfastscape
SUBDIR += py-kartograph
+ SUBDIR += py-laspy
SUBDIR += py-lazrs
SUBDIR += py-lightgbm
SUBDIR += py-lightning-utilities
diff --git a/misc/py-laspy/Makefile b/misc/py-laspy/Makefile
new file mode 100644
index 000000000000..0bd044ca72d3
--- /dev/null
+++ b/misc/py-laspy/Makefile
@@ -0,0 +1,28 @@
+PORTNAME= laspy
+DISTVERSION= 2.5.1
+CATEGORIES= misc
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= yuri@FreeBSD.org
+COMMENT= Library and tools to read/write LAS files with lidar data
+WWW= https://laspy.readthedocs.io/en/latest/
+
+LICENSE= BSD2CLAUSE
+LICENSE_FILE= ${WRKSRC}/LICENSE.txt
+
+BUILD_DEPENDS= ${PY_SETUPTOOLS} \
+ ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS= ${PYNUMPY}
+# optional dependencies
+RUN_DEPENDS+= ${PYTHON_PKGNAMEPREFIX}lazrs>=0.5.0:misc/py-lazrs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}laszip>=0.2.1:archivers/py-laszip@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}pyproj>0:graphics/py-pyproj@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}requests>0:www/py-requests@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= pep517 concurrent autoplist pytest
+
+NOARCH= yes
+
+.include <bsd.port.mk>
diff --git a/misc/py-laspy/distinfo b/misc/py-laspy/distinfo
new file mode 100644
index 000000000000..59924359430c
--- /dev/null
+++ b/misc/py-laspy/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1698025374
+SHA256 (laspy-2.5.1.tar.gz) = baa3c9c6cc155636f161149111f9cfc243dbd14f6cca729c94b356b31c668f2e
+SIZE (laspy-2.5.1.tar.gz) = 1555098
diff --git a/misc/py-laspy/pkg-descr b/misc/py-laspy/pkg-descr
new file mode 100644
index 000000000000..b6cbcb3cd7f1
--- /dev/null
+++ b/misc/py-laspy/pkg-descr
@@ -0,0 +1,6 @@
+Laspy is a pythonic interface for reading/modifying/creating .LAS LIDAR
+files matching specification 1.0-1.4.
+
+LAS (and its compressed counterpart LAZ), is a popular format for lidar
+pointcloud and full waveform, laspy reads and writes these formats and
+provides a Python API via Numpy Arrays.