From c446d58c5e4b8ec0f390b3ae6f58b938f365aa8b Mon Sep 17 00:00:00 2001 From: XGQT Date: Mon, 30 Mar 2020 20:40:36 +0200 Subject: [PATCH] sys-boot/rpi-imager: add version 1.2 and 9999 Package-Manager: Portage-2.3.89, Repoman-2.3.20 --- sys-boot/rpi-imager/Manifest | 1 + sys-boot/rpi-imager/metadata.xml | 7 ++++ sys-boot/rpi-imager/rpi-imager-1.2.ebuild | 48 ++++++++++++++++++++++ sys-boot/rpi-imager/rpi-imager-9999.ebuild | 48 ++++++++++++++++++++++ 4 files changed, 104 insertions(+) create mode 100644 sys-boot/rpi-imager/Manifest create mode 100644 sys-boot/rpi-imager/metadata.xml create mode 100644 sys-boot/rpi-imager/rpi-imager-1.2.ebuild create mode 100644 sys-boot/rpi-imager/rpi-imager-9999.ebuild diff --git a/sys-boot/rpi-imager/Manifest b/sys-boot/rpi-imager/Manifest new file mode 100644 index 0000000..4a7c575 --- /dev/null +++ b/sys-boot/rpi-imager/Manifest @@ -0,0 +1 @@ +DIST rpi-imager-1.2.tar.gz 9003081 BLAKE2B b0a99fcfe67004bbb1f62109a9162211d66a6fbce040b88bfbcf6c188509bdf9aceb9eb9e65581e29804cf26f16632d091f241e31a822f68a4af67b32fff4323 SHA512 a256b0b56582358e752bf7e032263ddf70402d2c0eb5aeb8803cb66aa45f7f3fde62c4546746e0a4f630be102bbfb8ecf2794d3d0135081515fb3b15f24562e5 diff --git a/sys-boot/rpi-imager/metadata.xml b/sys-boot/rpi-imager/metadata.xml new file mode 100644 index 0000000..3ddba60 --- /dev/null +++ b/sys-boot/rpi-imager/metadata.xml @@ -0,0 +1,7 @@ + + + + + raspberrypi/rpi-imager + + diff --git a/sys-boot/rpi-imager/rpi-imager-1.2.ebuild b/sys-boot/rpi-imager/rpi-imager-1.2.ebuild new file mode 100644 index 0000000..a0cc067 --- /dev/null +++ b/sys-boot/rpi-imager/rpi-imager-1.2.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit 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 new file mode 100644 index 0000000..a0cc067 --- /dev/null +++ b/sys-boot/rpi-imager/rpi-imager-9999.ebuild @@ -0,0 +1,48 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit 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 +}