1 # Copyright 1999-2019 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
5 inherit qmake-utils xdg-utils
7 DESCRIPTION="A punch clock program designed to easily keep track of your hours"
8 HOMEPAGE="https://gottcode.org/kapow/"
9 SRC_URI="https://gottcode.org/${PN}/${P}-src.tar.bz2"
13 KEYWORDS="~amd64 ~x86"
19 dev-qt/qtprintsupport:5
24 dev-qt/linguist-tools:5
27 ar bg cs da de el en es fr it lt nl no pl pt_BR pt ro ru sv tr uk
29 for K_LANG in ${K_LANGS}; do
30 IUSE+=" l10n_${K_LANG/_/-}"
32 DOCS=( ChangeLog README )
37 count() { echo ${#}; }
38 local lang_count=$(count ${K_LANGS})
39 local locale_count=$(count translations/${PN}_*.ts)
40 [[ ${lang_count} = ${locale_count} ]] \
41 || die "Number of LANGS does not match number of locales"
45 for lang in ${K_LANGS}; do
46 if ! use l10n_${lang/_/-}; then
47 rm translations/${PN}_${lang}.* || die
53 eqmake5 kapow.pro PREFIX=/usr
57 export INSTALL_ROOT="${D}"