57 lines
1.0 KiB
Bash
57 lines
1.0 KiB
Bash
# Copyright 1999-2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=8
|
|
|
|
DESCRIPTION="Privacy-respecting, hackable metasearch engine"
|
|
HOMEPAGE="https://docs.searxng.org/index.html"
|
|
if [[ ${PV} == 9999 ]]; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/searxng/searxng.git"
|
|
else
|
|
SRC_URI="https://github.com/searxng/searxng/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
fi
|
|
|
|
LICENSE="AGPL-3"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
RDEPEND="
|
|
acct-group/searx
|
|
acct-user/searx
|
|
dev-python/certifi
|
|
dev-python/flask-babel
|
|
dev-python/jinja2
|
|
dev-python/lxml
|
|
dev-python/pygments
|
|
dev-python/python-dateutil
|
|
dev-python/pyyaml
|
|
dev-python/brotlicffi
|
|
dev-python/uvloop
|
|
dev-python/httpx-socks
|
|
dev-python/setproctitle
|
|
dev-python/redis
|
|
dev-python/markdown-it-py
|
|
dev-python/fasttext-predict
|
|
dev-python/pytomlpp
|
|
"
|
|
|
|
INST_DIR="/opt/searxng"
|
|
|
|
src_compile() {
|
|
:
|
|
}
|
|
|
|
src_config() {
|
|
:
|
|
}
|
|
|
|
src_install() {
|
|
insinto /etc/searxng
|
|
doins "searx/settings.yml"
|
|
|
|
insinto "${INST_DIR}"
|
|
doins -r .
|
|
fperms u+x "${INST_DIR}/searx/webapp.py"
|
|
}
|