Gentoo Archives: gentoo-commits

From: "Robin H. Johnson" <robbat2@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-fs/mtd-utils/
Date: Fri, 02 Nov 2018 19:56:15
Message-Id: 1541188450.cf58e1cd105ab7384f5a59afd1ebc57670363151.robbat2@gentoo
1 commit: cf58e1cd105ab7384f5a59afd1ebc57670363151
2 Author: Brian Norris <briannorris <AT> chromium <DOT> org>
3 AuthorDate: Tue Oct 16 19:46:21 2018 +0000
4 Commit: Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
5 CommitDate: Fri Nov 2 19:54:10 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=cf58e1cd
7
8 sys-fs/mtd-utils: Add 2.0.2 ebuild
9
10 It's been a few years since 1.5.2, and there are several new releases.
11 Let's take the latest, 2.0.2.
12
13 Main packaging changes:
14 * started using autoconf -- no ./configure provided, so we need to run
15 autogen.sh
16 * directory reorganization, so shift how we install documentation
17 * bump to EAPI 6
18
19 Left as unstable for all architectures for now.
20
21 Signed-off-by: Brian Norris <briannorris <AT> chromium.org>
22 (cherry picked from commit 996c31ba05d16fc623545c849ab45d64c7666489)
23 Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>
24
25 sys-fs/mtd-utils/Manifest | 1 +
26 sys-fs/mtd-utils/mtd-utils-2.0.2.ebuild | 60 +++++++++++++++++++++++++++++++++
27 2 files changed, 61 insertions(+)
28
29 diff --git a/sys-fs/mtd-utils/Manifest b/sys-fs/mtd-utils/Manifest
30 index 9332636ddb9..3dd13bea059 100644
31 --- a/sys-fs/mtd-utils/Manifest
32 +++ b/sys-fs/mtd-utils/Manifest
33 @@ -1 +1,2 @@
34 DIST mtd-utils-1.5.2.tar.gz 343843 BLAKE2B 7f6612c4b9185583e9bbc785f7f96b08b7897c4af0c442a6206a446dc25f3c2aae9670c9344fba09606f73b87c73a96150f77bd974c96abe475d204ba5c28068 SHA512 81eb5cf27814234af65409fe93798ec50d9f733978dc606bd33e63d98eb99afb3f988df47dc66a9368a11baee0a35fa1d0d6677af8c23428919e34bd11a25697
35 +DIST mtd-utils-2.0.2.tar.gz 355964 BLAKE2B 9a795ddac1287c7c44f52215faa4b6295cf5ac3917392a407c7824f8715f4a180feab95621e6b1aa738fba38950c8e12b722b7c518c3362227e6da25deecd3fb SHA512 e61f4bb24d3b96d39fe262f73e01b7bf3e15a9258fd5766657ef0d807d7b5bb0b489ade9dc45068b2a25bcf378ca2877177df3915398b367f50ff1ef9bc5be7a
36
37 diff --git a/sys-fs/mtd-utils/mtd-utils-2.0.2.ebuild b/sys-fs/mtd-utils/mtd-utils-2.0.2.ebuild
38 new file mode 100644
39 index 00000000000..260052fe172
40 --- /dev/null
41 +++ b/sys-fs/mtd-utils/mtd-utils-2.0.2.ebuild
42 @@ -0,0 +1,60 @@
43 +# Copyright 1999-2018 Gentoo Foundation
44 +# Distributed under the terms of the GNU General Public License v2
45 +
46 +EAPI="6"
47 +
48 +inherit eutils vcs-snapshot
49 +
50 +if [[ ${PV} == "99999999" ]] ; then
51 + EGIT_REPO_URI="git://git.infradead.org/mtd-utils.git"
52 +
53 + inherit git-2
54 + SRC_URI=""
55 + #KEYWORDS=""
56 +else
57 + if [[ ${PV} == *.*.* ]] ; then
58 + MY_PV="${PV}-*"
59 + SRC_URI="http://git.infradead.org/mtd-utils.git/snapshot/v${PV}.tar.gz -> ${P}.tar.gz"
60 + else
61 + MY_PV="${PV}-02ae0aac87576d07202a62d11294ea55b56f450b"
62 + SRC_URI="mirror://gentoo/${PN}-snapshot-${MY_PV}.tar.xz"
63 + fi
64 + KEYWORDS="~amd64 ~arm ~mips ~ppc ~x86 ~amd64-linux ~x86-linux"
65 +fi
66 +
67 +DESCRIPTION="MTD userspace tools (NFTL, JFFS2, NAND, FTL, UBI)"
68 +HOMEPAGE="http://git.infradead.org/?p=mtd-utils.git;a=summary"
69 +
70 +LICENSE="GPL-2"
71 +SLOT="0"
72 +IUSE="xattr"
73 +
74 +# We need libuuid
75 +RDEPEND="!sys-fs/mtd
76 + dev-libs/lzo
77 + sys-libs/zlib
78 + >=sys-apps/util-linux-2.16"
79 +# ACL is only required for the <sys/acl.h> header file to build mkfs.jffs2
80 +# And ACL brings in Attr as well.
81 +DEPEND="${RDEPEND}
82 + xattr? ( sys-apps/acl )
83 + sys-devel/libtool"
84 +
85 +src_prepare() {
86 + default
87 + ./autogen.sh || die
88 +}
89 +
90 +src_configure() {
91 + econf \
92 + $(use_with xattr)
93 +}
94 +
95 +src_install() {
96 + default
97 + dodoc jffsX-utils/device_table.txt
98 + newdoc ubifs-utils/mkfs.ubifs/README README.mkfs.ubifs
99 + doman \
100 + jffsX-utils/mkfs.jffs2.1 \
101 + ubi-utils/ubinize.8
102 +}