blob: a70f6dd36e5a84e9f877d8b959183fd1725e7bca (
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
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/ncmpc/ncmpc-0.11.1-r2.ebuild,v 1.8 2007/10/09 14:44:58 angelos Exp $
inherit eutils autotools
DESCRIPTION="A ncurses client for the Music Player Daemon (MPD)"
HOMEPAGE="http://www.musicpd.org/?page=ncmpc"
SRC_URI="http://mercury.chem.pitt.edu/~shank/${P}.tar.gz mirror://sourceforge/musicpd/${P}.tar.gz"
LICENSE="GPL-2"
IUSE="clock-screen mouse search-screen key-screen raw-mode nls debug"
SLOT="0"
KEYWORDS="amd64 hppa ppc ~ppc64 sparc x86 ~x86-fbsd"
RDEPEND="sys-libs/ncurses
dev-libs/popt
>=dev-libs/glib-2.4"
DEPEND="${RDEPEND}
dev-util/pkgconfig"
pkg_setup() {
use search-screen && elog "Please note that the search-screen is experimental"
}
src_unpack() {
unpack "${A}"
cd "${S}"
if built_with_use sys-libs/ncurses unicode ; then
epatch "${FILESDIR}"/${PV}-widechars.patch
eautoreconf
fi
}
src_compile() {
econf $(use_enable clock-screen) \
$(use_enable debug) \
$(use_enable mouse) \
$(use_enable key-screen) \
$(use_enable search-screen) \
$(use_with nls) \
$(use_with raw-mode)
emake || die "make failed"
}
src_install() {
make install DESTDIR=${D} docdir=/usr/share/doc/${PF} \
|| die "install failed"
prepalldocs
}
|