blob: 503c189de36f56f62527b6ee19ba82552884d2b0 (
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
|
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-plugins/xmms-shell/xmms-shell-0.99.3-r3.ebuild,v 1.7 2004/10/04 23:13:31 pvdabeel Exp $
IUSE="readline"
inherit eutils
DESCRIPTION="simple utility to control XMMS externally"
SRC_URI="mirror://sourceforge/xmms-shell/${P}.tar.gz"
RESTRICT="nomirror"
HOMEPAGE="http://www.loganh.com/xmms-shell/"
SLOT="0"
LICENSE="GPL-2"
KEYWORDS="x86 amd64 sparc ppc"
RDEPEND=">=media-sound/xmms-1.2.7
readline? ( >=sys-libs/readline-4.1 )"
DEPEND="${RDEPEND}
sys-apps/sed
sys-devel/automake
sys-devel/autoconf"
src_unpack() {
unpack ${A}
cd ${S}
# Fix configure.in to detect readline
epatch ${FILESDIR}/${PN}-readline.patch
# Fix null pointer when default skin
epatch ${FILESDIR}/${PN}-null-skin.patch
# Remove unnecessary playlist exception
epatch ${FILESDIR}/${PN}-playlist.patch
WANT_AUTOCONF=2.1
WANT_AUTOMAKE=1.4
aclocal
automake --gnu --include-deps Makefile
autoconf
# Fix compilation in gcc3.3
sed -i.orig ${S}/src/getline.cc -e 's/<string>/<string.h>/'
}
src_compile() {
econf `use_with readline` || die "Configuration failed."
emake || die "Make failed."
}
src_install() {
make DESTDIR=${D} install || die "Install failed."
dodoc AUTHORS ChangeLog INSTALL README
}
|