From bfb8d8574354d20dd4f2fef3bdd36e2b4e1298e1 Mon Sep 17 00:00:00 2001 From: Guido Kroon Date: Wed, 1 Apr 2020 13:11:05 +0200 Subject: [PATCH] #607 --- .../eagleeye/eagleeye-20191229.ebuild | 59 +++++++++++-------- 1 file changed, 35 insertions(+), 24 deletions(-) diff --git a/app-forensics/eagleeye/eagleeye-20191229.ebuild b/app-forensics/eagleeye/eagleeye-20191229.ebuild index 4b93080ee..9b3acc830 100644 --- a/app-forensics/eagleeye/eagleeye-20191229.ebuild +++ b/app-forensics/eagleeye/eagleeye-20191229.ebuild @@ -5,7 +5,7 @@ EAPI=7 PYTHON_COMPAT=( python3_{6,7} ) -inherit python-r1 +inherit eutils python-single-r1 DESCRIPTION="Find people's social media profile using reverse image search" HOMEPAGE="https://github.com/ThoughtfulDev/EagleEye" @@ -16,35 +16,46 @@ if [[ ${PV} == *9999 ]]; then else HASH_COMMIT="3f0c0af85c93cf49992c608bb56022cc68b2a6b9" SRC_URI="https://github.com/ThoughtfulDev/EagleEye/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" -#WIP -# KEYWORDS="~amd64 ~x86" + # WIP: dep dev-python/requests-html depends on currently masked + # dev-python/pyee which may be removed soon. I asked for it to remain in + # the tree: https://bugs.gentoo.org/711808#c67 + #KEYWORDS="~amd64 ~x86" S="${WORKDIR}/EagleEye-${HASH_COMMIT}" fi -LICENSE="BSD-2" +LICENSE="WTFPL-2" IUSE="" SLOT="0" -RDEPEND="${PYTHON_DEPS} - www-apps/geckodriver - www-apps/chromedriver-bin - x11-libs/gtk+:3 +DEPEND="${PYTHON_DEPS}" +RDEPEND="${DEPEND} dev-libs/boost - virtual/libffi - dev-python/termcolor[${PYTHON_USEDEP}] - media-libs/opencv[python,${PYTHON_USEDEP}] - dev-python/selenium[${PYTHON_USEDEP}] - dev-python/face_recognition[${PYTHON_USEDEP}] - dev-python/weasyprint[${PYTHON_USEDEP}] - dev-python/requests-html[${PYTHON_USEDEP}] - dev-python/beautifulsoup:4[${PYTHON_USEDEP}] - dev-python/html5lib[${PYTHON_USEDEP}] - dev-python/spry[${PYTHON_USEDEP}] + dev-libs/libffi + $(python_gen_cond_dep ' + dev-python/beautifulsoup:4[${PYTHON_MULTI_USEDEP}] + dev-python/face_recognition[${PYTHON_MULTI_USEDEP}] + dev-python/html5lib[${PYTHON_MULTI_USEDEP}] + dev-python/requests-html[${PYTHON_MULTI_USEDEP}] + dev-python/selenium[${PYTHON_MULTI_USEDEP}] + dev-python/spry[${PYTHON_MULTI_USEDEP}] + dev-python/termcolor[${PYTHON_MULTI_USEDEP}] + dev-python/weasyprint[${PYTHON_MULTI_USEDEP}] + media-libs/opencv[python,${PYTHON_MULTI_USEDEP}] + ') + www-apps/chromedriver-bin + www-apps/geckodriver + x11-libs/gtk+:3 " -DEPEND="${RDEPEND}" -#src_install() { -# dodoc README.md CHANGELOG -# python_foreach_impl python_domodule Linux/lazagne -# python_foreach_impl python_newscript Linux/laZagne.py lazagne -#} +src_install() { + insinto "/usr/share/${PN}" + doins -r grabber known report utils config.json eagle-eye.py face_recog.py + + python_optimize "${ED}/usr/share/${PN}" + + make_wrapper eagle-eye \ + "${EPYTHON} /usr/share/${PN}/eagle-eye.py" \ + "/usr/share/${PN}" + + dodoc README.md +}