mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-05-05 11:00:48 +02:00
portapack-mayhem: fix build issue 1103
This commit is contained in:
parent
6ceb2d4d40
commit
085da33a13
2 changed files with 25 additions and 10 deletions
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue