sys-block/f3: add 10.0

Signed-off-by: Viorel Munteanu <ceamac@gentoo.org>
This commit is contained in:
Viorel Munteanu
2026-11-15 19:53:03 +02:00
parent b2a3f44590
commit df49b7cb8a
2 changed files with 65 additions and 0 deletions
+1
View File
@@ -1 +1,2 @@
DIST f3-10.0.tar.gz 82954 BLAKE2B 4a02cb18026e21fd7f5e6adbcd1f6ac2065a8127e816f4860ce42dd8bd50cf3533daa529ab9b50f46eac451cd31bf87b0117f023501555f441d1ec9e1219c57d SHA512 a6958bce15198f33c353b9b22e02a554912c2239475d156c2a660cde5e2e7d59b9e929af493fa38370f13dbda5070e9d3cad51856099624c155ba791600dda75
DIST f3-9.0.tar.gz 73728 BLAKE2B 9199d2531245a40e53e69f8e645989a22232f5e0c21a78d9f1d06605a524566fc47125f3a7fb2882b0d0105aee848903d3a1b548392351a9c28c061a80a2907e SHA512 94fd5ec42831901b67180c74380ee03c683376006a46a9e45d22a5d13da3127d27f222db31726ae251f56f2a1d1ac2f3fbe707048866e8319125697368d7084b
+64
View File
@@ -0,0 +1,64 @@
# Copyright 1999-2026 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 )
extra? (
sys-block/parted
virtual/udev
)
"
DEPEND="${RDEPEND}"
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
}