blob: 0fe8a0ccf747c90ef02e43d316a3d225ebe5579a (
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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI="6"
inherit eutils vcs-snapshot
if [[ ${PV} == "99999999" ]] ; then
EGIT_REPO_URI="git://git.infradead.org/mtd-utils.git"
inherit git-2
SRC_URI=""
#KEYWORDS=""
else
if [[ ${PV} == *.*.* ]] ; then
MY_PV="${PV}-*"
SRC_URI="http://git.infradead.org/mtd-utils.git/snapshot/v${PV}.tar.gz -> ${P}.tar.gz"
else
MY_PV="${PV}-02ae0aac87576d07202a62d11294ea55b56f450b"
SRC_URI="mirror://gentoo/${PN}-snapshot-${MY_PV}.tar.xz"
fi
KEYWORDS="amd64 arm ~mips ppc ~ppc64 x86 ~amd64-linux ~x86-linux"
fi
DESCRIPTION="MTD userspace tools (NFTL, JFFS2, NAND, FTL, UBI)"
HOMEPAGE="http://git.infradead.org/?p=mtd-utils.git;a=summary"
LICENSE="GPL-2"
SLOT="0"
IUSE="xattr"
# We need libuuid
RDEPEND="!sys-fs/mtd
dev-libs/lzo
sys-libs/zlib
>=sys-apps/util-linux-2.16"
# ACL is only required for the <sys/acl.h> header file to build mkfs.jffs2
# And ACL brings in Attr as well.
DEPEND="${RDEPEND}
xattr? ( sys-apps/acl )
sys-devel/libtool"
src_prepare() {
default
./autogen.sh || die
}
src_configure() {
econf \
$(use_with xattr)
}
src_install() {
default
dodoc jffsX-utils/device_table.txt
newdoc ubifs-utils/mkfs.ubifs/README README.mkfs.ubifs
doman \
jffsX-utils/mkfs.jffs2.1 \
ubi-utils/ubinize.8
}
|