1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 PYTHON_COMPAT=( python{2_7,3_5,3_6} )
9 if [[ ${PV} == "9999" ]] ; then
10 EGIT_REPO_URI="https://github.com/devttys0/binwalk.git"
13 SRC_URI="https://github.com/devttys0/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
14 KEYWORDS="amd64 x86 ~x64-macos"
17 DESCRIPTION="A tool for identifying files embedded inside firmware images"
18 HOMEPAGE="https://github.com/devttys0/binwalk"
25 $(python_gen_cond_dep 'dev-python/backports-lzma[${PYTHON_USEDEP}]' python2_7)
26 graph? ( dev-python/pyqtgraph[opengl,${PYTHON_USEDEP}] )
29 PATCHES=( "${FILESDIR}"/0001-Added-check-for-backports.lzma-when-importing-lzma-m.patch )
31 python_install_all() {
32 local DOCS=( API.md INSTALL.md README.md )
33 distutils-r1_python_install_all
37 if [[ -z ${REPLACING_VERSIONS} ]]; then
38 elog "binwalk has many optional dependencies to automatically"
39 elog "extract/decompress data, see INSTALL.md for more details."