Gentoo Archives: gentoo-commits

From: "Julian Ospald (hasufell)" <hasufell@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in media-sound/gmusicbrowser/files: gmusicbrowser-1.1.10-linguas.patch
Date: Sat, 02 Mar 2013 02:44:54
Message-Id: 20130302024450.311022171F@flycatcher.gentoo.org
1 hasufell 13/03/02 02:44:50
2
3 Added: gmusicbrowser-1.1.10-linguas.patch
4 Log:
5 version bump
6
7 (Portage version: 2.2.0_alpha163/cvs/Linux x86_64, signed Manifest commit with key E73C35B3)
8
9 Revision Changes Path
10 1.1 media-sound/gmusicbrowser/files/gmusicbrowser-1.1.10-linguas.patch
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/gmusicbrowser/files/gmusicbrowser-1.1.10-linguas.patch?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/media-sound/gmusicbrowser/files/gmusicbrowser-1.1.10-linguas.patch?rev=1.1&content-type=text/plain
14
15 Index: gmusicbrowser-1.1.10-linguas.patch
16 ===================================================================
17 https://github.com/squentin/gmusicbrowser/pull/51
18
19 --- gmusicbrowser-1.1.10/Makefile
20 +++ gmusicbrowser-1.1.10/Makefile
21 @@ -15,7 +15,14 @@
22 miconsdir = $(iconsdir)/mini
23
24 DOCS=AUTHORS COPYING README NEWS INSTALL layout_doc.html
25 -LINGUAS=$(shell for l in po/*po; do basename $$l .po; done)
26 +
27 +# this triggers correct gettext behavior
28 +# unset LINGUAS => installs all supported linguas
29 +# LINGUAS="" => installs none
30 +# LINGUAS="fr ru" => installs only fr and ru
31 +SUPPORTED_LINGUAS=$(shell for l in po/*po; do basename $$l .po; done)
32 +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
33 +ACTIVE_LINGUAS = $(shell $(LCMD))
34
35 all: locale
36 clean:
37 @@ -33,10 +40,10 @@
38 mkdir -p locale/$*/LC_MESSAGES/
39 msgfmt --statistics -c -o $@ $<
40
41 -locale: $(foreach l,$(LINGUAS),locale/$l/LC_MESSAGES/gmusicbrowser.mo)
42 +locale: $(foreach l,$(ACTIVE_LINGUAS),locale/$l/LC_MESSAGES/gmusicbrowser.mo)
43
44 checkpo:
45 - for lang in $(LINGUAS) ; do msgfmt -c po/$$lang.po -o /dev/null || exit 1 ; done
46 + for lang in $(ACTIVE_LINGUAS) ; do msgfmt -c po/$$lang.po -o /dev/null || exit 1 ; done
47
48 install: all
49 mkdir -p "$(bindir)"
50 @@ -68,7 +75,7 @@
51 install -pDm 644 pix/gmusicbrowser32x32.png "$(iconsdir)/gmusicbrowser.png"
52 install -pDm 644 pix/gmusicbrowser.png "$(liconsdir)/gmusicbrowser.png"
53 install -pDm 644 pix/trayicon.png "$(miconsdir)/gmusicbrowser.png"
54 - for lang in $(LINGUAS) ; \
55 + for lang in $(ACTIVE_LINGUAS) ; \
56 do \
57 install -pd "$(localedir)/$$lang/LC_MESSAGES/"; \
58 install -pm 644 locale/$$lang/LC_MESSAGES/gmusicbrowser.mo "$(localedir)/$$lang/LC_MESSAGES/"; \