From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BC6BE138334 for ; Mon, 25 Mar 2019 00:19:13 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D7D7AE0A97; Mon, 25 Mar 2019 00:19:11 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id B0BEEE0A97 for ; Mon, 25 Mar 2019 00:19:11 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 399EF335D5B for ; Mon, 25 Mar 2019 00:19:10 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 38B14582 for ; Mon, 25 Mar 2019 00:19:07 +0000 (UTC) From: "Andrey Utkin" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andrey Utkin" Message-ID: <1553473079.e101fdeb53f965dae2a7d901ae8d728ffcb2b834.andrey_utkin@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-kernel/raspberrypi-image/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild X-VCS-Directories: sys-kernel/raspberrypi-image/ X-VCS-Committer: andrey_utkin X-VCS-Committer-Name: Andrey Utkin X-VCS-Revision: e101fdeb53f965dae2a7d901ae8d728ffcb2b834 X-VCS-Branch: master Date: Mon, 25 Mar 2019 00:19:07 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: bd4e68da-421f-45a4-9da3-77163087b090 X-Archives-Hash: b186ff48341a0d49c31fb1f5aea537b1 commit: e101fdeb53f965dae2a7d901ae8d728ffcb2b834 Author: Andrey Utkin gentoo org> AuthorDate: Sun Mar 24 22:30:17 2019 +0000 Commit: Andrey Utkin gentoo org> CommitDate: Mon Mar 25 00:17:59 2019 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e101fdeb sys-kernel/raspberrypi-image: 9999: add logic for non-live releases This allows adding release ebuilds by copying the file verbatim. Auto-resolution of tag version from ebuild was contributed by Conrad Kostecki kostecki.com>. Package-Manager: Portage-2.3.62, Repoman-2.3.12 Signed-off-by: Andrey Utkin gentoo.org> sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild b/sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild index ac28eee28fe..47546b5babf 100644 --- a/sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild +++ b/sys-kernel/raspberrypi-image/raspberrypi-image-9999.ebuild @@ -3,15 +3,25 @@ EAPI=7 -inherit git-r3 mount-boot +inherit mount-boot DESCRIPTION="Raspberry Pi (all versions) kernel and modules" HOMEPAGE="https://github.com/raspberrypi/firmware" LICENSE="GPL-2 raspberrypi-videocore-bin" SLOT="0" -EGIT_REPO_URI="https://github.com/raspberrypi/firmware" RESTRICT="binchecks strip" +if [[ "${PV}" == 9999 ]]; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/raspberrypi/firmware" +else + [[ "$(ver_cut 4)" == 'p' ]] || die "Unsupported version format, tweak the ebuild." + MY_PV="1.$(ver_cut 5)" + SRC_URI="https://github.com/raspberrypi/firmware/archive/${MY_PV}.tar.gz -> ${P}.tar.gz" + S="${WORKDIR}/firmware-${MY_PV}" + KEYWORDS="-* ~arm" +fi + src_install() { insinto /lib/modules doins -r modules/*