blob: 290b367abae9d1c314cec15c5dd01596626f0bb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
#
# ~~~ www-apps/searxng
#
# ~~~ a self-hosted meta search engine
#
#
# ~~~ metadata
# portage info
EAPI=8
SLOT=0
KEYWORDS="amd64"
# info
HOMEPAGE="https://docs.searxng.org/"
DESCRIPTION="A self-hosted meta search engine"
COMMIT="a7ac696b4a146af905397b8b9a07b18f4cd42bb5"
LICENSE="AGPL-3"
# package data
SRC_URI="https://github.com/searxng/searxng/archive/${COMMIT}.zip -> ${P}.zip"
S="${WORKDIR}/searxng-${COMMIT}"
#
# ~~~ dependencies
# python setup
DISTUTILS_USE_PEP517="setuptools"
PYTHON_COMPAT=( python3_{10..14} )
inherit distutils-r1
# use systemd
inherit systemd
# build-time dependencies
BDEPEND=">=dev-python/msgspec-0.21.1"
# run-time dependencies
RDEPEND="
acct-user/searxng
acct-group/searxng
>=dev-python/babel-2.18.0
>=dev-python/certifi-2026.2.25
>=dev-python/flask-3.1.3
>=dev-python/flask-babel-4.0.0
>=dev-python/httpx-0.28.1
>=dev-python/httpx-socks-0.10.0
>=dev-python/isodate-0.7.2
>=dev-python/lxml-6.0.4
>=dev-python/markdown-it-py-4.0.0
>=dev-python/msgspec-0.21.1
>=dev-python/pygments-2.20.0
>=dev-python/python-dateutil-2.9.0_p0
>=dev-python/sniffio-1.3.1
>=dev-python/typer-0.24.1
>=dev-python/valkey-6.1.1
>=dev-python/whitenoise-6.12.0
www-servers/uwsgi[python]"
#
# ~~~ steps
# install
src_install() {
distutils-r1_src_install
keepdir /etc/searxng
fowners searxng:searxng /etc/searxng
fperms 0750 /etc/searxng
systemd_dounit "${FILESDIR}/searxng.service"
}
|