git: e00872bbf903 - main - devel/py-pytest-benchmark: Add ELASTICSEARCH option

From: Po-Chuan Hsieh <sunpoet_at_FreeBSD.org>
Date: Tue, 21 Mar 2023 19:28:44 UTC
The branch main has been updated by sunpoet:

URL: https://cgit.FreeBSD.org/ports/commit/?id=e00872bbf9038fd4dcdf07b9c1c8d190fc3508d9

commit e00872bbf9038fd4dcdf07b9c1c8d190fc3508d9
Author:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
AuthorDate: 2023-03-21 18:45:16 +0000
Commit:     Po-Chuan Hsieh <sunpoet@FreeBSD.org>
CommitDate: 2023-03-21 19:20:59 +0000

    devel/py-pytest-benchmark: Add ELASTICSEARCH option
---
 devel/py-pytest-benchmark/Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/devel/py-pytest-benchmark/Makefile b/devel/py-pytest-benchmark/Makefile
index 9a4417da8911..89e78f6c2ead 100644
--- a/devel/py-pytest-benchmark/Makefile
+++ b/devel/py-pytest-benchmark/Makefile
@@ -22,4 +22,9 @@ USE_PYTHON=	autoplist concurrent distutils pytest
 NO_ARCH=	yes
 TEST_ENV=	PYTHONPATH=${STAGEDIR}${PYTHON_SITELIBDIR}
 
+OPTIONS_DEFINE=	ELASTICSEARCH
+ELASTICSEARCH_DESC=	Elasticsearch support
+
+ELASTICSEARCH_RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}elasticsearch>=0:textproc/py-elasticsearch@${PY_FLAVOR}
+
 .include <bsd.port.mk>