Gentoo Archives: gentoo-commits

From: Jonas Stein <jstein@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/tree/
Date: Mon, 20 Nov 2017 20:36:56
Message-Id: 1511210201.2670946f0c4bb8904286a9215cc40011ab758bac.jstein@gentoo
1 commit: 2670946f0c4bb8904286a9215cc40011ab758bac
2 Author: Jonas Stein <jstein <AT> gentoo <DOT> org>
3 AuthorDate: Mon Nov 20 20:14:55 2017 +0000
4 Commit: Jonas Stein <jstein <AT> gentoo <DOT> org>
5 CommitDate: Mon Nov 20 20:36:41 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2670946f
7
8 app-text/tree: Bump to EAPI=6
9
10 EAPI bump and cleanup
11
12 Package-Manager: Portage-2.3.14, Repoman-2.3.5
13
14 app-text/tree/tree-1.7.0-r1.ebuild | 42 ++++++++++++++++++++++++++++++++++++++
15 1 file changed, 42 insertions(+)
16
17 diff --git a/app-text/tree/tree-1.7.0-r1.ebuild b/app-text/tree/tree-1.7.0-r1.ebuild
18 new file mode 100644
19 index 00000000000..25422873935
20 --- /dev/null
21 +++ b/app-text/tree/tree-1.7.0-r1.ebuild
22 @@ -0,0 +1,42 @@
23 +# Copyright 1999-2017 Gentoo Foundation
24 +# Distributed under the terms of the GNU General Public License v2
25 +
26 +EAPI=6
27 +inherit toolchain-funcs flag-o-matic bash-completion-r1
28 +
29 +DESCRIPTION="Lists directories recursively, and produces an indented listing of files"
30 +HOMEPAGE="http://mama.indstate.edu/users/ice/tree/"
31 +SRC_URI="ftp://mama.indstate.edu/linux/tree/${P}.tgz"
32 +
33 +LICENSE="GPL-2"
34 +SLOT="0"
35 +KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86 ~amd64-linux ~x86-linux ~x64-macos ~x86-macos"
36 +IUSE=""
37 +
38 +RDEPEND="!=sci-biology/meme-4.8.1"
39 +DEPEND=""
40 +
41 +src_prepare() {
42 + sed -i -e 's:LINUX:__linux__:' tree.c || die
43 + mv doc/tree.1.fr doc/tree.fr.1
44 + if use !elibc_glibc ; then
45 + # 433972, also previously done only for elibc_uclibc
46 + sed -i -e '/^OBJS=/s/$/ strverscmp.o/' Makefile || die
47 + fi
48 + default
49 +}
50 +
51 +src_compile() {
52 + append-lfs-flags
53 + emake \
54 + CC="$(tc-getCC)" \
55 + CFLAGS="${CFLAGS} ${CPPFLAGS}" \
56 + LDFLAGS="${LDFLAGS}"
57 +}
58 +
59 +src_install() {
60 + dobin tree
61 + doman doc/tree*.1
62 + einstalldocs
63 + newbashcomp "${FILESDIR}"/${PN}.bashcomp ${PN}
64 +}