Gentoo Archives: gentoo-commits

From: Mart Raudsepp <leio@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: x11-libs/wxGTK/files/, x11-libs/wxGTK/
Date: Thu, 04 Jan 2018 17:19:00
Message-Id: 1515086290.ca64147aee7b81492dcf304a919938630672b0d5.leio@gentoo
1 commit: ca64147aee7b81492dcf304a919938630672b0d5
2 Author: Mart Raudsepp <leio <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jan 4 03:07:57 2018 +0000
4 Commit: Mart Raudsepp <leio <AT> gentoo <DOT> org>
5 CommitDate: Thu Jan 4 17:18:10 2018 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=ca64147a
7
8 x11-libs/wxGTK: fix translation installation and usage for SLOT=3.0-gtk3
9
10 Properly sed the .mo versioning and patch wxTranslations::AddStdCatalog
11 to use the slotted translation domain.
12
13 Closes: https://bugs.gentoo.org/618624
14 Package-Manager: Portage-2.3.19, Repoman-2.3.6
15
16 .../wxGTK/files/wxGTK-3.0-gtk3-translation-domain.patch | 13 +++++++++++++
17 x11-libs/wxGTK/wxGTK-3.0.3-r300.ebuild | 8 ++++++--
18 2 files changed, 19 insertions(+), 2 deletions(-)
19
20 diff --git a/x11-libs/wxGTK/files/wxGTK-3.0-gtk3-translation-domain.patch b/x11-libs/wxGTK/files/wxGTK-3.0-gtk3-translation-domain.patch
21 new file mode 100644
22 index 00000000000..3b449baedb4
23 --- /dev/null
24 +++ b/x11-libs/wxGTK/files/wxGTK-3.0-gtk3-translation-domain.patch
25 @@ -0,0 +1,13 @@
26 +Modify AddStdCatalog to use the versioned wxstd30-gtk3.mo.
27 +
28 +--- a/src/common/translation.cpp
29 ++++ b/src/common/translation.cpp
30 +@@ -1458,7 +1458,7 @@ wxArrayString wxTranslations::GetAvailableTranslations(const wxString& domain) c
31 +
32 + bool wxTranslations::AddStdCatalog()
33 + {
34 +- if ( !AddCatalog(wxS("wxstd")) )
35 ++ if ( !AddCatalog(wxS("wxstd30-gtk3")) )
36 + return false;
37 +
38 + // there may be a catalog with toolkit specific overrides, it is not
39
40 diff --git a/x11-libs/wxGTK/wxGTK-3.0.3-r300.ebuild b/x11-libs/wxGTK/wxGTK-3.0.3-r300.ebuild
41 index 6605d6d4ac8..0c69eb6d8c1 100644
42 --- a/x11-libs/wxGTK/wxGTK-3.0.3-r300.ebuild
43 +++ b/x11-libs/wxGTK/wxGTK-3.0.3-r300.ebuild
44 @@ -64,6 +64,10 @@ LICENSE="wxWinLL-3 GPL-2 doc? ( wxWinFDL-3 )"
45
46 S="${WORKDIR}/wxWidgets-${PV}"
47
48 +PATCHES=(
49 + "${FILESDIR}"/wxGTK-${SLOT}-translation-domain.patch
50 +)
51 +
52 src_prepare() {
53 default
54
55 @@ -73,8 +77,8 @@ src_prepare() {
56 -e "s:\(WX_RELEASE_NODOT = \).*:\1${WXRELEASE_NODOT}:"\
57 -e "s:\(WX_VERSION = \).*:\1${WXVERSION}:"\
58 -e "s:aclocal):aclocal/wxwin${WXRELEASE_NODOT}.m4):" \
59 - -e "s:wxstd.mo:wxstd${WXRELEASE_NODOT}:" \
60 - -e "s:wxmsw.mo:wxmsw${WXRELEASE_NODOT}:" \
61 + -e "s:wxstd.mo:wxstd${WXRELEASE_NODOT}.mo:" \
62 + -e "s:wxmsw.mo:wxmsw${WXRELEASE_NODOT}.mo:" \
63 Makefile.in || die
64
65 sed -i \