summaryrefslogtreecommitdiff
blob: a0d3f635ded3af0178fdb400271b7449102eb2a0 (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-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/karamba-bofh_bar/karamba-bofh_bar-0.01.ebuild,v 1.8 2004/06/24 23:01:14 agriffis Exp $

IUSE=""
DESCRIPTION="BOFH bar plugin for Karamba"
HOMEPAGE="http://www.kdelook.org/content/show.php?content=5892"
SRC_URI="http://www.kdelook.org/content/files/5892-bofh_bar.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="x86 ppc"

RDEPEND="|| ( >=x11-misc/karamba-0.17 >=x11-misc/superkaramba-0.21 )"

src_unpack () {
	unpack ${A}
	mv home/lynrd/bofhbar/bofh_bar ${P}
	rm -rf home
}

src_compile () {
	echo -n ""
}

src_install () {
	dodir /usr/share/karamba/bin /usr/share/karamba/themes/bofh_bar
	sed -e 's#~/bofh_bar/excuses#/usr/share/karamba/themes/bofh_bar/excuses#' \
		bofhserver.pl > ${D}/usr/share/karamba/bin/bofhserver.pl
	chmod 755 ${D}/usr/share/karamba/bin/bofhserver.pl
	sed -e 's#~/mails.pl#~/.karamba/mails.pl#' \
		-e 's#~/bofhserver.pl#bofhserver.pl#' \
		-e 's#/usr/bin/evolution#kmail#' \
		bofhbar.theme > ${D}/usr/share/karamba/themes/bofh_bar/bofh_bar.theme
	cp excuses ${D}/usr/share/karamba/themes/bofh_bar
	cp -r pics ${D}/usr/share/karamba/themes/bofh_bar
	chmod -R go=u,go-w ${D}/usr/share/karamba/themes/bofh_bar

	dodoc README COPYING COPYRIGHT mails.pl wishlist
}