# Copyright 1999-2015 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI=5
SLOT="5"

MY_PN="qt5"
MY_PV="$(echo $PV | sed -r 's/([0-9]).([0-9]).([0-9])/\1\2/g')"
MY_PV_MICRO="1"

SRC_URI="http://download.qt.io/online/qtsdkrepository/linux_x64/desktop/${MY_PN}_${MY_PV}_src_doc_examples/qt.${MY_PV}.doc/${PV}-${MY_PV_MICRO}${MY_PN}_docs.7z"

S="${WORKDIR}/Docs/Qt-${MY_PV}"

src_install() {
        dodir /usr/share/doc/qt-${PV}
        docompress -x /usr/share/doc
        rm -fr global || die "removing global docs failed"
        cp -R -t "${D}/usr/share/doc/qt-${PV}" * || die "copying docs failed"
}