2022-07-16 14:19:08 +02:00
|
|
|
# Copyright 1999-2022 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
|
|
|
|
2022-07-16 14:19:08 +02:00
|
|
|
inherit xdg cmake optfeature
|
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
|
|
|
|
|
|
|
|
LICENSE="Apache-2.0"
|
|
|
|
SLOT="0"
|
2022-07-16 14:19:08 +02:00
|
|
|
CMAKE_USE_DIR="${S}/src"
|
2020-03-30 20:40:36 +02:00
|
|
|
|
2022-07-16 14:19:08 +02:00
|
|
|
BDEPEND="
|
|
|
|
dev-qt/linguist-tools
|
|
|
|
"
|
2020-03-30 20:40:36 +02:00
|
|
|
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
|
2022-07-16 14:19:08 +02:00
|
|
|
dev-qt/qtdbus:5
|
2020-03-30 20:40:36 +02:00
|
|
|
dev-qt/qtdeclarative:5
|
|
|
|
dev-qt/qtgui:5
|
|
|
|
dev-qt/qtquickcontrols2:5
|
2022-07-16 14:19:08 +02:00
|
|
|
dev-qt/qtsvg:5
|
2020-03-30 20:40:36 +02:00
|
|
|
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
|
2022-07-16 14:19:08 +02:00
|
|
|
|| (
|
|
|
|
dev-libs/openssl
|
|
|
|
net-libs/gnutls
|
|
|
|
)
|
2020-03-30 20:40:36 +02:00
|
|
|
"
|
|
|
|
DEPEND="
|
|
|
|
${RDEPEND}
|
|
|
|
"
|
|
|
|
|
|
|
|
src_configure() {
|
2022-07-16 14:19:08 +02:00
|
|
|
local mycmakeargs=(
|
|
|
|
-DENABLE_CHECK_VERSION=OFF
|
|
|
|
-DENABLE_TELEMETRY=OFF
|
|
|
|
)
|
2020-03-30 20:40:36 +02:00
|
|
|
|
|
|
|
cmake_src_configure
|
|
|
|
}
|
2022-07-16 14:19:08 +02:00
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
optfeature "writing to disk as non-root user" sys-fs/udisks
|
|
|
|
}
|