sys-boot/rpi-imager: EAPI 8, qtconcurrent dep, proper CMAKE_BUILD_TYPE

Closes: https://gitlab.com/src_prepare/src_prepare-overlay/-/issues/34
Signed-off-by: Maciej Barć <xgqt@riseup.net>
This commit is contained in:
Maciej Barć 2021-11-10 20:21:56 +01:00
parent 03abd7e812
commit 8b3a64491c
No known key found for this signature in database
GPG Key ID: 031C9FE65BED714A
2 changed files with 18 additions and 10 deletions

View File

@ -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
}

View File

@ -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
}