| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/ncmpc/ncmpc-0.20.ebuild,v 1.8 2012/07/02 15:46:11 angelos Exp $
|
| 4 |
|
| 5 |
EAPI=4
|
| 6 |
inherit multilib
|
| 7 |
|
| 8 |
DESCRIPTION="A ncurses client for the Music Player Daemon (MPD)"
|
| 9 |
HOMEPAGE="http://mpd.wikia.com/wiki/Client:Ncmpc"
|
| 10 |
SRC_URI="http://downloads.sourceforge.net/musicpd/${P}.tar.bz2"
|
| 11 |
|
| 12 |
LICENSE="GPL-2"
|
| 13 |
SLOT="0"
|
| 14 |
KEYWORDS="amd64 hppa ppc ppc64 sparc x86"
|
| 15 |
IUSE="artist-screen colors debug +help-screen key-screen lirc lyrics-screen mouse nls search-screen song-screen"
|
| 16 |
|
| 17 |
RDEPEND=">=dev-libs/glib-2.12:2
|
| 18 |
>=media-libs/libmpdclient-2.2
|
| 19 |
sys-libs/ncurses
|
| 20 |
lirc? ( app-misc/lirc )
|
| 21 |
nls? ( sys-libs/ncurses[unicode] )"
|
| 22 |
DEPEND="${RDEPEND}
|
| 23 |
virtual/pkgconfig"
|
| 24 |
|
| 25 |
DOCS=( AUTHORS NEWS README doc/config.sample doc/keys.sample )
|
| 26 |
|
| 27 |
src_configure() {
|
| 28 |
# upstream lirc doesn't have pkg-config file wrt #250015
|
| 29 |
if use lirc; then
|
| 30 |
export LIBLIRCCLIENT_CFLAGS="-I/usr/include/lirc"
|
| 31 |
export LIBLIRCCLIENT_LIBS="-llirc_client"
|
| 32 |
fi
|
| 33 |
|
| 34 |
# use_with lyrics-screen is for multilib
|
| 35 |
econf \
|
| 36 |
--docdir=/usr/share/doc/${PF} \
|
| 37 |
$(use_enable nls multibyte) \
|
| 38 |
$(use_enable nls locale) \
|
| 39 |
$(use_enable nls) \
|
| 40 |
$(use_enable colors) \
|
| 41 |
$(use_enable lirc) \
|
| 42 |
$(use_enable help-screen) \
|
| 43 |
$(use_enable mouse) \
|
| 44 |
$(use_enable artist-screen) \
|
| 45 |
$(use_enable search-screen) \
|
| 46 |
$(use_enable song-screen) \
|
| 47 |
$(use_enable key-screen) \
|
| 48 |
$(use_enable lyrics-screen) \
|
| 49 |
$(use_enable debug) \
|
| 50 |
$(use_with lyrics-screen lyrics-plugin-dir /usr/$(get_libdir)/ncmpc/lyrics)
|
| 51 |
}
|