mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-01-06 02:17:34 -08:00
Original upstream was forked due to it being dead, supposedly. Now it was active again, this new version switches to the original upstream. Since this new version is a completely rewrite in a different language a slot has been used so users can play around with it while being able to keep using the legacy version, if needed. Signed-off-by: David Roman <davidroman96@gmail.com> Closes: https://bugs.gentoo.org/942100 Signed-off-by: Sam James <sam@gentoo.org>
41 lines
806 B
Bash
41 lines
806 B
Bash
# Copyright 2024 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
# Autogenerated by pycargoebuild 0.13.3
|
|
|
|
EAPI=8
|
|
|
|
inherit cargo
|
|
|
|
DESCRIPTION="Analyzes data for embedded file types"
|
|
HOMEPAGE="https://github.com/ReFirmLabs/binwalk"
|
|
|
|
if [[ ${PV} == 9999 ]] ; then
|
|
inherit git-r3
|
|
EGIT_REPO_URI="https://github.com/ReFirmLabs/binwalk.git"
|
|
else
|
|
SRC_URI="
|
|
https://github.com/ReFirmLabs/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
|
${CARGO_CRATE_URIS}
|
|
"
|
|
KEYWORDS="~amd64"
|
|
fi
|
|
|
|
LICENSE="MIT"
|
|
# Dependent crate licenses
|
|
LICENSE+=" Boost-1.0 ISC MIT MPL-2.0 Unicode-DFS-2016"
|
|
SLOT="3"
|
|
|
|
src_unpack() {
|
|
if [[ "${PV}" == *9999* ]]; then
|
|
git-r3_src_unpack
|
|
cargo_live_src_unpack
|
|
else
|
|
cargo_src_unpack
|
|
fi
|
|
}
|
|
|
|
src_install() {
|
|
newbin "$(cargo_target_dir)/binwalk" binwalk3
|
|
}
|