| 1 |
hasufell |
1.1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
|
|
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
hasufell |
1.2 |
# $Header: /var/cvsroot/gentoo-x86/media-sound/gmusicbrowser/gmusicbrowser-1.1.9.1_pre20120526.ebuild,v 1.1 2012/05/29 01:22:31 hasufell Exp $
|
| 4 |
hasufell |
1.1 |
|
| 5 |
hasufell |
1.2 |
EAPI=4
|
| 6 |
hasufell |
1.1 |
|
| 7 |
|
|
inherit fdo-mime vcs-snapshot
|
| 8 |
|
|
|
| 9 |
|
|
DESCRIPTION="An open-source jukebox for large collections of mp3/ogg/flac files"
|
| 10 |
|
|
HOMEPAGE="http://gmusicbrowser.org/"
|
| 11 |
|
|
SRC_URI="https://github.com/squentin/${PN}/tarball/3293bcbf09dce933b991a98cd5bfc333477e42a8
|
| 12 |
|
|
-> ${P}.tar.gz"
|
| 13 |
|
|
|
| 14 |
|
|
LICENSE="GPL-3"
|
| 15 |
|
|
SLOT="0"
|
| 16 |
|
|
KEYWORDS="~amd64 ~x86"
|
| 17 |
hasufell |
1.2 |
IUSE=""
|
| 18 |
|
|
|
| 19 |
|
|
GSTREAMER_DEPEND="
|
| 20 |
|
|
dev-perl/GStreamer
|
| 21 |
|
|
dev-perl/GStreamer-Interfaces
|
| 22 |
|
|
media-plugins/gst-plugins-meta"
|
| 23 |
|
|
MPLAYER_DEPEND="
|
| 24 |
|
|
|| ( media-video/mplayer media-video/mplayer2 )"
|
| 25 |
|
|
OTHER_DEPEND="
|
| 26 |
|
|
media-sound/alsa-utils
|
| 27 |
|
|
media-sound/flac123
|
| 28 |
|
|
|| ( media-sound/mpg123 media-sound/mpg321 )
|
| 29 |
|
|
media-sound/vorbis-tools"
|
| 30 |
hasufell |
1.1 |
|
| 31 |
|
|
RDEPEND="dev-lang/perl
|
| 32 |
|
|
dev-perl/gtk2-perl
|
| 33 |
|
|
virtual/perl-MIME-Base64
|
| 34 |
hasufell |
1.2 |
|| ( net-misc/wget dev-perl/AnyEvent-HTTP )
|
| 35 |
|
|
|| (
|
| 36 |
|
|
( ${GSTREAMER_DEPEND} )
|
| 37 |
|
|
( ${MPLAYER_DEPEND} )
|
| 38 |
|
|
( ${OTHER_DEPEND} )
|
| 39 |
|
|
)"
|
| 40 |
hasufell |
1.1 |
DEPEND="sys-devel/gettext"
|
| 41 |
|
|
|
| 42 |
|
|
LANGS="cs de es fr hu it ko nl pl pt pt_BR ru sv zh_CN"
|
| 43 |
|
|
for l in ${LANGS}; do
|
| 44 |
|
|
IUSE="$IUSE linguas_${l}"
|
| 45 |
|
|
done
|
| 46 |
|
|
unset l
|
| 47 |
|
|
|
| 48 |
|
|
src_prepare() {
|
| 49 |
|
|
sed -i -e '/menudir/d' Makefile || die
|
| 50 |
|
|
}
|
| 51 |
|
|
|
| 52 |
|
|
src_install() {
|
| 53 |
|
|
local LINGUAS
|
| 54 |
|
|
local l
|
| 55 |
|
|
for l in ${LANGS}; do
|
| 56 |
|
|
if use linguas_${l}; then
|
| 57 |
|
|
LINGUAS="${LINGUAS} ${l}"
|
| 58 |
|
|
fi
|
| 59 |
|
|
done
|
| 60 |
|
|
|
| 61 |
|
|
emake \
|
| 62 |
|
|
DOCS="AUTHORS NEWS README" \
|
| 63 |
|
|
DESTDIR="${D}" \
|
| 64 |
|
|
iconsdir="${D}/usr/share/pixmaps" \
|
| 65 |
|
|
LINGUAS="${LINGUAS}" \
|
| 66 |
|
|
VERSION="${PV}" \
|
| 67 |
|
|
install
|
| 68 |
|
|
|
| 69 |
|
|
dohtml layout_doc.html
|
| 70 |
|
|
}
|
| 71 |
|
|
|
| 72 |
|
|
pkg_postinst() {
|
| 73 |
|
|
fdo-mime_desktop_database_update
|
| 74 |
hasufell |
1.2 |
|
| 75 |
|
|
elog "Gmusicbrowser supports gstreamer, mplayer and mpg123/ogg123..."
|
| 76 |
|
|
elog "for audio playback. Needed dependencies:"
|
| 77 |
|
|
elog "Gstreamer: ${GSTREAMER_DEPEND}"
|
| 78 |
|
|
elog "mplayer: ${MPLAYER_DEPEND}"
|
| 79 |
|
|
elog "mpg123/ogg123...: ${OTHER_DEPEND}"
|
| 80 |
|
|
elog
|
| 81 |
|
|
elog "This ebuild just ensures at least one implementation is installed!"
|
| 82 |
|
|
elog
|
| 83 |
|
|
elog "other optional dependencies:"
|
| 84 |
|
|
elog " dev-perl/Net-DBus (for dbus support and mpris1/2 plugins)"
|
| 85 |
|
|
elog " dev-perl/Gtk2-WebKit (for Web context plugin)"
|
| 86 |
|
|
elog " dev-perl/Gtk2-Notify (for Notify plugin)"
|
| 87 |
|
|
elog " dev-perl/gnome2-wnck (for Titlebar plugin)"
|
| 88 |
hasufell |
1.1 |
}
|
| 89 |
|
|
|
| 90 |
|
|
pkg_postrm() {
|
| 91 |
|
|
fdo-mime_desktop_database_update
|
| 92 |
|
|
}
|