diff options
author | 2021-10-28 09:14:17 -0700 | |
---|---|---|
committer | 2021-10-28 09:16:23 -0700 | |
commit | 06789739f53acc5ca9e1d75d2a70a004123cf676 (patch) | |
tree | 2d196e690dda0fd95ebbca04cfbdf41e82382d40 /app-misc/binwalk/binwalk-2.3.3.ebuild | |
parent | sys-fs/nilfs-utils: drop 2.1.5-r2 (diff) | |
download | gentoo-06789739f53acc5ca9e1d75d2a70a004123cf676.tar.gz gentoo-06789739f53acc5ca9e1d75d2a70a004123cf676.tar.bz2 gentoo-06789739f53acc5ca9e1d75d2a70a004123cf676.zip |
app-misc/binwalk: add 2.3.3, enable py3.10
also partially revert test result change
https://github.com/ReFirmLabs/binwalk/issues/566
Closes: https://bugs.gentoo.org/820359
Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'app-misc/binwalk/binwalk-2.3.3.ebuild')
-rw-r--r-- | app-misc/binwalk/binwalk-2.3.3.ebuild | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/app-misc/binwalk/binwalk-2.3.3.ebuild b/app-misc/binwalk/binwalk-2.3.3.ebuild new file mode 100644 index 000000000000..557b9217f689 --- /dev/null +++ b/app-misc/binwalk/binwalk-2.3.3.ebuild @@ -0,0 +1,43 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=bdepend +PYTHON_COMPAT=( python3_{7..10} pypy3 ) + +inherit distutils-r1 + +if [[ ${PV} == "9999" ]] ; then + EGIT_REPO_URI="https://github.com/ReFirmLabs/binwalk.git" + inherit git-r3 +else + SRC_URI="https://github.com/ReFirmLabs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86 ~x64-macos" +fi + +DESCRIPTION="A tool for identifying files embedded inside firmware images" +HOMEPAGE="https://github.com/ReFirmLabs/binwalk" + +LICENSE="MIT" +SLOT="0" + +PATCHES=( + "${FILESDIR}"/${PN}-2.2.0-disable-test-coverage.patch + "${FILESDIR}"/2.3.3-tests.patch + +) + +distutils_enable_tests --install nose + +python_install_all() { + local DOCS=( API.md INSTALL.md README.md ) + distutils-r1_python_install_all +} + +pkg_postinst() { + if [[ -z ${REPLACING_VERSIONS} ]]; then + elog "binwalk has many optional dependencies to automatically" + elog "extract/decompress data, see INSTALL.md for more details." + fi +} |