summaryrefslogtreecommitdiff
blob: b63d4ebb3febcba600d966d89328bf643e0fc625 (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
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/x11-plugins/gkrellscore/gkrellscore-0.0.2.ebuild,v 1.6 2002/12/09 04:41:57 manson Exp $

MY_P=${P/-/_}
S=${WORKDIR}/${P}
DESCRIPTION="A GKrellM plugin that shows scores for many leagues"
SRC_URI="http://ssl.usu.edu/paul/gkrellscore/${MY_P}.tar.gz"
HOMEPAGE="http://ssl.usu.edu/paul/gkrellscore"

SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 ppc sparc "

DEPEND="=app-admin/gkrellm-1.2*
	sys-apps/supersed
	>=media-libs/imlib-1.9.10-r1"

src_unpack() {
	unpack ${A}
	cd ${S}
	ssed -i "s:excite:yahoo:g" ${PN}.excite
	mv ${PN}.excite ${PN}.yahoo
	ssed -i \
		-e "s:excite:yahoo:g" \
		-e "s:Excite:Yahoo:g" \
		-e 's#\(g_strdup_printf ("http://%s/%s/\)#\1teams#' \
		-e "s:netscape:mozilla:g" \
		-e "s:\(gkrellscore.yahoo\):/usr/share/gkrellm/\1:" \
		${PN}.c
}

src_compile() {

	emake || die
}

src_install () {
	exeinto /usr/lib/gkrellm/plugins
	doexe gkrellscore.so
	exeinto /usr/share/gkrellm
	doexe ${PN}.yahoo
	dodoc README COPYING Changelog
}