summaryrefslogtreecommitdiff
path: root/sys-block/mmc-utils/mmc-utils-0_p20231010-r1.ebuild
blob: a1d531833438895ed9b8c0455cf0d0221511a754 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# Copyright 1999-2024 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/"

MY_COMMIT="b5ca140312d279ad2f22068fd72a6230eea13436"

SRC_URI="https://git.kernel.org/pub/scm/utils/mmc/mmc-utils.git/snapshot/mmc-utils-${MY_COMMIT}.tar.gz -> ${P}.tar.gz"

S="${WORKDIR}/${PN}-${MY_COMMIT}"

LICENSE="GPL-2 BSD"
SLOT="0"

KEYWORDS="~amd64"

RDEPEND="!dev-lang/mercury"

src_prepare() {
	default
	sed -i 's/-Werror //' Makefile || die
}

src_configure() {
	tc-export CC
}

src_install() {
	dosbin mmc
	dodoc README
	doman man/mmc.1
}