summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--science/Makefile1
-rw-r--r--science/py-eccodes-python/Makefile24
-rw-r--r--science/py-eccodes-python/distinfo3
-rw-r--r--science/py-eccodes-python/pkg-descr15
4 files changed, 43 insertions, 0 deletions
diff --git a/science/Makefile b/science/Makefile
index 31ae047511ea..a93989fd54aa 100644
--- a/science/Makefile
+++ b/science/Makefile
@@ -231,6 +231,7 @@
SUBDIR += py-chempy
SUBDIR += py-coards
SUBDIR += py-dlib
+ SUBDIR += py-eccodes-python
SUBDIR += py-geometer
SUBDIR += py-gpaw
SUBDIR += py-gsd
diff --git a/science/py-eccodes-python/Makefile b/science/py-eccodes-python/Makefile
new file mode 100644
index 000000000000..d6aabcf7ca62
--- /dev/null
+++ b/science/py-eccodes-python/Makefile
@@ -0,0 +1,24 @@
+# Created by: Po-Chuan Hsieh <sunpoet@FreeBSD.org>
+# $FreeBSD$
+
+PORTNAME= eccodes-python
+PORTVERSION= 0.9.0
+CATEGORIES= science python
+MASTER_SITES= CHEESESHOP
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= sunpoet@FreeBSD.org
+COMMENT= Python interface to the ecCodes BUFR and GRIB de/encoder
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+LIB_DEPENDS= libeccodes.so:science/eccodes
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}attrs>=0:devel/py-attrs@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}cffi>=0:devel/py-cffi@${PY_FLAVOR} \
+ ${PYTHON_PKGNAMEPREFIX}numpy>=0:math/py-numpy@${PY_FLAVOR}
+
+USES= python:3.5+
+USE_PYTHON= autoplist distutils
+
+.include <bsd.port.mk>
diff --git a/science/py-eccodes-python/distinfo b/science/py-eccodes-python/distinfo
new file mode 100644
index 000000000000..f9e364978e24
--- /dev/null
+++ b/science/py-eccodes-python/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1558773288
+SHA256 (eccodes-python-0.9.0.tar.gz) = ff8c46d82ce1340ee673871b5f45118ac5c95083631e0927082b59d1e701cf6b
+SIZE (eccodes-python-0.9.0.tar.gz) = 2286896
diff --git a/science/py-eccodes-python/pkg-descr b/science/py-eccodes-python/pkg-descr
new file mode 100644
index 000000000000..533369539ff1
--- /dev/null
+++ b/science/py-eccodes-python/pkg-descr
@@ -0,0 +1,15 @@
+Python 3 interface to encode and decode GRIB and BUFR files via the ECMWF
+ecCodes library.
+
+Features:
+- reads and writes GRIB 1 and 2 files,
+- reads and writes BUFR 3 and 4 files,
+- supports all modern versions of Python 3.7, 3.6, 3.5 and PyPy3,
+- works on most Linux distributions and MacOS, the ecCodes C-library is the only
+ system dependency,
+- PyPI package with no install time build (binds with CFFI ABI level, in-line
+ mode),
+- supports writing the index of a GRIB file to disk, to save a full-file scan on
+ open.
+
+WWW: https://github.com/ecmwf/eccodes-python