blob: da111d97a3b65c9195fd7af93b2f1adb69e565f6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
PLOCALES=(
ar ca cs da de el en-GB en-US es-AR es-ES et eu fi fr he hu id it ja ko
lt lv nb nl pl pt-BR pt-PT ro ru sk sv tr uz vi zh-CN
)
CMAKE_MAKEFILE_GENERATOR=ninja
inherit cmake-utils gnome2-utils
DESCRIPTION="Fast and usable calculator for power users"
HOMEPAGE="http://speedcrunch.org/"
SRC_URI="https://bitbucket.org/heldercorreia/${PN}/get/release-${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux"
IUSE="doc ${PLOCALES[@]/#/l10n_}"
DEPEND="
dev-qt/qtcore:5
dev-qt/qthelp:5
dev-qt/qtsql:5
dev-qt/qtwidgets:5
"
RDEPEND="${DEPEND}"
S="${WORKDIR}/heldercorreia-speedcrunch-ea93b21f9498/src"
src_prepare() {
local i
for i in "${PLOCALES[@]}" ; do
use l10n_${i} || \
sed "\|locale/${i/-/_}|d" -i resources/speedcrunch.qrc || die
done
cmake-utils_src_prepare
}
src_install() {
cmake-utils_src_install
cd .. || die
doicon -s scalable gfx/speedcrunch.svg
if use doc ; then
local i doclangs
for i in de en_US es_ES fr ; do
use l10n_${i/_/-} && doclangs+=" ${i}"
done
if [[ -z ${doclangs} ]] ; then
ewarn "Couldn't find a matching translation for documentation. Defaulting to: en_US"
doclangs="en_US"
fi
for i in ${doclangs} ; do
dodoc -r doc/build_html_embedded/${i}*/
done
fi
}
pkg_postinst() {
gnome2_icon_cache_update
}
pkg_postrm() {
gnome2_icon_cache_update
}
|