blob: e25c25eb06280540d7e7affecafeeb6d5c20d180 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
MY_PV=${PV^^}
MY_PV=${MY_PV/_/-}
inherit eutils qmake-utils
DESCRIPTION="Feature-rich dictionary lookup program"
HOMEPAGE="http://goldendict.org/"
SRC_URI="https://github.com/${PN}/${PN}/archive/${MY_PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 x86"
IUSE="debug ffmpeg libav"
RDEPEND="
app-arch/bzip2
>=app-text/hunspell-1.2:=
dev-libs/eb
dev-libs/lzo
dev-qt/qtcore:5
dev-qt/qtgui:5
dev-qt/qthelp:5
dev-qt/qtnetwork:5
dev-qt/qtprintsupport:5
dev-qt/qtsingleapplication[qt5(+)]
dev-qt/qtsvg:5
dev-qt/qtwebkit:5
dev-qt/qtwidgets:5
dev-qt/qtx11extras:5
dev-qt/qtxml:5
media-libs/libvorbis
media-libs/tiff:0
sys-libs/zlib
x11-libs/libX11
x11-libs/libXtst
ffmpeg? (
media-libs/libao
libav? ( media-video/libav:0= )
!libav? ( media-video/ffmpeg:0= )
)
"
DEPEND="${RDEPEND}
dev-qt/linguist-tools:5
virtual/pkgconfig
"
PATCHES=(
"${FILESDIR}/${PN}-1.5.0-qtsingleapplication-unbundle.patch"
"${FILESDIR}/${PN}-1.5.0-qt-5.11.patch"
)
S="${WORKDIR}/${PN}-${MY_PV}"
src_prepare() {
default
# disable git
sed -i \
-e '/git describe/s/^/#/' \
${PN}.pro || die
# fix installation path
sed -i \
-e '/PREFIX = /s:/usr/local:/usr:' \
${PN}.pro || die
# add trailing semicolon
sed -i -e '/^Categories/s/$/;/' redist/${PN}.desktop || die
}
src_configure() {
local myconf=()
if ! use ffmpeg ; then
myconf+=( DISABLE_INTERNAL_PLAYER=1 )
fi
eqmake5 "${myconf[@]}"
}
src_install() {
dobin ${PN}
domenu redist/${PN}.desktop
doicon redist/icons/${PN}.png
insinto /usr/share/apps/${PN}/locale
doins locale/*.qm
insinto /usr/share/${PN}/help
doins help/*.qch
}
|