www-apps/whoogle-search: add 0.9.0

Signed-off-by: Cat Kasin <baileykasin@gmail.com>
This commit is contained in:
Bailey Kasin
2024-09-30 19:38:23 -07:00
parent 1b73481b0c
commit 81d2911d30
2 changed files with 51 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST whoogle-search-0.8.4.gh.tar.gz 616189 BLAKE2B 23c547d330b3b098eea4d63029ba109f8ecc0f4fefe031c77fcdb52d657aeb93d8d6fa3ae8f54ff9a7218c7c31aa1eccba57b333c376b92cc6a841f60cb14240 SHA512 6a9f7e7502253c2c6b72e8753595f4d57dca6fad2fceb1fece6e40203f7b85eb0ef7debda4852ed347b103ae89c1a188ccb989e56bc7c0ad81dccdda69dc2b58
DIST whoogle-search-0.9.0.gh.tar.gz 617855 BLAKE2B f4051918971609f82062bd6796aea63c491ef6bb8263a94d1b3f93096ffd2db5a64d890a1990c9bfbdc191bb739c092d15bc313ec8dc26e2ba8a660bb7995e25 SHA512 eb6edc8a25dfc374439480370ae35c87e334c845f8e1128888a5be1c9033dbc83148c732126fdb493f928a1f40a925789c91d1fca83d5ff2b51c519e6e795dc7

View File

@@ -0,0 +1,50 @@
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DISTUTILS_USE_PEP517=no
PYTHON_COMPAT=( python3_{10..13} )
inherit distutils-r1 systemd
DESCRIPTION="A self-hosted, ad-free, privacy-respecting metasearch engine"
HOMEPAGE="https://github.com/benbusby/whoogle-search"
SRC_URI="https://github.com/benbusby/whoogle-search/archive/refs/tags/v${PV}.tar.gz -> ${P}.gh.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
RDEPEND="
dev-python/cssutils[${PYTHON_USEDEP}]
dev-python/beautifulsoup4[${PYTHON_USEDEP}]
dev-python/cryptography[${PYTHON_USEDEP}]
dev-python/flask[${PYTHON_USEDEP}]
dev-python/python-dotenv[${PYTHON_USEDEP}]
dev-python/defusedxml[${PYTHON_USEDEP}]
dev-python/waitress[${PYTHON_USEDEP}]
dev-python/validators[${PYTHON_USEDEP}]
app-arch/brotli[${PYTHON_USEDEP},python]
net-libs/stem
acct-user/whoogle
acct-group/whoogle
"
src_install() {
rm -r .github docs test .dockerignore .gitignore .replit \
docker-compose.yml Dockerfile heroku.yml MANIFEST.in README.md \
requirements.txt
mkdir -p "${ED}/opt/whoogle-search" || die
insinto /opt/whoogle-search
doins -r ./*
fperms -R 0755 /opt/whoogle-search
fowners -R whoogle:whoogle /opt/whoogle-search
insinto /etc/default/
doins "${FILESDIR}/whoogle"
insinto /usr/lib/sysusers.d/
doins "${FILESDIR}/whoogle.conf"
newinitd "${FILESDIR}"/whoogle.initd whoogle
systemd_dounit "${FILESDIR}/whoogle.service"
}