summaryrefslogtreecommitdiff
blob: cea5ca858fad55130ceef5c538a88857dbd60c23 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/karamba-kroller/karamba-kroller-0.94.ebuild,v 1.7 2005/05/05 18:54:42 iggy Exp $

IUSE=""
DESCRIPTION="Rolling menu plugin for Karamba"
HOMEPAGE="http://www.kde-look.org/content/show.php?content=5931"
SRC_URI="http://www.kde-look.org/content/files/5931-kroller-v${PV}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc ~amd64"

RDEPEND=">=x11-misc/superkaramba-0.32"

src_unpack () {
	unpack ${A}
	mv kroller-v${PV} ${P}
}

src_install () {
	dodir /usr/share/karamba/themes/kroller
	sed -e 's#import karamba#import karamba\nimport os#' \
		-e 's#"/your/path/to/kroller.conf#os.environ["HOME"] + "/.karamba/kroller.conf#' \
		kroller.py > ${D}/usr/share/karamba/themes/kroller/kroller.py
	cp kroller.theme ${D}/usr/share/karamba/themes/kroller
	cp -r icons ${D}/usr/share/karamba/themes/kroller
	chmod -R go=u,go-w ${D}/usr/share/karamba/themes/kroller

	dodoc README CHANGELOG INSTALL kroller.conf
}