summaryrefslogtreecommitdiff
blob: 068e65725172415edeb6091a3f7ff5b43c1910ba (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
37
38
39
40
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-misc/xdiskusage/xdiskusage-1.48_p20100606.ebuild,v 1.7 2011/03/28 13:31:25 phajdan.jr Exp $

EAPI=3
inherit autotools flag-o-matic

DESCRIPTION="front end to xdu for viewing disk usage graphically under X11"
HOMEPAGE="http://xdiskusage.sourceforge.net/"
SRC_URI="mirror://gentoo/${P}.tar.xz"

LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 ~ppc x86 ~x86-fbsd"
IUSE=""

RDEPEND="x11-libs/fltk:2"
DEPEND="${RDEPEND}
	app-arch/xz-utils"

src_prepare() {
	eautoreconf
}

src_configure() {
	append-flags -I/usr/include/fltk/compat
	econf
}

src_compile() {
	emake \
		CXXFLAGS="${CXXFLAGS}" \
		LDLIBS="$(fltk2-config --ldflags)" || die
}

src_install() {
	dobin xdiskusage || die
	doman xdiskusage.1
	dodoc README
}