summaryrefslogtreecommitdiff
blob: 8ebda34281fdb197f17cee14a4dc5a6c26aae764 (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-2003 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.7 2003/02/13 17:26:01 vapier 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
}