blob: 191db49ba3599b3cc2a34965d7e443dacc013fac (
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
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-client/midori/midori-0.5.4.ebuild,v 1.1 2013/07/17 06:02:01 ssuominen Exp $
EAPI=5
VALA_MIN_API_VERSION=0.16
PYTHON_COMPAT=( python2_7 )
unset _live_inherits
if [[ ${PV} == *9999* ]]; then
EGIT_REPO_URI="git://git.xfce.org/apps/${PN}"
_live_inherits=git-2
else
KEYWORDS="~amd64 ~arm ~ppc ~x86 ~x86-fbsd"
SRC_URI="http://www.${PN}-browser.org/downloads/${PN}_${PV}_all_.tar.bz2"
S=${WORKDIR}/${PN}_${PV}_all_
fi
inherit eutils fdo-mime gnome2-utils python-any-r1 waf-utils vala ${_live_inherits}
DESCRIPTION="A lightweight web browser based on WebKitGTK+"
HOMEPAGE="http://www.midori-browser.org/"
LICENSE="LGPL-2.1 MIT"
SLOT="0"
IUSE="+deprecated doc gnome nls +unique webkit2 zeitgeist"
RDEPEND=">=dev-db/sqlite-3.6.19:3
>=dev-libs/glib-2.32.3
dev-libs/libxml2
>=net-libs/libsoup-2.34:2.4
>=x11-libs/libnotify-0.7
x11-libs/libXScrnSaver
deprecated? (
>=net-libs/webkit-gtk-1.8.3:2
>=x11-libs/gtk+-2.24:2
unique? ( dev-libs/libunique:1 )
)
!deprecated? (
>=app-crypt/gcr-3
>=net-libs/webkit-gtk-1.10.2:3
x11-libs/gtk+:3
unique? ( dev-libs/libunique:3 )
webkit2? ( >=net-libs/webkit-gtk-2 )
)
gnome? ( || ( >=net-libs/libsoup-2.42:2.4 >=net-libs/libsoup-gnome-2.34:2.4 ) )
zeitgeist? ( >=dev-libs/libzeitgeist-0.3.14 )"
DEPEND="${RDEPEND}
${PYTHON_DEPS}
$(vala_depend)
dev-util/intltool
gnome-base/librsvg
doc? ( dev-util/gtk-doc )
nls? ( sys-devel/gettext )"
pkg_setup() {
python-any-r1_pkg_setup
DOCS=( AUTHORS ChangeLog HACKING README TODO TRANSLATE )
HTML_DOCS=( data/faq.html data/faq.css )
}
src_unpack() {
if [[ ${PV} == *9999* ]]; then
git-2_src_unpack
else
default
fi
}
src_prepare() {
# Force disabled because we don't have this custom renamed in Portage
sed -i -e 's:gcr-3-gtk2:&dIsAbLe:' wscript || die
vala_src_prepare
}
src_configure() {
strip-linguas -i po
local myconf
use deprecated || myconf="$(use_enable webkit2)"
waf-utils_src_configure \
--disable-docs \
$(use_enable doc apidocs) \
$(use_enable unique) \
--disable-granite \
--enable-addons \
$(use_enable nls) \
$(use_enable !deprecated gtk3) \
$(use_enable zeitgeist) \
${myconf}
}
pkg_preinst() {
gnome2_icon_savelist
}
pkg_postinst() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
}
pkg_postrm() {
fdo-mime_desktop_database_update
fdo-mime_mime_database_update
gnome2_icon_cache_update
}
|