Copyright 1999-2005 Gentoo Foundation Distributed under the terms of t

  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
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $
# Nonofficial ebuild by dangertools
#
# Note about this ebuild :
# * No init-script anymore - xmms2 guys don't like initscripts
inherit eutils git
DESCRIPTION="X(cross)platform Music Multiplexing System. The new generation of
the XMMS player. This ebuild fetches the really latest development code of
xmms2."
HOMEPAGE="http://xmms2.xmms.org"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS=""
IUSE="mp3 vorbis sid python jack aac ruby musepack speex curl alsa flac modplug samba nophonehome mdns eq xspf ao mp4 diskwrite nofileread xml daap avcodec lastfm asx rss oss ecore cpp mms perl clientonly mlib-update cdda"
RESTRICT="nomirror"
DEPEND="!media-sound/xmms2
!clientonly? (
alsa? ( media-libs/alsa-lib )
xspf? ( dev-libs/libxml2 )
xml? ( dev-libs/libxml2 )
rss? ( dev-libs/libxml2 )
flac? ( media-libs/flac )
mp3? ( media-libs/libmad )
modplug? ( media-libs/libmodplug )
>=dev-db/sqlite-3.3.4
curl? ( >=net-misc/curl-7.15.1 )
vorbis? ( media-libs/libvorbis )
ao? ( media-libs/libao )
mp4? ( media-video/ffmpeg )
sid? ( media-sound/sidplay
media-libs/resid )
jack? ( >=media-sound/jack-audio-connection-kit-0.101.1 )
aac? ( >=media-libs/faad2-2.0 )
speex? ( media-libs/speex )
musepack? ( media-libs/libmpcdec )
samba? ( net-fs/samba )
mdns? ( net-dns/avahi )
mms? ( media-video/ffmpeg
>=media-libs/libmms-0.3 )
cdda? ( >=media-libs/libdiscid-0.1.1
dev-libs/libcdio ) )
>=dev-lang/python-2.4.3
>=dev-libs/glib-2.12.9
ecore? ( x11-libs/ecore )
python? ( >=dev-python/pyrex-0.9.5.1 )
ruby? ( >=dev-lang/ruby-1.8.5 )
cpp? ( >=dev-libs/boost-1.32
>=sys-devel/gcc-3.4 )
perl? ( >=dev-lang/perl-5.8.8 )
mlib-update? ( app-admin/gamin ) "
RDEPEND="${DEPEND}"
S=${WORKDIR}/xmms2-devel
src_unpack() {
EGIT_REPO_URI=git://git.xmms.se/xmms2/xmms2-devel
EGIT_PROJECT=xmms2-devel
git_src_unpack
}
src_compile() {
local exc=""
local excl_pls=""
local excl_opts=""
local options="--conf-prefix=/etc --prefix=/usr --destdir=${D}"
if use clientonly ; then
exc="--without-xmms2d=1 "
else
use nophonehome && excl_opts="${excl_opts},et"
use ecore || excl_opts="${excl_opts},xmmsclient-ecore"
use ruby || excl_opts="${excl_opts},ruby"
use python || excl_opts="${excl_opts},python"
use cpp || excl_opts="${excl_opts},xmmsclient++,xmmsclient++-glib"
use mdns || excl_opts="${excl_opts},avahi"
use alsa || excl_pls="${excl_pls},alsa"
use curl || excl_pls="${excl_pls},curl"
use aac || excl_pls="${excl_pls},faad"
use flac || excl_pls="${excl_pls},flac"
use vorbis || excl_pls="${excl_pls},ices"
use jack || excl_pls="${excl_pls},jack"
use mp3 || excl_pls="${excl_pls},mad"
use modplug || excl_pls="${excl_pls},modplug"
use musepack || excl_pls="${excl_pls},musepack"
use oss || excl_pls="${excl_pls},oss"
use samba || excl_pls="${excl_pls},samba"
use sid || excl_pls="${excl_pls},sid"
use speex || excl_pls="${excl_pls},speex"
use vorbis || excl_pls="${excl_pls},vorbis"
use mms || excl_pls="${excl_pls},mms"
use eq || excl_pls="${excl_pls},equalizer"
use xspf || excl_pls="${excl_pls},xspf"
use ao || excl_pls="${excl_pls},ao"
use mp4 || excl_pls="${excl_pls},mp4"
use diskwrite || excl_pls="${excl_pls},diskwrite"
use cdda || excl_pls="${excl_pls},cdda"
use nofileread && excl_pls="${excl_pls},file"
use xml || excl_pls="${excl_pls},xml"
use daap || excl_pls="${excl_pls},daap"
use avcodec || excl_pls="${excl_pls},avcodec"
use lastfm || excl_pls="${excl_pls},lastfm"
use asx || excl_pls="${excl_pls},asx"
use rss || excl_pls="${excl_pls},rss"
use mlib-update || excl_opts="${excl_opts},medialib-updater"
fi
if [ ${excl_pls} != "" ]
then
options="${options} --without-plugins=${excl_pls:1}"
fi
if [ ${excl_opts} != "" ]
then
options="${options} --without-optionals=${excl_opts:1}"
fi
${S}/waf ${options} configure || die "Configure failed"
${S}/waf build || die "Build failed"
}
src_install() {
${S}/waf --destdir=${D} install || die
dodoc AUTHORS COPYING TODO README
}
pkg_postinst() {
einfo "This version is built on experimental development code"
einfo "If you encounter any errors report them at http://bugs.xmms2.xmms.se"
einfo "and visit #xmms2 at irc://irc.freenode.net"
einfo "xmms2 is a user server, not a system wide daemon"
if ! use nophonehome ; then
einfo ""
einfo "The phone-home client xmms2-et was activated"
einfo "This client sends anonymous usage-statistics to the xmms2"
einfo "developers which may help finding bugs"
einfo "Disable the phonehome useflag if you don't like that"
fi
}