summaryrefslogtreecommitdiff
blob: edded6e8ee7f6b3a135a6ea1e05dc6c67ec1fd9e (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
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-misc/kleansweep/kleansweep-0.2.8.ebuild,v 1.1 2006/09/20 22:39:35 troll Exp $

inherit kde python

IUSE="imagemagick"

DESCRIPTION="KleanSweep allows you to reclaim disk space by finding unneeded files"
HOMEPAGE="http://linux.bydg.org/~yogin/"
SRC_URI="http://linux.bydg.org/~yogin/${P}.tar.bz2"

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

RDEPEND="dev-lang/perl
	imagemagick? ( media-gfx/imagemagick )"
DEPEND="${RDEPEND}
	>=dev-lang/python-2.2.3
	dev-util/scons"

need-kde 3.3

src_compile() {
	local myconf="prefix=`kde-config --prefix`"

	use debug && myconf="${myconf} debug=full"

	scons configure \
		${myconf} || die "configure failed"
	scons || die "compile failed"
}

src_install() {
	DESTDIR="${D}" scons install || die "install failed"

	dodoc AUTHORS ChangeLog INSTALL NEWS README THANKS TODO
}