diff options
author | Jeroen Roovers <jer@gentoo.org> | 2018-06-27 07:46:13 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2018-06-27 08:40:57 +0200 |
commit | f068d11da52d3caf858c397363e433a87753d6d6 (patch) | |
tree | a9316d9521b308e7ae3fa8da77915aa9dd3e4266 /x11-misc/kapow | |
parent | dev-python/py: stable 1.4.34 for sparc (diff) | |
download | gentoo-f068d11da52d3caf858c397363e433a87753d6d6.tar.gz gentoo-f068d11da52d3caf858c397363e433a87753d6d6.tar.bz2 gentoo-f068d11da52d3caf858c397363e433a87753d6d6.zip |
x11-misc/kapow: Version 1.5.7.
Package-Manager: Portage-2.3.40, Repoman-2.3.9
Diffstat (limited to 'x11-misc/kapow')
-rw-r--r-- | x11-misc/kapow/Manifest | 1 | ||||
-rw-r--r-- | x11-misc/kapow/kapow-1.5.7.ebuild | 67 |
2 files changed, 68 insertions, 0 deletions
diff --git a/x11-misc/kapow/Manifest b/x11-misc/kapow/Manifest index a06b8b4af8fb..221cf8177950 100644 --- a/x11-misc/kapow/Manifest +++ b/x11-misc/kapow/Manifest @@ -1,2 +1,3 @@ DIST kapow-1.5.5-src.tar.bz2 722262 BLAKE2B 5f1c66b38edded3f2ad1d76d97dab036264169176647a25dc618a6e4149b40f4d4ed368edbac7786440ef49fe77e896db084edd9c210cd278b92ba175d49c63d SHA512 d22f8c1de74333b31b49ec752118ce36624895f99073b4b3f57a78f32e331ed33365b5664a316604e573820d38f268f0ceb6531bbf60eca05aa4a09fe5436a20 DIST kapow-1.5.6-src.tar.bz2 855057 BLAKE2B c0d5afefa4caf0f1be243e8e2e5dad80e52bab4dc856791d198d009a90c864aaafbe2eb624e114f6331c685b2bbc1664add045de9ed46699f865481461968423 SHA512 b0d1e1ed3cbe9a4a4e253399de4ec645f832a10633275b122729dd7653bbb40c7cd473251459fe1e0c35be314a02c704cac3fd25cb7ee498e282a58df6cf06a0 +DIST kapow-1.5.7-src.tar.bz2 855284 BLAKE2B a153b8e6356850d66f3743d91b2be685c9c51d2f257fe37b89d95fc3fa640babcd53470de0a7097174b87c2ae2cbef530e09e58d53b024fb893959354d1ca4b1 SHA512 05244e3c76350af7e7e3c35d70eba30580221fcfe73d652944d8dda40d5d630b037440a4ca296773b404bb7555b3c4aaba988bc51593456150eb9b2f69d1d2bf diff --git a/x11-misc/kapow/kapow-1.5.7.ebuild b/x11-misc/kapow/kapow-1.5.7.ebuild new file mode 100644 index 000000000000..2dd79d2b2ec0 --- /dev/null +++ b/x11-misc/kapow/kapow-1.5.7.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +inherit gnome2-utils qmake-utils + +DESCRIPTION="A punch clock program designed to easily keep track of your hours" +HOMEPAGE="https://gottcode.org/kapow/" +SRC_URI="https://gottcode.org/${PN}/${P}-src.tar.bz2" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +RDEPEND=" + dev-qt/qtcore:5 + dev-qt/qtgui:5 + dev-qt/qtnetwork:5 + dev-qt/qtprintsupport:5 + dev-qt/qtwidgets:5 +" +DEPEND=" + ${RDEPEND} + dev-qt/linguist-tools:5 +" +K_LANGS=" + ar bg cs da de el en es fr it lt nl no pl pt_BR pt ro ru sv tr uk +" +for K_LANG in ${K_LANGS}; do + IUSE+=" l10n_${K_LANG/_/-}" +done +DOCS=( ChangeLog README ) + +src_prepare() { + default + + count() { echo ${#}; } + local lang_count=$(count ${K_LANGS}) + local locale_count=$(count translations/${PN}_*.ts) + [[ ${lang_count} = ${locale_count} ]] \ + || die "Number of LANGS does not match number of locales" + unset count + + local lang + for lang in ${K_LANGS}; do + if ! use l10n_${lang/_/-}; then + rm translations/${PN}_${lang}.* || die + fi + done +} + +src_configure() { + eqmake5 kapow.pro PREFIX=/usr +} + +src_install() { + export INSTALL_ROOT="${D}" + default +} + +pkg_postinst() { + gnome2_icon_cache_update +} + +pkg_postrm() { + gnome2_icon_cache_update +} |