Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/qt:master commit in: app-text/goldendict/files/, app-text/goldendict/
Date: Fri, 28 Oct 2016 17:15:15
Message-Id: 1477674892.1ea676d637f96fbf715e19c30e3dc8b4deb5f474.kensington@gentoo
1 commit: 1ea676d637f96fbf715e19c30e3dc8b4deb5f474
2 Author: Michael Palimaka <kensington <AT> gentoo <DOT> org>
3 AuthorDate: Fri Oct 28 17:14:36 2016 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Fri Oct 28 17:14:52 2016 +0000
6 URL: https://gitweb.gentoo.org/proj/qt.git/commit/?id=1ea676d6
7
8 app-text/goldendict: switch to Qt 5
9
10 Based on work by Gleb.
11
12 Gentoo-bug: 574464
13
14 Package-Manager: portage-2.3.2
15
16 ...endict-9999-qtsingleapplication-unbundle.patch} | 14 ++---
17 app-text/goldendict/goldendict-9999.ebuild | 68 ++++++++++++----------
18 2 files changed, 44 insertions(+), 38 deletions(-)
19
20 diff --git a/app-text/goldendict/files/goldendict-36a761108-qtsingleapplication-unbundle.patch b/app-text/goldendict/files/goldendict-9999-qtsingleapplication-unbundle.patch
21 similarity index 55%
22 rename from app-text/goldendict/files/goldendict-36a761108-qtsingleapplication-unbundle.patch
23 rename to app-text/goldendict/files/goldendict-9999-qtsingleapplication-unbundle.patch
24 index 407b261..01fdb3b 100644
25 --- a/app-text/goldendict/files/goldendict-36a761108-qtsingleapplication-unbundle.patch
26 +++ b/app-text/goldendict/files/goldendict-9999-qtsingleapplication-unbundle.patch
27 @@ -1,16 +1,16 @@
28 ---- goldendict.pro.orig 2014-11-02 12:42:07.845942253 +0800
29 -+++ goldendict.pro 2014-11-02 12:44:22.965590774 +0800
30 -@@ -24,7 +24,8 @@
31 +--- a/goldendict.pro
32 ++++ b/goldendict.pro
33 +@@ -36,7 +36,8 @@
34 + QT += sql
35 CONFIG += exceptions \
36 rtti \
37 - stl \
38 -- help
39 -+ help \
40 +- stl
41 ++ stl \
42 + qtsingleapplication
43 OBJECTS_DIR = build
44 UI_DIR = build
45 MOC_DIR = build
46 -@@ -548,5 +549,3 @@
47 +@@ -632,5 +633,3 @@
48 TS_OUT ~= s/.ts/.qm/g
49 PRE_TARGETDEPS += $$TS_OUT
50
51
52 diff --git a/app-text/goldendict/goldendict-9999.ebuild b/app-text/goldendict/goldendict-9999.ebuild
53 index 94b2722..b52d986 100644
54 --- a/app-text/goldendict/goldendict-9999.ebuild
55 +++ b/app-text/goldendict/goldendict-9999.ebuild
56 @@ -2,10 +2,9 @@
57 # Distributed under the terms of the GNU General Public License v2
58 # $Id$
59
60 -EAPI=5
61 -LANGSLONG="ar_SA bg_BG cs_CZ de_DE el_GR lt_LT ru_RU zh_CN"
62 +EAPI=6
63
64 -inherit qt4-r2 git-r3
65 +inherit eutils git-r3 qmake-utils
66
67 DESCRIPTION="Feature-rich dictionary lookup program"
68 HOMEPAGE="http://goldendict.org/"
69 @@ -14,43 +13,40 @@ EGIT_REPO_URI="https://github.com/goldendict/goldendict.git"
70 LICENSE="GPL-3"
71 SLOT="0"
72 KEYWORDS=""
73 -IUSE="debug kde"
74 +IUSE="debug ffmpeg libav"
75
76 RDEPEND="
77 >=app-text/hunspell-1.2
78 dev-libs/eb
79 - dev-qt/qtcore:4[exceptions]
80 - dev-qt/qtgui:4[exceptions]
81 - dev-qt/qthelp:4[exceptions]
82 - dev-qt/qtsingleapplication[qt4]
83 - dev-qt/qtsvg:4[exceptions]
84 - dev-qt/qtwebkit:4[exceptions]
85 - media-libs/libao
86 + dev-qt/qtcore:5
87 + dev-qt/qtgui:5
88 + dev-qt/qthelp:5
89 + dev-qt/qtsingleapplication[qt5]
90 + dev-qt/qtsvg:5
91 + dev-qt/qtwebkit:5
92 + dev-qt/qtx11extras:5
93 + dev-qt/qtwidgets:5
94 media-libs/libogg
95 media-libs/libvorbis
96 sys-libs/zlib
97 x11-libs/libXtst
98 - !kde? ( || (
99 - >=dev-qt/qtphonon-4.5:4[exceptions]
100 - media-libs/phonon[qt4]
101 - ) )
102 - kde? ( media-libs/phonon[qt4] )
103 + ffmpeg? (
104 + media-libs/libao
105 + libav? ( media-video/libav:0= )
106 + !libav? ( media-video/ffmpeg:0= )
107 + )
108 "
109 DEPEND="${RDEPEND}
110 virtual/pkgconfig
111 "
112
113 -PATCHES=(
114 - "${FILESDIR}/${PN}-36a761108-qtsingleapplication-unbundle.patch"
115 -)
116 +PATCHES=( "${FILESDIR}/${P}-qtsingleapplication-unbundle.patch" )
117
118 src_prepare() {
119 - qt4-r2_src_prepare
120 + default
121
122 - # don't install duplicated stuff and fix installation path
123 + # fix installation path
124 sed -i \
125 - -e '/desktops2/d' \
126 - -e '/icons2/d' \
127 -e '/PREFIX = /s:/usr/local:/usr:' \
128 ${PN}.pro || die
129
130 @@ -58,14 +54,24 @@ src_prepare() {
131 sed -i -e '/^Categories/s/$/;/' redist/${PN}.desktop || die
132 }
133
134 +src_configure() {
135 + local myconf=()
136 +
137 + if ! use ffmpeg && ! use libav ; then
138 + myconf+=("DISABLE_INTERNAL_PLAYER=1")
139 + fi
140 +
141 + eqmake5 "${myconf[@]}"
142 +}
143 +
144 src_install() {
145 - qt4-r2_src_install
146 + dobin ${PN}
147 + domenu redist/${PN}.desktop
148 + doicon redist/icons/${PN}.png
149 +
150 + insinto /use/share/apps/${PN}/locale
151 + doins locale/*.qm
152
153 - # install translations
154 - insinto /usr/share/apps/${PN}/locale
155 - for lang in ${LANGSLONG}; do
156 - if use linguas_${lang%_*}; then
157 - doins locale/${lang}.qm
158 - fi
159 - done
160 + insinto /usr/share/${PN}/help
161 + doins help/*.qch
162 }