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.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8FBA015800A for ; Sat, 15 Jul 2023 00:53:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7E73FE0863; Sat, 15 Jul 2023 00:53:40 +0000 (UTC) Received: from smtp.gentoo.org (dev.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)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 65584E086A for ; Sat, 15 Jul 2023 00:53:40 +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 7CBC333E02F for ; Sat, 15 Jul 2023 00:53:39 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A06CFAFE for ; Sat, 15 Jul 2023 00:53:37 +0000 (UTC) From: "Conrad Kostecki" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Conrad Kostecki" Message-ID: <1689382279.b0a915f211ccb97476f690a791a660558581a881.conikost@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-block/f3/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-block/f3/f3-8.0-r1.ebuild X-VCS-Directories: sys-block/f3/ X-VCS-Committer: conikost X-VCS-Committer-Name: Conrad Kostecki X-VCS-Revision: b0a915f211ccb97476f690a791a660558581a881 X-VCS-Branch: master Date: Sat, 15 Jul 2023 00:53:37 +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: 6faf7708-541a-4f15-9629-2767aad08c53 X-Archives-Hash: 8536c117d7aa7880f99db9434a4d8628 commit: b0a915f211ccb97476f690a791a660558581a881 Author: Michael Mair-Keimberger levelnine at> AuthorDate: Tue Jul 11 12:55:58 2023 +0000 Commit: Conrad Kostecki gentoo org> CommitDate: Sat Jul 15 00:51:19 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b0a915f2 sys-block/f3: EAPI8 bump, remove broken HOMEPAGE Signed-off-by: Michael Mair-Keimberger levelnine.at> Signed-off-by: Conrad Kostecki gentoo.org> sys-block/f3/f3-8.0-r1.ebuild | 62 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/sys-block/f3/f3-8.0-r1.ebuild b/sys-block/f3/f3-8.0-r1.ebuild new file mode 100644 index 000000000000..69e189a0304e --- /dev/null +++ b/sys-block/f3/f3-8.0-r1.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit flag-o-matic toolchain-funcs + +DESCRIPTION="Utilities to detect broken or counterfeit flash storage" +HOMEPAGE="https://github.com/AltraMayor/f3" + +if [[ ${PV} == "9999" ]]; then + EGIT_REPO_URI="https://github.com/AltraMayor/${PN}.git" + inherit git-r3 +else + SRC_URI="https://github.com/AltraMayor/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" +fi + +LICENSE="GPL-3+" +SLOT="0" +IUSE="extra" + +RDEPEND="elibc_musl? ( sys-libs/argp-standalone )" +DEPEND="${RDEPEND} + extra? ( + sys-block/parted + virtual/udev + )" + +DOCS=( changelog README.rst ) + +src_prepare() { + default + + sed -i \ + -e 's:-ggdb::' \ + -e 's:^PREFIX =:PREFIX ?=:' \ + Makefile || die + + # bug #715518 + use elibc_musl && append-ldflags -largp + + tc-export CC +} + +src_compile() { + default + + if use extra; then + emake V=1 extra + fi +} + +src_install() { + emake PREFIX="${ED}/usr" install + + if use extra; then + emake PREFIX="${ED}/usr" install-extra + fi + + einstalldocs +}