blob: a097fe8a23a44dc04810a501ed5d08b323d16ad5 (
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
|
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-client/arora/arora-0.4.ebuild,v 1.3 2008/11/06 00:58:12 yngwin Exp $
EAPI=2
inherit eutils qt4
DESCRIPTION="A cross-platform Qt4 WebKit browser"
HOMEPAGE="http://arora.googlecode.com/"
SRC_URI="http://arora.googlecode.com/files/${P}.tar.gz"
LICENSE="|| ( GPL-3 GPL-2 )"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""
RDEPEND="x11-libs/qt-webkit:4"
DEPEND="$RDEPEND"
ARORA_LANGS="da de en es es_CR et fr_CA gl he hu it nl pl pt_BR ru tr"
ARORA_NOLONGLANGS="cs_CZ fr_FR"
for L in $ARORA_LANGS; do
IUSE="$IUSE linguas_$L"
done
for L in $ARORA_NOLONGLANGS; do
IUSE="$IUSE linguas_${L%_*}"
done
src_prepare() {
# process linguas
local langs=
for lingua in $LINGUAS; do
if has $lingua $ARORA_LANGS; then
langs="$langs ${lingua}.ts"
else
for a in $ARORA_NOLONGLANGS; do
if [[ $lingua == ${a%_*} ]]; then
langs="$langs ${a}.ts"
fi
done
fi
done
# remove all translations, then add only the ones we want
sed -i '/ts/d' src/locale/locale.pri || die 'sed failed'
sed -i "/^TRANSLATIONS/s:\\\:${langs}:" src/locale/locale.pri \
|| die 'sed failed'
}
src_configure() {
eqmake4 arora.pro PREFIX="${D}/usr"
}
src_compile() {
emake || die "make failed"
# don't pre-strip
sed -i "/strip/d" src/Makefile || die 'sed failed'
}
src_install() {
emake -j1 DESTDIR="${D}" install || die 'make install failed'
dodoc AUTHORS ChangeLog README
}
|