summaryrefslogtreecommitdiff
blob: 38c597a73195735b28f7c4c71f782fe055deb25f (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-admin/pydf/pydf-8.ebuild,v 1.2 2010/03/19 13:55:30 spatz Exp $

EAPI=2
inherit eutils

MY_P=${P/-/_}
DESCRIPTION="Enhanced df with colors"
HOMEPAGE="http://kassiopeia.juls.savba.sk/~garabik/software/pydf/"
SRC_URI="http://kassiopeia.juls.savba.sk/~garabik/software/pydf/${MY_P}.tar.gz"

LICENSE="public-domain"
SLOT="0"
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd"
IUSE=""

DEPEND=""
RDEPEND="<dev-lang/python-3"

src_prepare() {
	epatch "$FILESDIR"/pydf-bw.patch

	sed -i '1c #!/usr/bin/python2' pydf || die
}

src_install() {
	dobin pydf || die "dobin failed"
	insinto /etc
	doins pydfrc || die "doins failed"
	doman pydf.1 || die
	dodoc README || die
}