diff options
author | Julian Ospald <hasufell@gentoo.org> | 2013-03-02 02:44:50 +0000 |
---|---|---|
committer | Julian Ospald <hasufell@gentoo.org> | 2013-03-02 02:44:50 +0000 |
commit | 8d6ca4653c67dfe2d49ab1025d726f3782ab8229 (patch) | |
tree | 389c2a8cf3c1a67d22f346b9610276200d49eb1d /media-sound | |
parent | Version bump. (diff) | |
download | gentoo-2-8d6ca4653c67dfe2d49ab1025d726f3782ab8229.tar.gz gentoo-2-8d6ca4653c67dfe2d49ab1025d726f3782ab8229.tar.bz2 gentoo-2-8d6ca4653c67dfe2d49ab1025d726f3782ab8229.zip |
version bump
(Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
Diffstat (limited to 'media-sound')
-rw-r--r-- | media-sound/gmusicbrowser/ChangeLog | 10 | ||||
-rw-r--r-- | media-sound/gmusicbrowser/files/gmusicbrowser-1.1.10-linguas.patch | 42 | ||||
-rw-r--r-- | media-sound/gmusicbrowser/gmusicbrowser-1.1.10.ebuild | 83 |
3 files changed, 133 insertions, 2 deletions
diff --git a/media-sound/gmusicbrowser/ChangeLog b/media-sound/gmusicbrowser/ChangeLog index f8900eb164fd..7c4ca38654a4 100644 --- a/media-sound/gmusicbrowser/ChangeLog +++ b/media-sound/gmusicbrowser/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-sound/gmusicbrowser -# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-sound/gmusicbrowser/ChangeLog,v 1.19 2012/12/02 16:58:38 eva Exp $ +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/gmusicbrowser/ChangeLog,v 1.20 2013/03/02 02:44:49 hasufell Exp $ + +*gmusicbrowser-1.1.10 (02 Mar 2013) + + 02 Mar 2013; Julian Ospald <hasufell@gentoo.org> + +gmusicbrowser-1.1.10.ebuild, +files/gmusicbrowser-1.1.10-linguas.patch: + version bump 02 Dec 2012; Gilles Dartiguelongue <eva@gentoo.org> gmusicbrowser-1.1.8.ebuild, gmusicbrowser-1.1.9.ebuild, diff --git a/media-sound/gmusicbrowser/files/gmusicbrowser-1.1.10-linguas.patch b/media-sound/gmusicbrowser/files/gmusicbrowser-1.1.10-linguas.patch new file mode 100644 index 000000000000..df216a357c0f --- /dev/null +++ b/media-sound/gmusicbrowser/files/gmusicbrowser-1.1.10-linguas.patch @@ -0,0 +1,42 @@ +https://github.com/squentin/gmusicbrowser/pull/51 + +--- gmusicbrowser-1.1.10/Makefile ++++ gmusicbrowser-1.1.10/Makefile +@@ -15,7 +15,14 @@ + miconsdir = $(iconsdir)/mini + + DOCS=AUTHORS COPYING README NEWS INSTALL layout_doc.html +-LINGUAS=$(shell for l in po/*po; do basename $$l .po; done) ++ ++# this triggers correct gettext behavior ++# unset LINGUAS => installs all supported linguas ++# LINGUAS="" => installs none ++# LINGUAS="fr ru" => installs only fr and ru ++SUPPORTED_LINGUAS=$(shell for l in po/*po; do basename $$l .po; done) ++LCMD := if [ -n "$${LINGUAS+x}" ] ; then for f in $(SUPPORTED_LINGUAS) ; do case "$(LINGUAS)" in *$$f*) printf "$$f " ;; esac ; done ; else printf "$(SUPPORTED_LINGUAS)" ; fi ++ACTIVE_LINGUAS = $(shell $(LCMD)) + + all: locale + clean: +@@ -33,10 +40,10 @@ + mkdir -p locale/$*/LC_MESSAGES/ + msgfmt --statistics -c -o $@ $< + +-locale: $(foreach l,$(LINGUAS),locale/$l/LC_MESSAGES/gmusicbrowser.mo) ++locale: $(foreach l,$(ACTIVE_LINGUAS),locale/$l/LC_MESSAGES/gmusicbrowser.mo) + + checkpo: +- for lang in $(LINGUAS) ; do msgfmt -c po/$$lang.po -o /dev/null || exit 1 ; done ++ for lang in $(ACTIVE_LINGUAS) ; do msgfmt -c po/$$lang.po -o /dev/null || exit 1 ; done + + install: all + mkdir -p "$(bindir)" +@@ -68,7 +75,7 @@ + install -pDm 644 pix/gmusicbrowser32x32.png "$(iconsdir)/gmusicbrowser.png" + install -pDm 644 pix/gmusicbrowser.png "$(liconsdir)/gmusicbrowser.png" + install -pDm 644 pix/trayicon.png "$(miconsdir)/gmusicbrowser.png" +- for lang in $(LINGUAS) ; \ ++ for lang in $(ACTIVE_LINGUAS) ; \ + do \ + install -pd "$(localedir)/$$lang/LC_MESSAGES/"; \ + install -pm 644 locale/$$lang/LC_MESSAGES/gmusicbrowser.mo "$(localedir)/$$lang/LC_MESSAGES/"; \ diff --git a/media-sound/gmusicbrowser/gmusicbrowser-1.1.10.ebuild b/media-sound/gmusicbrowser/gmusicbrowser-1.1.10.ebuild new file mode 100644 index 000000000000..25b5d0c62219 --- /dev/null +++ b/media-sound/gmusicbrowser/gmusicbrowser-1.1.10.ebuild @@ -0,0 +1,83 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-sound/gmusicbrowser/gmusicbrowser-1.1.10.ebuild,v 1.1 2013/03/02 02:44:49 hasufell Exp $ + +EAPI=5 + +inherit eutils fdo-mime gnome2-utils + +DESCRIPTION="An open-source jukebox for large collections of mp3/ogg/flac files" +HOMEPAGE="http://gmusicbrowser.org/" +SRC_URI="http://${PN}.org/download/${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="" + +GSTREAMER_DEPEND=" + dev-perl/GStreamer + dev-perl/GStreamer-Interfaces + media-plugins/gst-plugins-meta:0.10" +MPLAYER_DEPEND=" + || ( media-video/mplayer media-video/mplayer2 )" +OTHER_DEPEND=" + media-sound/alsa-utils + media-sound/flac123 + || ( media-sound/mpg123 media-sound/mpg321 ) + media-sound/vorbis-tools" + +RDEPEND="dev-lang/perl + dev-perl/gtk2-perl + virtual/perl-MIME-Base64 + || ( net-misc/wget dev-perl/AnyEvent-HTTP ) + || ( + ( ${GSTREAMER_DEPEND} ) + ( ${MPLAYER_DEPEND} ) + ( ${OTHER_DEPEND} ) + )" +DEPEND="sys-devel/gettext" + +src_prepare() { + epatch "${FILESDIR}"/${P}-linguas.patch +} + +src_install() { + emake \ + DOCS="AUTHORS NEWS README" \ + DESTDIR="${D}" \ + iconsdir="${D}/usr/share/icons/hicolor/32x32/apps" \ + liconsdir="${D}/usr/share/icons/hicolor/48x48/apps" \ + miconsdir="${D}/usr/share/pixmaps" \ + install + + dohtml layout_doc.html +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update + + elog "Gmusicbrowser supports gstreamer, mplayer and mpg123/ogg123..." + elog "for audio playback. Needed dependencies:" + elog "Gstreamer: ${GSTREAMER_DEPEND}" + elog "mplayer: ${MPLAYER_DEPEND}" + elog "mpg123/ogg123...: ${OTHER_DEPEND}" + elog + elog "This ebuild just ensures at least one implementation is installed!" + elog + elog "other optional dependencies:" + elog " dev-perl/Net-DBus (for dbus support and mpris1/2 plugins)" + elog " dev-perl/Gtk2-WebKit (for Web context plugin)" + elog " dev-perl/Gtk2-Notify (for Notify plugin)" + elog " dev-perl/gnome2-wnck (for Titlebar plugin)" +} + +pkg_postrm() { + fdo-mime_desktop_database_update + gnome2_icon_cache_update +} |