Gentoo Archives: gentoo-commits

From: Michael Palimaka <kensington@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/goldendict/files/, app-text/goldendict/
Date: Sat, 26 Nov 2016 18:46:03
Message-Id: 1480185950.f76f3775cec41cc173da7815c77b344ba5c93299.kensington@gentoo
1 commit: f76f3775cec41cc173da7815c77b344ba5c93299
2 Author: Andreas Sturmlechner <andreas.sturmlechner <AT> gmail <DOT> com>
3 AuthorDate: Sun Nov 20 23:16:46 2016 +0000
4 Commit: Michael Palimaka <kensington <AT> gentoo <DOT> org>
5 CommitDate: Sat Nov 26 18:45:50 2016 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f76f3775
7
8 app-text/goldendict: Add 1.5.0_rc2 to have a Qt5 version
9
10 Ebuild taken from qt overlay.
11
12 Package-Manager: portage-2.3.0
13
14 app-text/goldendict/Manifest | 1 +
15 ...endict-1.5.0-qtsingleapplication-unbundle.patch | 18 +++++
16 app-text/goldendict/goldendict-1.5.0_rc2.ebuild | 87 ++++++++++++++++++++++
17 app-text/goldendict/metadata.xml | 2 +-
18 4 files changed, 107 insertions(+), 1 deletion(-)
19
20 diff --git a/app-text/goldendict/Manifest b/app-text/goldendict/Manifest
21 index 1a5b715..57ad4cc 100644
22 --- a/app-text/goldendict/Manifest
23 +++ b/app-text/goldendict/Manifest
24 @@ -1 +1,2 @@
25 DIST goldendict-1.0.1-src.tar.bz2 2705932 SHA256 b3fb0405a5edb38f02ef881b48c36e46e2eacf641b0caf8d99403f595a4be9a6 SHA512 6c35f804063e14ffc9fe9fbd86e710582c550d10fcabb83e7fb0f65ccad1e18eaa31578a96f0aea67276453239b8035f5a694c7d081f9a6f7a822d2b75ebce55 WHIRLPOOL f642692c5ac921d031e89a4512ac63eb665d5b3d02f2a4aea911566131188f877c173d4624eef073e3580e30d8291c1f0196d870738daf2be469783838305c4c
26 +DIST goldendict-1.5.0_rc2.tar.gz 19413751 SHA256 bccee0a3d3902f8fa31e439e220a405065fff774e5f8c581be2b0743d3f83fde SHA512 b88067a90df42b07d926231f624be8796f031b872443a45f9744ceeea27f39325bc665090f773528a26ad8391ae2423a29c602068bf2cc4ed5870a07646d2362 WHIRLPOOL f385a8536360b9401a67284d95be65d98d5f6b57d5af73852f5ec1af95c4ce36c9903e9ed04dbd67e7bf035b5b6745378344cc5efbb4923ce4ea31988f95f6ff
27
28 diff --git a/app-text/goldendict/files/goldendict-1.5.0-qtsingleapplication-unbundle.patch b/app-text/goldendict/files/goldendict-1.5.0-qtsingleapplication-unbundle.patch
29 new file mode 100644
30 index 00000000..01fdb3b
31 --- /dev/null
32 +++ b/app-text/goldendict/files/goldendict-1.5.0-qtsingleapplication-unbundle.patch
33 @@ -0,0 +1,18 @@
34 +--- a/goldendict.pro
35 ++++ b/goldendict.pro
36 +@@ -36,7 +36,8 @@
37 + QT += sql
38 + CONFIG += exceptions \
39 + rtti \
40 +- stl
41 ++ stl \
42 ++ qtsingleapplication
43 + OBJECTS_DIR = build
44 + UI_DIR = build
45 + MOC_DIR = build
46 +@@ -632,5 +633,3 @@
47 + TS_OUT ~= s/.ts/.qm/g
48 + PRE_TARGETDEPS += $$TS_OUT
49 +
50 +-include( qtsingleapplication/src/qtsingleapplication.pri )
51 +-
52
53 diff --git a/app-text/goldendict/goldendict-1.5.0_rc2.ebuild b/app-text/goldendict/goldendict-1.5.0_rc2.ebuild
54 new file mode 100644
55 index 00000000..fa47bf4
56 --- /dev/null
57 +++ b/app-text/goldendict/goldendict-1.5.0_rc2.ebuild
58 @@ -0,0 +1,87 @@
59 +# Copyright 1999-2016 Gentoo Foundation
60 +# Distributed under the terms of the GNU General Public License v2
61 +# $Id$
62 +
63 +EAPI=6
64 +
65 +MY_PV=${PV^^}
66 +MY_PV=${MY_PV/_/-}
67 +inherit eutils qmake-utils
68 +
69 +DESCRIPTION="Feature-rich dictionary lookup program"
70 +HOMEPAGE="http://goldendict.org/"
71 +SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
72 +
73 +LICENSE="GPL-3"
74 +SLOT="0"
75 +KEYWORDS="~amd64 ~x86"
76 +IUSE="debug ffmpeg libav"
77 +
78 +RDEPEND="
79 + app-arch/bzip2
80 + >=app-text/hunspell-1.2:=
81 + dev-libs/eb
82 + dev-libs/lzo
83 + dev-qt/qtcore:5
84 + dev-qt/qtgui:5
85 + dev-qt/qthelp:5
86 + dev-qt/qtnetwork:5
87 + dev-qt/qtprintsupport:5
88 + dev-qt/qtsingleapplication[qt5]
89 + dev-qt/qtsvg:5
90 + dev-qt/qtwebkit:5
91 + dev-qt/qtwidgets:5
92 + dev-qt/qtx11extras:5
93 + dev-qt/qtxml:5
94 + media-libs/libvorbis
95 + media-libs/tiff:0
96 + sys-libs/zlib
97 + x11-libs/libX11
98 + x11-libs/libXtst
99 + ffmpeg? (
100 + media-libs/libao
101 + libav? ( media-video/libav:0= )
102 + !libav? ( media-video/ffmpeg:0= )
103 + )
104 +"
105 +DEPEND="${RDEPEND}
106 + virtual/pkgconfig
107 +"
108 +
109 +PATCHES=( "${FILESDIR}/${PN}-1.5.0-qtsingleapplication-unbundle.patch" )
110 +
111 +S="${WORKDIR}/${PN}-${MY_PV}"
112 +
113 +src_prepare() {
114 + default
115 +
116 + # fix installation path
117 + sed -i \
118 + -e '/PREFIX = /s:/usr/local:/usr:' \
119 + ${PN}.pro || die
120 +
121 + # add trailing semicolon
122 + sed -i -e '/^Categories/s/$/;/' redist/${PN}.desktop || die
123 +}
124 +
125 +src_configure() {
126 + local myconf=()
127 +
128 + if ! use ffmpeg && ! use libav ; then
129 + myconf+=( DISABLE_INTERNAL_PLAYER=1 )
130 + fi
131 +
132 + eqmake5 "${myconf[@]}"
133 +}
134 +
135 +src_install() {
136 + dobin ${PN}
137 + domenu redist/${PN}.desktop
138 + doicon redist/icons/${PN}.png
139 +
140 + insinto /use/share/apps/${PN}/locale
141 + doins locale/*.qm
142 +
143 + insinto /usr/share/${PN}/help
144 + doins help/*.qch
145 +}
146
147 diff --git a/app-text/goldendict/metadata.xml b/app-text/goldendict/metadata.xml
148 index 0746d64..fce1000 100644
149 --- a/app-text/goldendict/metadata.xml
150 +++ b/app-text/goldendict/metadata.xml
151 @@ -14,6 +14,6 @@
152 <name>Proxy Maintainers</name>
153 </maintainer>
154 <upstream>
155 - <remote-id type="sourceforge">goldendict</remote-id>
156 + <remote-id type="github">goldendict/goldendict</remote-id>
157 </upstream>
158 </pkgmetadata>