Wednesday, December 08, 2021

Re: [new] net/py-maxminddb

On 2021/12/08 10:22, Johan Huldtgren wrote:
> hello,
>
> this is a new port for py-maxminddb, a Python module for reading MaxMind
> DB files. The module includes both a pure Python reader and a C
> extension. This is a dependency for another port I'm working on. Built,
> packaged, and tested on amd64.
>
> thanks,
>
> .jh

diff on top; new tgz attached.

any OKs to import?

diff --git net/py-maxminddb/Makefile net/py-maxminddb/Makefile
index 9d95357..3bf86cd 100755
--- net/py-maxminddb/Makefile
+++ net/py-maxminddb/Makefile
@@ -1,6 +1,6 @@
# $OpenBSD: $

-COMMENT = python module for reading MaxMind DB files
+COMMENT = Python module for reading MaxMind DB files

MODPY_EGG_VERSION = 2.2.0
DISTNAME = maxminddb-${MODPY_EGG_VERSION}
@@ -13,19 +13,18 @@ MAINTAINER = Johan Huldtgren <jhuldtgren@gmail.com>
# Apache 2.0
PERMIT_PACKAGE = Yes

+WANTLIB += maxminddb pthread
+
MODULES = lang/python
MODPY_PI = Yes
-MODPY_SETUPTOOLS = Yes
-
-LIB_DEPEND = maxminddb
+MODPY_SETUPTOOLS = Yes
+MODPY_PYTEST = Yes

-CFLAGS+= -I "${LOCALBASE}/include"
+CFLAGS += -I"${LOCALBASE}/include"

FLAVORS = python3
FLAVOR = python3

-BUILD_DEPENDS = net/libmaxminddb,-db
-
-TEST_DEPENDS = devel/py-nose${MODPY_FLAVOR}
+LIB_DEPENDS = net/libmaxminddb,-db

.include <bsd.port.mk>
diff --git net/py-maxminddb/pkg/PLIST net/py-maxminddb/pkg/PLIST
index c06bf6d..5b7fd67 100644
--- net/py-maxminddb/pkg/PLIST
+++ net/py-maxminddb/pkg/PLIST
@@ -17,6 +17,7 @@ lib/python${MODPY_VERSION}/site-packages/maxminddb/${MODPY_PYCACHE}types.${MODPY
lib/python${MODPY_VERSION}/site-packages/maxminddb/const.py
lib/python${MODPY_VERSION}/site-packages/maxminddb/decoder.py
lib/python${MODPY_VERSION}/site-packages/maxminddb/errors.py
+@so lib/python${MODPY_VERSION}/site-packages/maxminddb/extension.${MODPY_PYC_MAGIC_TAG}so
lib/python${MODPY_VERSION}/site-packages/maxminddb/extension.pyi
lib/python${MODPY_VERSION}/site-packages/maxminddb/file.py
lib/python${MODPY_VERSION}/site-packages/maxminddb/py.typed

No comments:

Post a Comment