summaryrefslogtreecommitdiff
blob: da8a1735160c10228dc4ba8b534dffc2fa0243fe (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
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/kde-misc/kleansweep/kleansweep-0.2.9-r1.ebuild,v 1.1 2008/09/15 00:03:32 carlo Exp $

ARTS_REQUIRED="never"

inherit kde

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"

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

DEPEND="=dev-util/scons-0.97*
	>=dev-lang/python-2.3"
need-kde 3.5

PATCHES=( "${FILESDIR}/kleansweep-0.2.9-desktop-entry-fix.diff" )

src_compile() {
	[ -d "$QTDIR/etc/settings" ] && addwrite "$QTDIR/etc/settings"
	addpredict "$QTDIR/etc/settings"

	local myconf="kdeincludes=$(kde-config --prefix)/include prefix=/usr "
	use amd64 && myconf="${myconf} libsuffix=64"

	scons configure ${myconf} || die "configure failed"
	scons ${MAKEOPTS} || die "scons failed"
}

src_install() {
	DESTDIR="${D}" scons install || die "install failed"
	dodoc AUTHORS ChangeLog NEWS README THANKS TODO
}