blob: f6de185e3a92e8176cdfa109382be4acda9319d5 (
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
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-client/qupzilla/qupzilla-1.4.3.ebuild,v 1.2 2013/06/28 20:52:55 ago Exp $
EAPI=5
PLOCALES="ca_ES cs_CZ de_DE el_GR es_ES es_VE fa_IR fr_FR hu_HU id_ID it_IT
ja_JP ka_GE nl_NL pl_PL pt_BR pt_PT ro_RO ru_RU sk_SK sr_BA sr_RS sv_SE uk_UA
zh_CN zh_TW"
inherit l10n multilib qt4-r2 vcs-snapshot
MY_P="QupZilla-${PV}"
DESCRIPTION="Qt WebKit web browser"
HOMEPAGE="http://www.qupzilla.com/"
SRC_URI="http://www.qupzilla.com/uploads/${MY_P}.tar.gz"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="amd64 ~x86"
IUSE="dbus debug kde nonblockdialogs"
DEPEND="
>=dev-qt/qtcore-4.7:4
>=dev-qt/qtgui-4.7:4
>=dev-qt/qtscript-4.7:4
>=dev-qt/qtsql-4.7:4
>=dev-qt/qtwebkit-4.7:4
dbus? ( >=dev-qt/qtdbus-4.7:4 )"
RDEPEND="${DEPEND}"
S=${WORKDIR}/${MY_P}
DOCS="AUTHORS BUILDING CHANGELOG FAQ README.md"
src_prepare() {
# remove outdated copies of localizations:
rm -rf bin/locale || die
epatch_user
}
src_configure() {
# see BUILDING document for explanation of options
export QUPZILLA_PREFIX=${EPREFIX}/usr/
export USE_LIBPATH=${QUPZILLA_PREFIX}$(get_libdir)
export DISABLE_DBUS=$(use dbus && echo false || echo true)
export KDE=$(use kde && echo true || echo false) # in future this will enable nepomuk integration
export NONBLOCK_JS_DIALOGS=$(use nonblockdialogs && echo true || echo false)
has_version '>=dev-qt/qtwebkit-4.8.0:4' && export USE_QTWEBKIT_2_2=true
eqmake4
}
src_install() {
qt4-r2_src_install
l10n_for_each_disabled_locale_do rm_loc
}
rm_loc() {
rm "${D}"/usr/share/${PN}/locale/${1}.qm || die
}
|