Added
Link Here
|
1 |
PORTNAME= searxng |
2 |
DISTVERSION= 20240711 |
3 |
CATEGORIES= www python |
4 |
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} |
5 |
PKGNAMESUFFIX= -devel |
6 |
|
7 |
MAINTAINER= DtxdF@disroot.org |
8 |
COMMENT= Free internet metasearch engine |
9 |
WWW= https://docs.searxng.org/ |
10 |
|
11 |
LICENSE= AGPLv3 |
12 |
LICENSE_FILE= ${WRKSRC}/LICENSE |
13 |
|
14 |
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} |
15 |
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}Babel>=0:devel/py-babel@${PY_FLAVOR} \ |
16 |
${PYTHON_PKGNAMEPREFIX}brotli>=0:archivers/py-brotli@${PY_FLAVOR} \ |
17 |
${PYTHON_PKGNAMEPREFIX}certifi>=0:security/py-certifi@${PY_FLAVOR} \ |
18 |
${PYTHON_PKGNAMEPREFIX}fasttext-predict>=0:textproc/py-fasttext-predict@${PY_FLAVOR} \ |
19 |
${PYTHON_PKGNAMEPREFIX}flask-babel>=0:devel/py-flask-babel@${PY_FLAVOR} \ |
20 |
${PYTHON_PKGNAMEPREFIX}flask>=0:www/py-flask@${PY_FLAVOR} \ |
21 |
${PYTHON_PKGNAMEPREFIX}httpx-socks>=0:www/py-httpx-socks@${PY_FLAVOR} \ |
22 |
${PYTHON_PKGNAMEPREFIX}httpx>=0:www/py-httpx@${PY_FLAVOR} \ |
23 |
${PYTHON_PKGNAMEPREFIX}Jinja2>=0:devel/py-Jinja2@${PY_FLAVOR} \ |
24 |
${PYTHON_PKGNAMEPREFIX}langdetect>=0:textproc/py-langdetect@${PY_FLAVOR} \ |
25 |
${PYTHON_PKGNAMEPREFIX}lxml>=0:devel/py-lxml@${PY_FLAVOR} \ |
26 |
${PYTHON_PKGNAMEPREFIX}markdown-it-py>=0:textproc/py-markdown-it-py@${PY_FLAVOR} \ |
27 |
${PYTHON_PKGNAMEPREFIX}pygments>=0:textproc/py-pygments@${PY_FLAVOR} \ |
28 |
${PYTHON_PKGNAMEPREFIX}python-dateutil>=0:devel/py-python-dateutil@${PY_FLAVOR} \ |
29 |
${PYTHON_PKGNAMEPREFIX}pytomlpp>=0:textproc/py-pytomlpp@${PY_FLAVOR} \ |
30 |
${PYTHON_PKGNAMEPREFIX}redis>=0:databases/py-redis@${PY_FLAVOR} \ |
31 |
${PYTHON_PKGNAMEPREFIX}requests>=0:www/py-requests@${PY_FLAVOR} \ |
32 |
${PYTHON_PKGNAMEPREFIX}setproctitle>=0:devel/py-setproctitle@${PY_FLAVOR} \ |
33 |
${PYTHON_PKGNAMEPREFIX}uvloop>=0:devel/py-uvloop@${PY_FLAVOR} \ |
34 |
${PYTHON_PKGNAMEPREFIX}pyyaml>=0:devel/py-pyyaml@${PY_FLAVOR} |
35 |
|
36 |
USES= python |
37 |
USE_GITHUB= yes |
38 |
GH_TAGNAME= ef103ba80a8494d01c6dc8ce8e408957d4424b0b |
39 |
USE_PYTHON= autoplist distutils |
40 |
USE_RC_SUBR= searxng |
41 |
|
42 |
CONFLICTS= searx |
43 |
|
44 |
NO_ARCH= yes |
45 |
|
46 |
SUB_FILES= searxng |
47 |
SUB_LIST= PYTHON_CMD=${PYTHON_CMD} |
48 |
|
49 |
post-patch: # expect dependencies to be backwards-compatible, otherwise it is difficult to have a port |
50 |
@${REINPLACE_CMD} -e 's|==|>=|' ${WRKSRC}/requirements.txt |
51 |
|
52 |
post-install: |
53 |
# move settings to etc/ /usr/local/lib/python3.x/site-packages/searx/settings.yml |
54 |
@${MV} ${STAGEDIR}${PYTHON_SITELIBDIR}/searx/settings.yml ${STAGEDIR}${PREFIX}/etc/${PORTNAME}.yml.sample |
55 |
@${LN} -s ${PREFIX}/etc/${PORTNAME}.yml ${STAGEDIR}${PYTHON_SITELIBDIR}/searx/settings.yml |
56 |
|
57 |
.include <bsd.port.mk> |