blob: e08c2c88db5f240ba344fe0c00fdf42fe2daa073 (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/waif/waif-0.59.7.ebuild,v 1.15 2005/05/28 17:37:23 luckyduck Exp $
inherit eutils
S=${WORKDIR}/${PN}
S2=${WORKDIR}/wfxmms
DESCRIPTION="Why Another Infernal Frontend -- console front end for various media-players"
HOMEPAGE="http://eds.org/~straycat/waif.html"
SRC_URI="http://www.eds.org/~straycat/${P}.tar.gz
xmms? ( http://www.eds.org/~straycat/wfxmms-0.6.tgz )"
LICENSE="as-is"
SLOT="0"
KEYWORDS="~ppc x86 sparc amd64"
IUSE="xmms ogg"
DEPEND="dev-lang/tcl
dev-tcltk/expect"
RDEPEND="dev-tcltk/expect
virtual/mpg123
media-sound/takcd
media-sound/aumix
media-libs/id3lib
media-sound/id3v2
media-sound/id3ed
xmms? ( media-sound/xmms )
ogg? ( media-sound/vorbis-tools )"
src_compile() {
cd Waif
./mkindex.sh || die
if use xmms
then
cd ${S2}
make || die
fi
}
src_install() {
local tclv
tclv=$(grep TCL_VER /usr/include/tcl.h | sed 's:^.*"\(.*\)".*:\1:')
cd ${S}
insinto /usr/$(get_libdir)/tcl${tclv}/Waif
doins Waif/*
into /usr
dobin waif-helper waifsh
doman waifsh.1
dodoc CHANGES FAQ INSTALL README* TODO WHATSNEW
docinto Documentation
dodoc Documentation/*
if use xmms
then
cd ${S2}
into /usr
dobin wfxmms
docinto wfxmms
dodoc BUGS CHANGES README
fi
}
|