diff options
author | Jeroen Roovers <jer@gentoo.org> | 2018-07-24 08:27:45 +0200 |
---|---|---|
committer | Jeroen Roovers <jer@gentoo.org> | 2018-07-24 10:52:13 +0200 |
commit | 98ef3948ebd60d18489250de0575db8ee0af5fa6 (patch) | |
tree | e1197441ddd35d9a24b7f4e20c193ff0c6706f6b /x11-misc | |
parent | sys-process/htop: PYTHON_REQUIRED_USE is no longer needed. (diff) | |
download | gentoo-98ef3948ebd60d18489250de0575db8ee0af5fa6.tar.gz gentoo-98ef3948ebd60d18489250de0575db8ee0af5fa6.tar.bz2 gentoo-98ef3948ebd60d18489250de0575db8ee0af5fa6.zip |
x11-misc/kapow: Version 1.5.8.
Package-Manager: Portage-2.3.43, Repoman-2.3.10
Diffstat (limited to 'x11-misc')
-rw-r--r-- | x11-misc/kapow/Manifest | 1 | ||||
-rw-r--r-- | x11-misc/kapow/kapow-1.5.8.ebuild | 67 |
2 files changed, 68 insertions, 0 deletions
diff --git a/x11-misc/kapow/Manifest b/x11-misc/kapow/Manifest index c516a7bdd1ea..29f67ce00490 100644 --- a/x11-misc/kapow/Manifest +++ b/x11-misc/kapow/Manifest @@ -1,2 +1,3 @@ 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 +DIST kapow-1.5.8-src.tar.bz2 834178 BLAKE2B dc24e2d47e3e8286336e4de509e2486f0b6f6c912e5be532e36035e6fbff09a0f0453108b061aff2aa7bab45e1c782b63ee94f6183d17b0b50e04c24611b2e7c SHA512 168e9581b360a905e24d8dc4d01af58823789f4ea6fe533744c14d9c6830720e640923859c2726c51aa9ef9064038a2bb920960c74ca858e3fdc6b0ff17cf861 diff --git a/x11-misc/kapow/kapow-1.5.8.ebuild b/x11-misc/kapow/kapow-1.5.8.ebuild new file mode 100644 index 000000000000..2dd79d2b2ec0 --- /dev/null +++ b/x11-misc/kapow/kapow-1.5.8.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 +} |