From 8b3a64491c94e3a20e568e86d6d78a2f546f5217 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Bar=C4=87?= Date: Wed, 10 Nov 2021 20:21:56 +0100 Subject: [PATCH] sys-boot/rpi-imager: EAPI 8, qtconcurrent dep, proper CMAKE_BUILD_TYPE MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes: https://gitlab.com/src_prepare/src_prepare-overlay/-/issues/34 Signed-off-by: Maciej Barć --- sys-boot/rpi-imager/rpi-imager-1.6.1.ebuild | 14 +++++++++----- sys-boot/rpi-imager/rpi-imager-9999.ebuild | 14 +++++++++----- 2 files changed, 18 insertions(+), 10 deletions(-) diff --git a/sys-boot/rpi-imager/rpi-imager-1.6.1.ebuild b/sys-boot/rpi-imager/rpi-imager-1.6.1.ebuild index 9e9caf4..328dd81 100644 --- a/sys-boot/rpi-imager/rpi-imager-1.6.1.ebuild +++ b/sys-boot/rpi-imager/rpi-imager-1.6.1.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit xdg cmake @@ -12,7 +12,7 @@ if [[ "${PV}" == *9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/raspberrypi/${PN}.git" else - SRC_URI="https://github.com/raspberrypi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + SRC_URI="https://github.com/raspberrypi/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64" fi @@ -23,6 +23,7 @@ IUSE="debug" RDEPEND=" app-arch/libarchive + dev-qt/qtconcurrent:5 dev-qt/qtcore:5 dev-qt/qtdeclarative:5 dev-qt/qtgui:5 @@ -37,9 +38,12 @@ DEPEND=" " src_configure() { - local mycmakeargs=( - -DCMAKE_BUILD_TYPE=$(usex debug Debug Release) - ) + local CMAKE_BUILD_TYPE + if use debug; then + CMAKE_BUILD_TYPE="Debug" + else + CMAKE_BUILD_TYPE="Release" + fi cmake_src_configure } diff --git a/sys-boot/rpi-imager/rpi-imager-9999.ebuild b/sys-boot/rpi-imager/rpi-imager-9999.ebuild index 9e9caf4..328dd81 100644 --- a/sys-boot/rpi-imager/rpi-imager-9999.ebuild +++ b/sys-boot/rpi-imager/rpi-imager-9999.ebuild @@ -1,7 +1,7 @@ # Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 inherit xdg cmake @@ -12,7 +12,7 @@ if [[ "${PV}" == *9999* ]]; then inherit git-r3 EGIT_REPO_URI="https://github.com/raspberrypi/${PN}.git" else - SRC_URI="https://github.com/raspberrypi/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + SRC_URI="https://github.com/raspberrypi/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64" fi @@ -23,6 +23,7 @@ IUSE="debug" RDEPEND=" app-arch/libarchive + dev-qt/qtconcurrent:5 dev-qt/qtcore:5 dev-qt/qtdeclarative:5 dev-qt/qtgui:5 @@ -37,9 +38,12 @@ DEPEND=" " src_configure() { - local mycmakeargs=( - -DCMAKE_BUILD_TYPE=$(usex debug Debug Release) - ) + local CMAKE_BUILD_TYPE + if use debug; then + CMAKE_BUILD_TYPE="Debug" + else + CMAKE_BUILD_TYPE="Release" + fi cmake_src_configure }