commit:     cf58e1cd105ab7384f5a59afd1ebc57670363151
Author:     Brian Norris <briannorris <AT> chromium <DOT> org>
AuthorDate: Tue Oct 16 19:46:21 2018 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Fri Nov  2 19:54:10 2018 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf58e1cd

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 <AT> chromium.org>
(cherry picked from commit 996c31ba05d16fc623545c849ab45d64c7666489)
Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 sys-fs/mtd-utils/Manifest               |  1 +
 sys-fs/mtd-utils/mtd-utils-2.0.2.ebuild | 60 +++++++++++++++++++++++++++++++++
 2 files changed, 61 insertions(+)

diff --git a/sys-fs/mtd-utils/Manifest b/sys-fs/mtd-utils/Manifest
index 9332636ddb9..3dd13bea059 100644
--- a/sys-fs/mtd-utils/Manifest
+++ b/sys-fs/mtd-utils/Manifest
@@ -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

diff --git a/sys-fs/mtd-utils/mtd-utils-2.0.2.ebuild 
b/sys-fs/mtd-utils/mtd-utils-2.0.2.ebuild
new file mode 100644
index 00000000000..260052fe172
--- /dev/null
+++ b/sys-fs/mtd-utils/mtd-utils-2.0.2.ebuild
@@ -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
+}

Reply via email to