summaryrefslogtreecommitdiff
blob: 39b896df907fb8f09efaffb065a41a132ab36971 (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
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/xmms-wmdiscotux/xmms-wmdiscotux-1.3.ebuild,v 1.8 2005/05/01 17:24:10 hansmi Exp $

inherit eutils

IUSE=""

MY_P=${P/xmms-}
S=${WORKDIR}/${MY_P}
DESCRIPTION="XMMS visualization plugin of a dockable, headbanging Tux."
HOMEPAGE="http://fragment.stc.cx/?page=wmdiscotux"
SRC_URI="http://fragment.stc.cx/files/${MY_P}.tar.gz"

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

DEPEND="media-sound/xmms"

src_unpack() {
	unpack ${A} || die
	cd ${S} || die
	# patch fixes the Makefile for portage
	epatch ${FILESDIR}/${P}-makefile.patch
	# patch fixes strange escaping in wmdiscotux.c
	epatch ${FILESDIR}/${P}-gcc-3.3.patch
}

src_compile() {
	emake OPT="$CFLAGS" || die
}

src_install() {
	make DESTDIR=${D} install || die
	dodoc README COPYING
}