blob: 137bcb35f96468126cc0073c3d7f8aed001083e9 (
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
|
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
PLOCALES="ca_ES cs_CZ de_DE en_GB en_US es_AR es_ES et_EE eu_ES fi_FI
fr_FR he_IL hu_HU id_ID it_IT ja_JP ko_KR lv_LV nb_NO nl_NL pl_PL pt_BR
pt_PT ro_RO ru_RU sv_SE vi_VN zh_CN"
CMAKE_MAKEFILE_GENERATOR=ninja
inherit cmake-utils l10n
DESCRIPTION="Fast and usable calculator for power users"
HOMEPAGE="http://speedcrunch.org/"
SRC_URI="https://github.com/${PN}/SpeedCrunch/archive/${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux"
IUSE="doc"
DEPEND="dev-qt/qtgui:4"
RDEPEND="${DEPEND}"
S="${WORKDIR}/SpeedCrunch-${PV}/src"
src_prepare() {
my_rm_loc() {
rm "resources/locale/${1}.qm" || die
sed -i resources/speedcrunch.qrc \
-e "s|<file>locale/${1}.qm</file>||" || die
sed -i gui/mainwindow.cpp \
-e "s|map.insert(QString::fromUtf8(\".*, QLatin1String(\"${1}\"));||" || die
}
l10n_find_plocales_changes 'resources/locale' '' '.qm'
l10n_for_each_disabled_locale_do my_rm_loc
cmake-utils_src_prepare
}
src_install() {
cmake-utils_src_install
cd .. || die
doicon -s scalable gfx/speedcrunch.svg
use doc && dodoc doc/*.pdf
}
|