git: 24512742b875 - main - www/py-ddgs: New port: Search for words/documents/images/videos/news/maps/text translation

From: Yuri Victorovich <yuri_at_FreeBSD.org>
Date: Mon, 29 Sep 2025 07:20:50 UTC
The branch main has been updated by yuri:

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

commit 24512742b87587b246cbb45eecd763272029e2ab
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2025-09-29 01:51:12 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2025-09-29 07:20:46 +0000

    www/py-ddgs: New port: Search for words/documents/images/videos/news/maps/text translation
---
 www/Makefile          |  1 +
 www/py-ddgs/Makefile  | 26 ++++++++++++++++++++++++++
 www/py-ddgs/distinfo  |  3 +++
 www/py-ddgs/pkg-descr | 15 +++++++++++++++
 4 files changed, 45 insertions(+)

diff --git a/www/Makefile b/www/Makefile
index a77f2bde0a8c..890788812495 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -1527,6 +1527,7 @@
     SUBDIR += py-cssutils
     SUBDIR += py-daphne
     SUBDIR += py-dash
+    SUBDIR += py-ddgs
     SUBDIR += py-dj-database-url
     SUBDIR += py-dj51-channels
     SUBDIR += py-dj51-channels-redis
diff --git a/www/py-ddgs/Makefile b/www/py-ddgs/Makefile
new file mode 100644
index 000000000000..0d06346b8a19
--- /dev/null
+++ b/www/py-ddgs/Makefile
@@ -0,0 +1,26 @@
+PORTNAME=	ddgs
+DISTVERSION=	9.6.0
+CATEGORIES=	www
+MASTER_SITES=	PYPI
+PKGNAMEPREFIX=	${PYTHON_PKGNAMEPREFIX}
+
+MAINTAINER=	yuri@FreeBSD.org
+COMMENT=	Search for words/documents/images/videos/news/maps/text translation
+WWW=		https://github.com/deedy5/duckduckgo_search
+
+LICENSE=	MIT
+LICENSE_FILE=	${WRKSRC}/LICENSE.md
+
+USES=		python gmake
+USE_PYTHON=	pep517 autoplist
+
+BUILD_DEPENDS=	${PY_SETUPTOOLS} \
+		${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR}
+RUN_DEPENDS=	${PYTHON_PKGNAMEPREFIX}click>0:devel/py-click@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}primp>=0.15.0:www/py-primp@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}lxml>=6.0.0:devel/py-lxml@${PY_FLAVOR} \
+		${PYTHON_PKGNAMEPREFIX}httpx>=0.28.1:www/py-httpx@${PY_FLAVOR}
+
+NO_ARCH=	yes
+
+.include <bsd.port.mk>
diff --git a/www/py-ddgs/distinfo b/www/py-ddgs/distinfo
new file mode 100644
index 000000000000..c25b7f12a41c
--- /dev/null
+++ b/www/py-ddgs/distinfo
@@ -0,0 +1,3 @@
+TIMESTAMP = 1759041185
+SHA256 (ddgs-9.6.0.tar.gz) = 8caf555d4282c1cf5c15969994ad55f4239bd15e97cf004a5da8f1cad37529bf
+SIZE (ddgs-9.6.0.tar.gz) = 35865
diff --git a/www/py-ddgs/pkg-descr b/www/py-ddgs/pkg-descr
new file mode 100644
index 000000000000..fa4b3c18e1a3
--- /dev/null
+++ b/www/py-ddgs/pkg-descr
@@ -0,0 +1,15 @@
+DDGS is a powerful Python library designed for comprehensive web searches
+using the DuckDuckGo search engine. It provides a convenient and efficient
+way to programmatically search for a wide range of content, including:
+
+- Words and phrases
+- Documents
+- Images
+- Videos
+- News articles
+- Maps
+- Text translation
+
+With DDGS, developers can easily integrate DuckDuckGo's search capabilities
+into their Python applications, enabling features such as automated data
+collection, content discovery, and more, all while respecting user privacy.