From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1659815-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256)
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 18551159C9B
	for <garchives@archives.gentoo.org>; Thu,  8 Aug 2024 18:09:11 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 0EF2C2BC02B;
	Thu,  8 Aug 2024 18:09:10 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id E38A72BC02B
	for <gentoo-commits@lists.gentoo.org>; Thu,  8 Aug 2024 18:09:09 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id B69EE33BE26
	for <gentoo-commits@lists.gentoo.org>; Thu,  8 Aug 2024 18:09:08 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 2B4411B9A
	for <gentoo-commits@lists.gentoo.org>; Thu,  8 Aug 2024 18:09:07 +0000 (UTC)
From: "Matthew Smith" <matthew@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Matthew Smith" <matthew@gentoo.org>
Message-ID: <1723140489.e5a4ab959c318ad73dab0568183f08d32f6dff1b.matthew@gentoo>
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-embedded/picotool/
X-VCS-Repository: repo/gentoo
X-VCS-Files: dev-embedded/picotool/Manifest dev-embedded/picotool/picotool-2.0.0.ebuild
X-VCS-Directories: dev-embedded/picotool/
X-VCS-Committer: matthew
X-VCS-Committer-Name: Matthew Smith
X-VCS-Revision: e5a4ab959c318ad73dab0568183f08d32f6dff1b
X-VCS-Branch: master
Date: Thu,  8 Aug 2024 18:09:07 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: b1d202b4-f3ea-4b13-b1b9-6fa4dd03f70f
X-Archives-Hash: cb0523487bb35c915de8e5e3c94832b4

commit:     e5a4ab959c318ad73dab0568183f08d32f6dff1b
Author:     Matthew Smith <matthew <AT> gentoo <DOT> org>
AuthorDate: Thu Aug  8 18:08:09 2024 +0000
Commit:     Matthew Smith <matthew <AT> gentoo <DOT> org>
CommitDate: Thu Aug  8 18:08:09 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e5a4ab95

dev-embedded/picotool: add 2.0.0

Signed-off-by: Matthew Smith <matthew <AT> gentoo.org>

 dev-embedded/picotool/Manifest              |  2 ++
 dev-embedded/picotool/picotool-2.0.0.ebuild | 50 +++++++++++++++++++++++++++++
 2 files changed, 52 insertions(+)

diff --git a/dev-embedded/picotool/Manifest b/dev-embedded/picotool/Manifest
index 3d6cae10ab17..983fe6bfca87 100644
--- a/dev-embedded/picotool/Manifest
+++ b/dev-embedded/picotool/Manifest
@@ -1,2 +1,4 @@
 DIST pico-sdk-1.4.0.tar.gz 959068 BLAKE2B 95c5e61c4d66c345daa4b8aff8e9e2cd90bcc722289ac67c1a18ce00dfa02ef7fb07512a0fdc7558f989746c215cff31979f1ad8a582e20ff2d151fdd109914f SHA512 4be28cf41e5b808a504b4c949f6c3e9fbc425beb4f838a7898bfd78925cc54e0390ff56c036bc7f60a26efac0d6c1bd811b27f7b60a1c8d7bb4750f3fa37690e
+DIST pico-sdk-2.0.0.tar.gz 2345905 BLAKE2B a1360fe30a56eef6ea2e786bb3d0f2522c4d37cd2424ea08a377d3f70f681cac1650a0967c4e447e9f47c692cf0ec7f9865af78cf8f4f8d699271f390750a3a1 SHA512 ae7c470a63581503d591b7aa19281eaf75248a668d0ce266b766a2261db8584d372d4f6d52cb1a90dc8b1d5afdfee1802980c0f2819f0193d6112db934d3e575
 DIST picotool-1.1.2.tar.gz 45282 BLAKE2B b7425ae197adef3f72aafa9450338ab1c3ddd4b1a13ff9f4847951ee3d7fd91226f780061416c0d72f963ad0afcf4a14d85c72b6199482738eb5344c8dc6563f SHA512 63e0c77865243aca0b46cb844f5eb104c762d2b38f645c75f32224b61d9768ef0ba59b55d94480559627ec4b23ad6edc49d013f90646644a5dc798090d37a257
+DIST picotool-2.0.0.tar.gz 637989 BLAKE2B aad9463f1f26ba921dc681fb784bec0e6ed9917919c12cb616b10642e359560f9b1304013a8a20dfaffe0f373b690d8527f93195212c01c76cb01439590143c8 SHA512 96808cea70a38cd108bbfe8f227d0e66167d0d0611d234e849793ec02d7cb319b065e7988c070c46488a7e99e1a2c1779f78d70782fc67fbbb81229d8e4c4ffa

diff --git a/dev-embedded/picotool/picotool-2.0.0.ebuild b/dev-embedded/picotool/picotool-2.0.0.ebuild
new file mode 100644
index 000000000000..acc716c5c113
--- /dev/null
+++ b/dev-embedded/picotool/picotool-2.0.0.ebuild
@@ -0,0 +1,50 @@
+# Copyright 2022-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+SDK_PV=2.0.0
+SDK_PN=pico-sdk
+SDK_P=${SDK_PN}-${SDK_PV}
+
+DESCRIPTION="tool for interacting with rp2040 devices and binaries"
+HOMEPAGE="https://github.com/raspberrypi/picotool"
+SRC_URI="
+	https://github.com/raspberrypi/${PN}/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz
+	https://github.com/raspberrypi/${SDK_PN}/archive/refs/tags/${SDK_PV}.tar.gz -> ${SDK_P}.tar.gz
+"
+
+# picotool (BSD)
+# |- clipp (MIT)
+# |- pico-sdk (BSD)
+LICENSE="BSD MIT"
+SLOT="0"
+KEYWORDS="~amd64"
+
+RDEPEND="virtual/libusb:1"
+DEPEND="${RDEPEND}"
+BDEPEND="virtual/pkgconfig"
+
+PATCHES=( "${FILESDIR}"/${PN}-1.1.2-musl.patch )
+
+# Binary that runs on-chip.
+QA_PREBUILT="usr/share/picotool/xip_ram_perms.elf"
+
+src_prepare() {
+	mv "${WORKDIR}"/${SDK_P} "${S}"/pico-sdk || die
+	cmake_src_prepare
+}
+
+src_configure() {
+	local mycmakeargs=(
+		-DPICO_SDK_PATH="${S}"/pico-sdk
+	)
+	cmake_src_configure
+}
+
+src_install() {
+	cmake_src_install
+	dostrip -x /usr/share/picotool/xip_ram_perms.elf
+}