sys-block/mmc-utils: add 1.0

Signed-off-by: Florian Schmaus <flow@gentoo.org>
This commit is contained in:
Florian Schmaus
2025-07-19 20:28:50 +02:00
parent 523dacc9e7
commit a384057fec
2 changed files with 51 additions and 0 deletions

View File

@@ -1,2 +1,3 @@
DIST mmc-utils-0_p20231010.tar.gz 51083 BLAKE2B efa8bbae62ccc20ee4085c6b372ce3a35d41cf2aba12918d74d2edb0f779e7174250358d426a756075cf6dd93009b366dfb373a54bc0eb13441c4ee2e579a26f SHA512 c6ee6af49556261f1bee12580025452fa180f0bd913fac90847d86ffc5100f34905a0b0467707601a3638bfad6f3f4fca41df0cd59c7e3507981f991ede6ac10
DIST mmc-utils-0_p20240402.tar.gz 53588 BLAKE2B 6acc9a60103d6bb83d3d5f2403f997abe616aed36e23a4b91dec7156a5e73ce559dcd87737a9a0fa38e7c6f609d4ebf02c6ebe931fbf169ec6fd2c57056578fa SHA512 7891c16cb447c9900225a15f273e167b6eaf21cc73fbb2b80d11ee95df9e63cb430267101b8887e3e00c3a6c9d20d7aa29613933c0b25221589991c1693c73bb
DIST mmc-utils-1.0.tar.gz 60193 BLAKE2B 6e6250dacc1219ec6fe7c0c67ed5da09ffd28c0efe555ca025fccb7f5b7c8a06669bfb69215f9ddeaced460d941d04d019994f3a9785a86674163ec33bf4a7dc SHA512 f44d23f1befb9233a4ccbbefcaceb07028278af2f0c2059ce951ad2a685ef1cf13aac314d6565de191c8957c5d2a6c0a9e36486ff68e84eaa4b025412d6582ee

View File

@@ -0,0 +1,50 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
DESCRIPTION="Userspace tools for MMC/SD devices"
HOMEPAGE="https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/"
SRC_URI="https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-${PV}.tar.gz"
LICENSE="GPL-2 BSD"
SLOT="0"
KEYWORDS="~amd64 ~arm64"
IUSE="doc"
RDEPEND="!dev-lang/mercury"
BDEPEND="doc? ( dev-python/sphinx )"
src_prepare() {
default
sed -i \
-e '/^GIT_VERSION /d' \
-e 's/-Werror //' \
-e 's/-D_FORTIFY_SOURCE=2 //' \
-e "s/-DVERSION=.*/-DVERSION=\\\\\"gentoo-${PVR}\\\\\"/" \
Makefile || die
}
src_configure() {
tc-export CC
}
src_compile() {
emake C=0
use doc && emake -C docs html
}
src_install() {
dosbin mmc
dodoc README
doman man/mmc.1
if use doc; then
docinto html
dodoc -r docs/_build/html/.
fi
}