portapack-mayhem: fix build issue 1103

This commit is contained in:
Rick Farina (Zero_Chaos) 2022-04-22 14:28:33 -04:00
parent 6ceb2d4d40
commit 085da33a13
No known key found for this signature in database
GPG key ID: A29433C0AA431DDC
2 changed files with 25 additions and 10 deletions

View file

@ -2,6 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8,9,10} )
DESCRIPTION="Custom firmware for the HackRF SDR + PortaPack H1 addon"
HOMEPAGE="https://github.com/eried/portapack-mayhem"
@ -11,10 +12,13 @@ SLOT="0"
IUSE="sdcard-files"
if [ "${PV}" == "9999" ]; then
inherit cmake git-r3
inherit cmake git-r3 python-any-r1
EGIT_REPO_URI="https://github.com/eried/portapack-mayhem.git"
EGIT_BRANCH="next"
BDEPEND="sys-devel/gcc-arm-none-eabi"
BDEPEND="${PYTHON_DEPS}
sys-devel/gcc-arm-none-eabi
!=sys-devel/gcc-arm-none-eabi-11.2_p202202-r1
$(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]')"
else
KEYWORDS="~amd64 ~arm ~x86"
SRC_URI="https://github.com/eried/portapack-mayhem/releases/download/v${PV}/mayhem_v${PV}_FIRMWARE.zip
@ -22,9 +26,13 @@ else
BDEPEND="app-arch/zip"
fi
PDEPEND=">=net-wireless/hackrf-tools-2015.07.2-r1
RDEPEND=">=net-wireless/hackrf-tools-2015.07.2-r1
>=app-mobilephone/dfu-util-0.7"
python_check_deps() {
python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
}
src_unpack() {
if [ "${PV}" = 9999 ]; then
git-r3_src_unpack

View file

@ -2,6 +2,7 @@
# Distributed under the terms of the GNU General Public License v2
EAPI=8
PYTHON_COMPAT=( python3_{8,9,10} )
DESCRIPTION="Custom firmware for the HackRF SDR + PortaPack H1 addon"
HOMEPAGE="https://github.com/eried/portapack-mayhem"
@ -11,21 +12,27 @@ SLOT="0"
IUSE="sdcard-files"
if [ "${PV}" == "9999" ]; then
inherit cmake git-r3
inherit cmake git-r3 python-any-r1
EGIT_REPO_URI="https://github.com/eried/portapack-mayhem.git"
EGIT_BRANCH="next"
BDEPEND="sys-devel/gcc-arm-none-eabi"
BDEPEND="${PYTHON_DEPS}
sys-devel/gcc-arm-none-eabi
!=sys-devel/gcc-arm-none-eabi-11.2_p202202-r1
$(python_gen_any_dep 'dev-python/pyyaml[${PYTHON_USEDEP}]')"
else
KEYWORDS="~amd64 ~arm ~x86"
SRC_URI="https://github.com/eried/portapack-mayhem/releases/download/v${PV}/mayhem_v${PV}_FIRMWARE.zip
sdcard-files? ( https://github.com/eried/portapack-mayhem/releases/download/v${PV}/mayhem_v${PV}_COPY_TO_SDCARD.7z )"
BDEPEND="app-arch/p7zip"
inherit unpacker
sdcard-files? ( https://github.com/eried/portapack-mayhem/releases/download/v${PV}/mayhem_v${PV}_COPY_TO_SDCARD.zip )"
BDEPEND="app-arch/zip"
fi
PDEPEND=">=net-wireless/hackrf-tools-2015.07.2-r1
RDEPEND=">=net-wireless/hackrf-tools-2015.07.2-r1
>=app-mobilephone/dfu-util-0.7"
python_check_deps() {
python_has_version "dev-python/pyyaml[${PYTHON_USEDEP}]"
}
src_unpack() {
if [ "${PV}" = 9999 ]; then
git-r3_src_unpack
@ -37,7 +44,7 @@ src_unpack() {
if use sdcard-files; then
mkdir sdcard
pushd sdcard
unpacker mayhem_v${PV}_COPY_TO_SDCARD.7z
unpack mayhem_v${PV}_COPY_TO_SDCARD.zip
fi
fi
}