From c87fbb0e3d61a0f41a2b9d22fdfb1aaf45fe5210 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Wed, 22 Jul 2020 17:09:04 +0200 Subject: [PATCH] sys-boot/rpi-imager: version bump to 1.4; add xdg and eutils eclasses MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Package-Manager: Portage-2.3.99, Repoman-2.3.23 Signed-off-by: Maciej Barć --- sys-boot/rpi-imager/Manifest | 1 + sys-boot/rpi-imager/rpi-imager-1.2.ebuild | 2 +- sys-boot/rpi-imager/rpi-imager-1.4.ebuild | 48 ++++++++++++++++++++++ sys-boot/rpi-imager/rpi-imager-9999.ebuild | 2 +- 4 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 sys-boot/rpi-imager/rpi-imager-1.4.ebuild diff --git a/sys-boot/rpi-imager/Manifest b/sys-boot/rpi-imager/Manifest index 4a7c575..e3d7f5c 100644 --- a/sys-boot/rpi-imager/Manifest +++ b/sys-boot/rpi-imager/Manifest @@ -1 +1,2 @@ DIST rpi-imager-1.2.tar.gz 9003081 BLAKE2B b0a99fcfe67004bbb1f62109a9162211d66a6fbce040b88bfbcf6c188509bdf9aceb9eb9e65581e29804cf26f16632d091f241e31a822f68a4af67b32fff4323 SHA512 a256b0b56582358e752bf7e032263ddf70402d2c0eb5aeb8803cb66aa45f7f3fde62c4546746e0a4f630be102bbfb8ecf2794d3d0135081515fb3b15f24562e5 +DIST rpi-imager-1.4.tar.gz 9074121 BLAKE2B 14fc22aeb8c1bdcb6f5fae57d94794b60c6904cdc4c0f80ef48f770e550e60305213a11de5103de37f8ae4995c38ee3314f9ee053d7f478a9bc01c4717d2101f SHA512 1e1b004215e4562d2a174c4a21e08c36b094929a047d9dfad8b33a16e0407414b85c1d2b5371f1a14ffa23f29a5f4f0199a3eb7dcbdd311db254cd6962a72b51 diff --git a/sys-boot/rpi-imager/rpi-imager-1.2.ebuild b/sys-boot/rpi-imager/rpi-imager-1.2.ebuild index a0cc067..b7a6336 100644 --- a/sys-boot/rpi-imager/rpi-imager-1.2.ebuild +++ b/sys-boot/rpi-imager/rpi-imager-1.2.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit cmake +inherit eutils xdg cmake DESCRIPTION="Raspberry Pi Imaging Utility" HOMEPAGE="https://github.com/raspberrypi/rpi-imager" diff --git a/sys-boot/rpi-imager/rpi-imager-1.4.ebuild b/sys-boot/rpi-imager/rpi-imager-1.4.ebuild new file mode 100644 index 0000000..b7a6336 --- /dev/null +++ b/sys-boot/rpi-imager/rpi-imager-1.4.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit eutils xdg cmake + +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" + KEYWORDS="" +else + SRC_URI="https://github.com/raspberrypi/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64" +fi + +RESTRICT="mirror" +LICENSE="Apache-2.0" +SLOT="0" +IUSE="debug" + +BDEPEND=" + app-arch/libarchive + net-misc/curl +" +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtdeclarative:5 + dev-qt/qtgui:5 + dev-qt/qtquickcontrols2:5 + dev-qt/qtwidgets:5 + dev-qt/qtxml:5 + sys-fs/udisks:2 +" +DEPEND=" + ${RDEPEND} +" + +src_configure() { + local mycmakeargs=( + -DCMAKE_BUILD_TYPE=$(usex debug Debug Release) + ) + + cmake_src_configure +} diff --git a/sys-boot/rpi-imager/rpi-imager-9999.ebuild b/sys-boot/rpi-imager/rpi-imager-9999.ebuild index a0cc067..b7a6336 100644 --- a/sys-boot/rpi-imager/rpi-imager-9999.ebuild +++ b/sys-boot/rpi-imager/rpi-imager-9999.ebuild @@ -3,7 +3,7 @@ EAPI=7 -inherit cmake +inherit eutils xdg cmake DESCRIPTION="Raspberry Pi Imaging Utility" HOMEPAGE="https://github.com/raspberrypi/rpi-imager"