git: cdee0fdd4da9 - main - databases/py-mariadb: New port: Python MariaDB extension
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 30 Sep 2024 14:08:41 UTC
The branch main has been updated by fuz:
URL: https://cgit.FreeBSD.org/ports/commit/?id=cdee0fdd4da947d470da0f2d686e40fdf602507e
commit cdee0fdd4da947d470da0f2d686e40fdf602507e
Author: Jesús Daniel Colmenares Oviedo <DtxdF@disroot.org>
AuthorDate: 2023-12-09 23:11:10 +0000
Commit: Robert Clausecker <fuz@FreeBSD.org>
CommitDate: 2024-09-30 14:02:00 +0000
databases/py-mariadb: New port: Python MariaDB extension
MariaDB Connector/Python enables python programs to access MariaDB
and MySQL databases, using an API which is compliant with the Python
DB API 2.0 (PEP-249). It is written in C and Python and uses MariaDB
Connector/C client library for client server communication.
WWW: https://www.github.com/mariadb-corporation/mariadb-connector-python
PR: 275157
---
databases/Makefile | 1 +
databases/py-mariadb/Makefile | 24 ++++++++++++++++++++++++
databases/py-mariadb/distinfo | 3 +++
databases/py-mariadb/pkg-descr | 4 ++++
4 files changed, 32 insertions(+)
diff --git a/databases/Makefile b/databases/Makefile
index 471da2fdccf3..c7e0cf48ecf9 100644
--- a/databases/Makefile
+++ b/databases/Makefile
@@ -781,6 +781,7 @@
SUBDIR += py-leveldb
SUBDIR += py-litecli
SUBDIR += py-lmdb
+ SUBDIR += py-mariadb
SUBDIR += py-marshmallow-sqlalchemy
SUBDIR += py-minidb
SUBDIR += py-mongoengine
diff --git a/databases/py-mariadb/Makefile b/databases/py-mariadb/Makefile
new file mode 100644
index 000000000000..e6d27090edfa
--- /dev/null
+++ b/databases/py-mariadb/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= mariadb
+DISTVERSION= 1.1.8
+CATEGORIES= databases python
+MASTER_SITES= PYPI
+PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER= DtxdF@disroot.org
+COMMENT= Python MariaDB extension
+WWW= https://www.github.com/mariadb-corporation/mariadb-connector-python
+
+LICENSE= LGPL21
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR}
+LIB_DEPENDS= libmariadb.so:databases/mariadb-connector-c
+RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}packaging>=0:devel/py-packaging@${PY_FLAVOR}
+
+USES= python
+USE_PYTHON= autoplist distutils
+
+post-install:
+ ${STRIP_CMD} ${STAGEDIR}${PYTHON_SITELIBDIR}/${PORTNAME}/_mariadb.cpython-${PYTHON_VER:S/.//1}.so
+
+.include <bsd.port.mk>
diff --git a/databases/py-mariadb/distinfo b/databases/py-mariadb/distinfo
new file mode 100644
index 000000000000..54a6e623c5cf
--- /dev/null
+++ b/databases/py-mariadb/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1700175623
+SHA256 (mariadb-1.1.8.tar.gz) = f73f1269dad5f14aee20b48ca56db7d90a51f2d5971a400c7d66e16b3976b4c9
+SIZE (mariadb-1.1.8.tar.gz) = 85307
diff --git a/databases/py-mariadb/pkg-descr b/databases/py-mariadb/pkg-descr
new file mode 100644
index 000000000000..b4fb69bc6747
--- /dev/null
+++ b/databases/py-mariadb/pkg-descr
@@ -0,0 +1,4 @@
+MariaDB Connector/Python enables python programs to access MariaDB
+and MySQL databases, using an API which is compliant with the Python
+DB API 2.0 (PEP-249). It is written in C and Python and uses MariaDB
+Connector/C client library for client server communication.