forked from gentoo/gentoo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
qt-docs-5.9.4_p201801220610.ebuild
51 lines (39 loc) · 1.6 KB
/
qt-docs-5.9.4_p201801220610.ebuild
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
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit versionator
DESCRIPTION="Qt5 documentation, for use with Qt Creator and other tools"
HOMEPAGE="https://www.qt.io/"
PV_FULL=${PV/_p/-0-}
PV_NODOTS=$(get_version_component_range 1)$(get_version_component_range 2)$(get_version_component_range 3)
BASE_URI="https://download.qt.io/online/qtsdkrepository/linux_x64/desktop/qt5_${PV_NODOTS}_src_doc_examples/qt.${PV_NODOTS}.doc"
SRC_URI="${BASE_URI}/${PV_FULL}qt-everywhere-documentation.7z
charts? ( ${BASE_URI}.qtcharts/${PV_FULL}qtcharts-documentation.7z )
datavis? ( ${BASE_URI}.qtdatavis3d/${PV_FULL}qtdatavisualization-documentation.7z )
networkauth? ( ${BASE_URI}.qtnetworkauth/${PV_FULL}qtnetworkauth-documentation.7z )
script? ( ${BASE_URI}.qtscript/${PV_FULL}qtscript-documentation.7z
${BASE_URI}.qtscript/${PV_FULL}qtscripttools-documentation.7z )
speech? ( ${BASE_URI}.qtspeech/${PV_FULL}qtspeech-documentation.7z )
virtualkeyboard? ( ${BASE_URI}.qtvirtualkeyboard/${PV_FULL}qtvirtualkeyboard-documentation.7z )
webengine? ( ${BASE_URI}.qtwebengine/${PV_FULL}qtwebengine-documentation.7z )
"
LICENSE="FDL-1.3"
SLOT="5"
KEYWORDS="amd64 ~arm ~arm64 ~ppc ~ppc64 x86"
IUSE="charts datavis networkauth script speech virtualkeyboard webengine"
DEPEND="app-arch/p7zip"
S=${WORKDIR}/Docs/Qt-${PV%_p*}
src_prepare() {
default
# bug 597026
rm -r global || die
# bug 602750
rm Makefile || die
}
src_install() {
# intentionally not using ${PF}
local dest=/usr/share/doc/qt-${PV%_p*}
insinto "${dest}"
doins -r *
docompress -x "${dest}"
}