blob: ac6d80c0a96a14e5600f743b5593f0b62f15f467 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-text/tree/tree-1.5.2.1.ebuild,v 1.3 2008/11/18 01:45:53 welp Exp $
inherit toolchain-funcs flag-o-matic bash-completion
DESCRIPTION="Lists directories recursively, and produces an indented listing of files."
HOMEPAGE="http://mama.indstate.edu/users/ice/tree/"
SRC_URI="ftp://mama.indstate.edu/linux/tree/${P}.tgz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 ~arm ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~s390 ~sh ~sparc ~x86"
IUSE=""
src_unpack() {
unpack ${A}
cd "${S}"
sed -i 's:LINUX:__linux__:' tree.c
}
src_compile() {
append-lfs-flags
emake \
CC="$(tc-getCC)" \
CFLAGS="${CFLAGS}" \
LDFLAGS="${LDFLAGS}" \
|| die "emake failed"
}
src_install() {
dobin tree || die "dobin failed"
doman man/tree.1
dodoc CHANGES README*
dobashcompletion "${FILESDIR}"/${PN}.bashcomp
}
|