blob: e94dfb218a87ba928e416a31cfb2f7f863bcb128 (
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
72
73
74
75
76
|
# Copyright 1999-2007 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/media-sound/herrie/herrie-1.6.1.ebuild,v 1.1 2007/04/21 17:17:18 rbu Exp $
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 ~x86"
IUSE="ao http modplug mp3 scrobbler sdl sndfile vorbis xspf unicode linguas_nl linguas_tr linguas_de linguas_pl"
DEPEND="sys-libs/ncurses
>=dev-libs/glib-2.0
ao? ( media-libs/libao )
http? ( net-misc/curl )
modplug? ( media-libs/libmodplug )
mp3? ( media-libs/libmad
media-libs/libid3tag )
scrobbler? ( net-misc/curl
dev-libs/openssl )
sdl? ( media-libs/libsdl )
sndfile? ( media-libs/libsndfile )
vorbis? ( media-libs/libvorbis )
xspf? ( >=media-libs/libspiff-0.6.5 )"
RDEPEND="${DEPEND}"
DEPEND="sys-devel/gettext
dev-util/pkgconfig"
pkg_setup() {
if use sdl && ! use ao ; then
ewarn "Please be aware that SDL support in Herrie is highly experimental. Use it at your own risk."
fi
if use sdl && use ao ; then
ewarn "You cannot use SDL and ao at the same time, using ao."
fi
if use unicode && ! built_with_use sys-libs/ncurses unicode; then
echo
eerror "Rebuild sys-libs/ncurses with USE=unicode if you need unicode in herrie."
die "Rebuild sys-libs/ncurses with USE=unicode if you need unicode in herrie."
fi
}
src_unpack() {
unpack "${A}"
cd "${S}"
epatch "${FILESDIR}/${PN}-1.5.1-chost.patch"
sed -i "47s:CFG_STRIP=-s:unset CFG_STRIP:" configure
}
src_compile() {
local EXTRA_CONF="verbose"
use ao && EXTRA_CONF="${EXTRA_CONF} ao"
use http || EXTRA_CONF="${EXTRA_CONF} no_http"
use mp3 || EXTRA_CONF="${EXTRA_CONF} no_mp3"
use modplug || EXTRA_CONF="${EXTRA_CONF} no_modplug"
use scrobbler || EXTRA_CONF="${EXTRA_CONF} no_scrobbler"
use sdl && ! use ao && EXTRA_CONF="${EXTRA_CONF} sdl"
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"
CC="$(tc-getCC)" PREFIX=/usr MANDIR=/usr/share/man ./configure ${EXTRA_CONF} || die "configure failed"
emake || die "make failed"
}
src_install() {
emake DESTDIR="${D}" install || die "make install failed"
dodoc README ChangeLog
mv ${D}/etc/herrie.conf{.sample,}
}
|