1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 inherit eutils vcs-snapshot
8 if [[ ${PV} == "99999999" ]] ; then
9 EGIT_REPO_URI="git://git.infradead.org/mtd-utils.git"
15 if [[ ${PV} == *.*.* ]] ; then
17 SRC_URI="http://git.infradead.org/mtd-utils.git/snapshot/v${PV}.tar.gz -> ${P}.tar.gz"
19 MY_PV="${PV}-02ae0aac87576d07202a62d11294ea55b56f450b"
20 SRC_URI="mirror://gentoo/${PN}-snapshot-${MY_PV}.tar.xz"
22 KEYWORDS="amd64 arm ~mips ppc x86 ~amd64-linux ~arm-linux ~x86-linux"
25 DESCRIPTION="MTD userspace tools (NFTL, JFFS2, NAND, FTL, UBI)"
26 HOMEPAGE="http://git.infradead.org/?p=mtd-utils.git;a=summary"
36 >=sys-apps/util-linux-2.16"
37 # ACL is only required for the <sys/acl.h> header file to build mkfs.jffs2
38 # And ACL brings in Attr as well.
40 xattr? ( sys-apps/acl )"
43 epatch "${FILESDIR}"/${P}-sysmacros.patch #580206
47 # These affect build output, so keep it common between compile & install.
48 echo CROSS=${CHOST}- V=1
49 use xattr || echo WITHOUT_XATTR=1
53 tc-export AR CC RANLIB
55 AR="${AR}" CC="${CC}" RANLIB="${RANLIB}"
57 emake $(makeopts) "${compileopts[@]}"
61 emake $(makeopts) install DESTDIR="${ED}"
63 newdoc mkfs.ubifs/README README.mkfs.ubifs
64 # TODO: check ubi-utils for docs+scripts