logo

overlay

My (experimental) gentoo overlay
commit: 1fc4c308fc4effeabcd6a772765cdda2179c4a0c
parent: 693b84645c9bbc67baa1b1680c1416fea347710e
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Mon, 20 May 2019 18:00:56 +0200

www-apps/searx: Fix current version

Diffstat:

Awww-apps/searx/Manifest1+
Awww-apps/searx/metadata.xml8++++++++
Mwww-apps/searx/searx-0.15.0.ebuild44+++++++++++++++++++++++++++++++++-----------
3 files changed, 42 insertions(+), 11 deletions(-)

diff --git a/www-apps/searx/Manifest b/www-apps/searx/Manifest @@ -0,0 +1 @@ +DIST searx-0.15.0.tar.gz 1818927 BLAKE2B bb15ec89e410a96a984ba88c98131493fbfbe9b6ad9e9048376be806f931e451d7be01adc5b662695725aabe66c11b8ff8ff94f7425a4af3068edbe5f450c8e0 SHA512 9d605ca08adc91fab27b4fd5311c9585620a9152e9f3e8b4f41f6ec7231af3efe3effdd3f8c0e6d08898c2116ef429455ec8525dad35e17329bd1e509828ba4b diff --git a/www-apps/searx/metadata.xml b/www-apps/searx/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>contact@hacktivis.me</email> + <name>Haelwenn (lanodan) Monnier</name> + </maintainer> +</pkgmetadata> diff --git a/www-apps/searx/searx-0.15.0.ebuild b/www-apps/searx/searx-0.15.0.ebuild @@ -3,7 +3,9 @@ EAPI=7 -inherit distutils-r1 +PYTHON_COMPAT=( python2_6 python3_{4,5,6} ) + +inherit savedconfig distutils-r1 DESCRIPTION="Decentralized and privacy-respecting, hackable metasearch engine" HOMEPAGE="https://github.com/asciimoo/searx https://searx.me" @@ -13,15 +15,35 @@ SLOT="0" KEYWORDS="~amd64" DEPEND=" - >=dev-python/certifi-2017.11.5 - >=dev-python/flask-1.0.2 - >=dev-python/flask-babel-0.11.2 - >=dev-python/lxml-4.2.3 - >=dev-python/idna-2.7 - >=dev-python/pygments-2.1.3 - >=dev-python/pyopenssl-18.0.0 - >=dev-python/python-dateutil-2.7.3 - >=dev-python/pyyaml-3.13 - >=dev-python/requests-2.19.1[socks5] + >=dev-python/certifi-2017.11.5[${PYTHON_USEDEP}] + >=dev-python/flask-1.0.2[${PYTHON_USEDEP}] + >=dev-python/flask-babel-0.11.2[${PYTHON_USEDEP}] + >=dev-python/lxml-4.2.3[${PYTHON_USEDEP}] + >=dev-python/idna-2.7[${PYTHON_USEDEP}] + >=dev-python/pygments-2.1.3[${PYTHON_USEDEP}] + >=dev-python/pyopenssl-18.0.0[${PYTHON_USEDEP}] + >=dev-python/python-dateutil-2.7.3[${PYTHON_USEDEP}] + >=dev-python/pyyaml-3.13[${PYTHON_USEDEP}] + >=dev-python/requests-2.19.1[socks5,${PYTHON_USEDEP}] + ${PYTHON_DEPS} " RDEPEND="${DEPEND}" + +src_prepare() { + local mysecretkey="$(python -c 'import random; print("%x" % random.getrandbits(16*8))')" + + sed -i "s/ultrasecretkey/${mysecretkey}/g" searx/settings.yml || die "setting the secret key" + + restore_config searx/settings.yml + + sed -i "s;'tests/.*',$;;" setup.py || die "removing installation of tests" + rm -r tests || die "removal of tests" + + distutils-r1_src_prepare +} + +src_install() { + distutils-r1_src_install + + save_config searx/settings.yml +}