/[gentoo-x86]/www-client/arora/arora-0.10.1.ebuild
Gentoo

Contents of /www-client/arora/arora-0.10.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sun Dec 27 03:15:28 2009 UTC (9 years, 10 months ago) by yngwin
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
Add dependency on doxygen for USE=doc
(Portage version: 2.2_rc61/cvs/Linux x86_64)

1 # Copyright 1999-2009 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-client/arora/arora-0.10.1.ebuild,v 1.3 2009/12/05 21:16:37 yngwin Exp $
4
5 EAPI=2
6 inherit eutils qt4
7
8 DESCRIPTION="A cross-platform Qt4 WebKit browser"
9 HOMEPAGE="http://arora.googlecode.com/"
10 SRC_URI="http://arora.googlecode.com/files/${P}.tar.gz"
11
12 LICENSE="|| ( GPL-3 GPL-2 )"
13 SLOT="0"
14 KEYWORDS="~amd64 ~x86"
15 IUSE="debug doc"
16
17 RDEPEND="=x11-libs/qt-gui-4.5*
18 =x11-libs/qt-sql-4.5*
19 =x11-libs/qt-webkit-4.5*
20 =x11-libs/qt-xmlpatterns-4.5*" # incompatible with Qt 4.6, bug 295808
21 DEPEND="${RDEPEND}"
22
23 ARORA_LANGS="ast ca es es_CR et_EE fr_CA gl ms nb_NO pt_BR pt_PT sr@latin sr_CS uk
24 zh_CN zh_TW"
25 ARORA_NOLONGLANGS="cs_CZ da_DK de_DE el_GR fi_FI fr_FR he_IL hu_HU it_IT ja_JP
26 nl_NL pl_PL ru_RU sk_SK tr_TR"
27
28 for L in $ARORA_LANGS; do
29 IUSE="$IUSE linguas_$L"
30 done
31 for L in $ARORA_NOLONGLANGS; do
32 IUSE="$IUSE linguas_${L%_*}"
33 done
34
35 src_prepare() {
36 # use Gentoo lingua designations
37 mv src/locale/sr_RS@latin.ts src/locale/sr@latin.ts
38 mv src/locale/sr_RS.ts src/locale/sr_CS.ts
39
40 # process linguas
41 local langs=
42 for lingua in $LINGUAS; do
43 if has $lingua $ARORA_LANGS; then
44 langs="$langs ${lingua}.ts"
45 else
46 for a in $ARORA_NOLONGLANGS; do
47 if [[ $lingua == ${a%_*} ]]; then
48 langs="$langs ${a}.ts"
49 fi
50 done
51 fi
52 done
53
54 # remove all translations, then add only the ones we want
55 sed -i '/ts/d' src/locale/locale.pri || die 'sed failed'
56 sed -i "/^TRANSLATIONS/s:\\\:${langs}:" src/locale/locale.pri \
57 || die 'sed failed'
58
59 if ! use doc ; then
60 sed -i 's|QMAKE_EXTRA|#QMAKE_EXTRA|' arora.pro || die 'sed failed'
61 fi
62 }
63
64 src_configure() {
65 eqmake4 arora.pro PREFIX=/usr
66 }
67
68 src_compile() {
69 emake || die "make failed"
70
71 # don't pre-strip
72 sed -i "/strip/d" src/Makefile || die 'sed failed'
73 }
74
75 src_install() {
76 emake INSTALL_ROOT="${D}" install || die 'make install failed'
77 dodoc AUTHORS ChangeLog README
78 }

  ViewVC Help
Powered by ViewVC 1.1.20