2021-03-29 21:35:13 +02:00
|
|
|
# Copyright 1999-2021 Gentoo Authors
|
2020-03-30 20:40:36 +02:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2021-11-10 20:21:56 +01:00
|
|
|
EAPI=8
|
2020-03-30 20:40:36 +02:00
|
|
|
|
2020-10-23 16:40:04 +02:00
|
|
|
inherit xdg cmake
|
2020-03-30 20:40:36 +02:00
|
|
|
|
|
|
|
DESCRIPTION="Raspberry Pi Imaging Utility"
|
|
|
|
HOMEPAGE="https://github.com/raspberrypi/rpi-imager"
|
|
|
|
|
|
|
|
if [[ "${PV}" == *9999* ]]; then
|
|
|
|
inherit git-r3
|
|
|
|
EGIT_REPO_URI="https://github.com/raspberrypi/${PN}.git"
|
|
|
|
else
|
2021-11-10 20:21:56 +01:00
|
|
|
SRC_URI="https://github.com/raspberrypi/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
2020-03-30 20:40:36 +02:00
|
|
|
KEYWORDS="~amd64"
|
|
|
|
fi
|
|
|
|
|
|
|
|
RESTRICT="mirror"
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
|
|
|
IUSE="debug"
|
|
|
|
|
|
|
|
RDEPEND="
|
2021-03-29 21:37:41 +02:00
|
|
|
app-arch/libarchive
|
2021-11-10 20:21:56 +01:00
|
|
|
dev-qt/qtconcurrent:5
|
2020-03-30 20:40:36 +02:00
|
|
|
dev-qt/qtcore:5
|
|
|
|
dev-qt/qtdeclarative:5
|
|
|
|
dev-qt/qtgui:5
|
|
|
|
dev-qt/qtquickcontrols2:5
|
|
|
|
dev-qt/qtwidgets:5
|
|
|
|
dev-qt/qtxml:5
|
2021-03-29 21:37:41 +02:00
|
|
|
net-misc/curl
|
2020-03-30 20:40:36 +02:00
|
|
|
sys-fs/udisks:2
|
|
|
|
"
|
|
|
|
DEPEND="
|
|
|
|
${RDEPEND}
|
|
|
|
"
|
|
|
|
|
|
|
|
src_configure() {
|
2021-11-10 20:21:56 +01:00
|
|
|
local CMAKE_BUILD_TYPE
|
|
|
|
if use debug; then
|
|
|
|
CMAKE_BUILD_TYPE="Debug"
|
|
|
|
else
|
|
|
|
CMAKE_BUILD_TYPE="Release"
|
|
|
|
fi
|
2020-03-30 20:40:36 +02:00
|
|
|
|
|
|
|
cmake_src_configure
|
|
|
|
}
|