# Copyright 1999-2017 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=6 PYTHON_COMPAT=( python{3_4,3_5,3_6} ) PLOCALES="de fr pt" if [[ ${PV} = 9999 ]]; then EBZR_REPO_URI="lp:qarte" inherit bzr KEYWORDS="" SRC_URI="" DEPEND="sys-devel/gettext" else KEYWORDS="~amd64 ~x86" SRC_URI="https://www.oqapy.eu/releases/${P}.tar.gz" DEPEND="" fi inherit desktop l10n python-r1 DESCRIPTION="Qarte is a recorder for Arte+7 and Arte Live Web" HOMEPAGE="https://launchpad.net/qarte" LICENSE="GPL-3" SLOT="0" IUSE="" RDEPEND="${DEPEND} ${PYTHON_DEPS} dev-python/notify-python dev-python/PyQt5 dev-python/sip >=media-video/rtmpdump-2.3" src_prepare() { default if [[ ${PV} = 9999 ]]; then l10n_find_plocales_changes "${S}/i18n" "" ".po" else l10n_find_plocales_changes "${S}/locale" "" "" fi } src_install() { insinto "/usr/share/${PN}" doins *.py doins -r gui medias doman qarte.1 doicon qarte.png domenu q_arte.desktop exeinto /usr/bin/ doexe qarte local MOPREFIX=${PN} install_locale() { if [[ ${PV} = 9999 ]]; then msguniq --use-first i18n/${1}.po > i18n/${1}-uniq.po msgfmt -c -o i18n/${1}.mo i18n/${1}-uniq.po domo i18n/${1}.mo else local modir="locale/${1}/LC_MESSAGES" cp "${modir}/${PN}.mo" "${modir}/${1}.mo" domo "${modir}/${1}.mo" fi } l10n_for_each_locale_do install_locale }