blob: 43ec49f57bc926444631de710120cbe79181cefc (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/sci-calculators/speedcrunch/speedcrunch-0.10.1.ebuild,v 1.1 2008/11/17 23:58:15 bicatali Exp $
EAPI=1
inherit eutils cmake-utils
DESCRIPTION="A fast and usable calculator for power users"
HOMEPAGE="http://speedcrunch.org/"
SRC_URI="http://speedcrunch.googlecode.com/files/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="doc"
DEPEND="|| ( >=x11-libs/qt-4.2:4 x11-libs/qt-gui:4 )"
LANGS="ca cs de en es es_AR eu fi fr he id it nb nl no pl
pt pt_BR ro ru sv tr zh_CN"
for lang in ${LANGS}; do
IUSE="${IUSE} linguas_${lang}"
done
S="${WORKDIR}/${P}/src"
src_unpack( ) {
unpack ${A}
cd "${S}"
epatch "${FILESDIR}"/${P}-iconname.patch
# regenerate translations
lrelease speedcrunch.pro || die
for lang in ${LANGS}; do
if ! use linguas_${lang}; then
sed -i -e "s:i18n/${lang}\.qm::" Translations.cmake || die
sed -i -e "s:books/${lang}::" CMakeLists.txt || die
fi
done
}
src_install() {
cmake-utils_src_install
cd ..
dodoc ChangeLog ChangeLog.floatnum HACKING.txt LISEZMOI README TRANSLATORS
if use doc; then
insinto /usr/share/doc/${PF}
doins doc/*.pdf || die
fi
}
|