blob: b8c7d418ae9875354dccc6f97dc79a3792b14ed8 (
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
69
70
71
|
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/herrie/herrie-2.2.ebuild,v 1.7 2012/05/05 08:31:04 mgorny Exp $
EAPI=2
inherit eutils toolchain-funcs
DESCRIPTION="Herrie is a command line music player."
HOMEPAGE="http://herrie.info/"
SRC_URI="http://herrie.info/distfiles/${P}.tar.bz2"
LICENSE="BSD-2 GPL-2"
SLOT="0"
KEYWORDS="amd64 ppc sparc x86"
IUSE="ao alsa pulseaudio oss http modplug mp3 sndfile vorbis xspf unicode nls"
APP_LINGUAS="ca da de es fi ga nl pl pt_BR ru sv tr vi zh_CN"
for X in ${APP_LINGUAS}; do
IUSE="${IUSE} linguas_${X}"
done
RDEPEND="sys-libs/ncurses[unicode?]
>=dev-libs/glib-2:2
ao? ( media-libs/libao )
alsa? ( media-libs/alsa-lib )
http? ( net-misc/curl )
modplug? ( media-libs/libmodplug )
mp3? ( media-libs/libmad
media-libs/libid3tag )
pulseaudio? ( media-sound/pulseaudio )
sndfile? ( media-libs/libsndfile )
vorbis? ( media-libs/libvorbis )
xspf? ( >=media-libs/libxspf-1.2 )
!ao? ( !alsa? ( !pulseaudio? ( !oss? ( media-libs/alsa-lib ) ) ) )"
DEPEND="${RDEPEND}
nls? ( sys-devel/gettext )
virtual/pkgconfig"
src_prepare() {
epatch "${FILESDIR}"/${PN}-chost_issue.patch \
"${FILESDIR}"/${P}-libxspf.patch
}
src_configure() {
if ! use ao && ! use alsa && ! use pulseaudio && ! use oss; then
ewarn "No audio output selected (ao, alsa, pulseaudio, oss), defaulting to alsa."
fi
local EXTRA_CONF="verbose no_strip"
use ao && EXTRA_CONF="${EXTRA_CONF} ao"
use alsa && EXTRA_CONF="${EXTRA_CONF} alsa"
use http || EXTRA_CONF="${EXTRA_CONF} no_http no_scrobbler"
use mp3 || EXTRA_CONF="${EXTRA_CONF} no_mp3"
use modplug || EXTRA_CONF="${EXTRA_CONF} no_modplug"
use nls || EXTRA_CONF="${EXTRA_CONF} no_nls"
use oss && EXTRA_CONF="${EXTRA_CONF} oss"
use pulseaudio && EXTRA_CONF="${EXTRA_CONF} pulse"
use sndfile || EXTRA_CONF="${EXTRA_CONF} no_sndfile"
use unicode || EXTRA_CONF="${EXTRA_CONF} ncurses"
use vorbis || EXTRA_CONF="${EXTRA_CONF} no_vorbis"
use xspf || EXTRA_CONF="${EXTRA_CONF} no_xspf"
einfo "./configure ${EXTRA_CONF}"
CC="$(tc-getCC)" PREFIX=/usr MANDIR=/usr/share/man \
./configure ${EXTRA_CONF} || die "configure failed"
}
src_install() {
emake DESTDIR="${D}" install || die "emake install failed"
dodoc ChangeLog README
}
|