blob: cd295622b3fa62da837d514a80f919554dfda647 (
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
|
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/gkrellm-bgchanger/gkrellm-bgchanger-0.0.4.ebuild,v 1.2 2003/02/13 17:23:10 vapier Exp $
IUSE="gtk gtk2"
MY_PN=gkrellmbgchg
MY_P=${MY_PN}-${PV}
MY_P2=${MY_PN}2-${PV}
S=${WORKDIR}/${MY_P}
S2=${WORKDIR}/${MY_P2}
DESCRIPTION="Plugin for GKrellM/GKrellM2 to change your desktop background"
HOMEPAGE="http://www.personal.uni-jena.de/~p6best/english/comp/gkrellmbgchg.html"
SRC_URI="http://www.personal.uni-jena.de/~p6best/comp/sources/${MY_P}.tar.gz
gtk2? http://www.personal.uni-jena.de/~p6best/comp/sources/${MY_P2}.tar.gz"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="~x86"
DEPEND="gtk2? ( =app-admin/gkrellm-2* )
gtk? ( =app-admin/gkrellm-1.2* )"
src_unpack() {
if [ -f /usr/bin/gkrellm ]
then
unpack ${MY_P}.tar.gz
fi
if [ -f /usr/bin/gkrellm2 ]
then
unpack ${MY_P2}.tar.gz
fi
}
src_compile() {
if [ -f /usr/bin/gkrellm ]
then
cd ${S}
emake || die
fi
if [ -f /usr/bin/gkrellm2 ]
then
cd ${S2}
emake || die
fi
}
src_install() {
if [ -f /usr/bin/gkrellm ]
then
cd ${S}
insinto /usr/lib/gkrellm/plugins
doins ${MY_PN}.so
docinto gkrellm1
dodoc README TODO
fi
if [ -f /usr/bin/gkrellm2 ]
then
cd ${S2}
insinto /usr/lib/gkrellm2/plugins
doins ${MY_PN}.so
docinto gkrellm2
dodoc ChangeLog README TODO
fi
}
|