Lines 1-6
Link Here
|
1 |
# Copyright 1999-2012 Gentoo Foundation |
1 |
# Copyright 1999-2012 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/mpd-0.16.5.ebuild,v 1.10 2012/05/05 08:39:48 mgorny Exp $ |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/mpd/mpd-0.16.5.ebuild,v 1.9 2012/04/25 07:04:22 angelos Exp $ |
4 |
|
4 |
|
5 |
EAPI=4 |
5 |
EAPI=4 |
6 |
inherit eutils flag-o-matic linux-info multilib |
6 |
inherit eutils flag-o-matic linux-info multilib |
Lines 11-17
Link Here
|
11 |
|
11 |
|
12 |
LICENSE="GPL-2" |
12 |
LICENSE="GPL-2" |
13 |
SLOT="0" |
13 |
SLOT="0" |
14 |
KEYWORDS="amd64 arm hppa ppc ppc64 sh sparc x86 ~x86-fbsd" |
14 |
KEYWORDS="amd64 arm hppa ppc ppc64 sh sparc ~x64-macos x86 ~x86-fbsd" |
15 |
IUSE="aac +alsa ao audiofile bzip2 cdio cue +curl debug +fifo +ffmpeg flac |
15 |
IUSE="aac +alsa ao audiofile bzip2 cdio cue +curl debug +fifo +ffmpeg flac |
16 |
fluidsynth profile +id3tag inotify ipv6 jack lame lastfmradio mms libsamplerate |
16 |
fluidsynth profile +id3tag inotify ipv6 jack lame lastfmradio mms libsamplerate |
17 |
+mad mikmod modplug mpg123 musepack +network ogg openal oss pipe pulseaudio sid |
17 |
+mad mikmod modplug mpg123 musepack +network ogg openal oss pipe pulseaudio sid |
Lines 62-74
Link Here
|
62 |
zeroconf? ( net-dns/avahi[dbus] ) |
62 |
zeroconf? ( net-dns/avahi[dbus] ) |
63 |
zip? ( dev-libs/zziplib )" |
63 |
zip? ( dev-libs/zziplib )" |
64 |
DEPEND="${RDEPEND} |
64 |
DEPEND="${RDEPEND} |
65 |
virtual/pkgconfig" |
65 |
dev-util/pkgconfig" |
66 |
|
66 |
|
67 |
pkg_setup() { |
67 |
pkg_setup() { |
68 |
use network || ewarn "Icecast and Shoutcast streaming needs networking." |
68 |
use network || ewarn "Icecast and Shoutcast streaming needs networking." |
69 |
use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream." |
69 |
use fluidsynth && ewarn "Using fluidsynth is discouraged by upstream." |
70 |
|
70 |
|
71 |
enewuser mpd "" "" "/var/lib/mpd" audio |
71 |
use prefix || enewuser mpd "" "" "/var/lib/mpd" audio |
72 |
|
72 |
|
73 |
if use inotify; then |
73 |
if use inotify; then |
74 |
CONFIG_CHECK="~INOTIFY_USER" |
74 |
CONFIG_CHECK="~INOTIFY_USER" |
Lines 160-169
Link Here
|
160 |
|
160 |
|
161 |
if use unicode; then |
161 |
if use unicode; then |
162 |
sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ |
162 |
sed -i -e 's:^#filesystem_charset.*$:filesystem_charset "UTF-8":' \ |
163 |
"${D}"/etc/mpd.conf || die "sed failed" |
163 |
"${ED}"/etc/mpd.conf || die "sed failed" |
164 |
fi |
164 |
fi |
165 |
|
165 |
|
166 |
diropts -m0755 -o mpd -g audio |
166 |
use prefix || diropts -m0755 -o mpd -g audio |
167 |
dodir /var/lib/mpd |
167 |
dodir /var/lib/mpd |
168 |
keepdir /var/lib/mpd |
168 |
keepdir /var/lib/mpd |
169 |
dodir /var/lib/mpd/music |
169 |
dodir /var/lib/mpd/music |
Lines 177-181
Link Here
|
177 |
elog "sure that MPD's pid_file is unset." |
177 |
elog "sure that MPD's pid_file is unset." |
178 |
|
178 |
|
179 |
# also change the homedir if the user has existed before |
179 |
# also change the homedir if the user has existed before |
180 |
usermod -d "/var/lib/mpd" mpd |
180 |
use prefix || usermod -d "/var/lib/mpd" mpd |
181 |
} |
181 |
} |