sys-fs/mtd-utils: Add 2.0.2 ebuild

It's been a few years since 1.5.2, and there are several new releases.
Let's take the latest, 2.0.2.

Main packaging changes:
 * started using autoconf -- no ./configure provided, so we need to run
 autogen.sh
 * directory reorganization, so shift how we install documentation
 * bump to EAPI 6

Left as unstable for all architectures for now.

Signed-off-by: Brian Norris <briannorris@chromium.org>
(cherry picked from commit 996c31ba05d16fc623545c849ab45d64c7666489)
Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
This commit is contained in:
Brian Norris
2018-10-16 12:46:21 -07:00
committed by Robin H. Johnson
parent 5b085b63dd
commit cf58e1cd10
2 changed files with 61 additions and 0 deletions

View File

@@ -1 +1,2 @@
DIST mtd-utils-1.5.2.tar.gz 343843 BLAKE2B 7f6612c4b9185583e9bbc785f7f96b08b7897c4af0c442a6206a446dc25f3c2aae9670c9344fba09606f73b87c73a96150f77bd974c96abe475d204ba5c28068 SHA512 81eb5cf27814234af65409fe93798ec50d9f733978dc606bd33e63d98eb99afb3f988df47dc66a9368a11baee0a35fa1d0d6677af8c23428919e34bd11a25697
DIST mtd-utils-2.0.2.tar.gz 355964 BLAKE2B 9a795ddac1287c7c44f52215faa4b6295cf5ac3917392a407c7824f8715f4a180feab95621e6b1aa738fba38950c8e12b722b7c518c3362227e6da25deecd3fb SHA512 e61f4bb24d3b96d39fe262f73e01b7bf3e15a9258fd5766657ef0d807d7b5bb0b489ade9dc45068b2a25bcf378ca2877177df3915398b367f50ff1ef9bc5be7a

View File

@@ -0,0 +1,60 @@
# Copyright 1999-2018 Gentoo Foundation
# 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 ~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
}