summaryrefslogtreecommitdiff
blob: cd3a238f01103f673a491f6f7bf7c80e829b9ae7 (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
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/gkrellsun/gkrellsun-0.9.1.ebuild,v 1.6 2004/02/23 09:44:40 mr_bones_ Exp $

DESCRIPTION="A GKrellM plugin that shows sunrise and sunset times."
HOMEPAGE="http://gkrellsun.sourceforge.net/"
SRC_URI="mirror://sourceforge/gkrellsun/${P}.tar.gz"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc sparc alpha ~hppa ~amd64 ~ia64"

DEPEND="app-admin/gkrellm
	>=media-libs/imlib-1.9.10-r1"

src_compile() {
	if [ -f ${ROOT}/usr/bin/gkrellm ]
	then
		cd ${S}/src
		emake || die
	fi

	if [ -f ${ROOT}/usr/bin/gkrellm2 ]
	then
		cd ${S}/src20
		emake || die
	fi
}

src_install () {
	dodoc README AUTHORS COPYING

	if [ -f ${ROOT}/usr/bin/gkrellm ]
	then
		cd ${S}/src
		insinto /usr/lib/gkrellm/plugins
		doins gkrellsun.so
	fi

	if [ -f ${ROOT}/usr/bin/gkrellm2 ]
	then
		cd ${S}/src20
		insinto /usr/lib/gkrellm2/plugins
		doins gkrellsun.so
	fi
}