/[gentoo-x86]/www-client/midori/midori-0.4.6-r1.ebuild
Gentoo

Contents of /www-client/midori/midori-0.4.6-r1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Aug 18 13:27:25 2012 UTC (2 years, 4 months ago) by johu
Branch: MAIN
Changes since 1.3: +2 -2 lines
Stable for x86, wrt bug #430270

(Portage version: 2.2.0_alpha121/cvs/Linux x86_64)

1 # Copyright 1999-2012 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/www-client/midori/midori-0.4.6-r1.ebuild,v 1.3 2012/08/07 16:03:55 blueness Exp $
4
5 EAPI=4
6
7 unset _live_inherits
8
9 if [[ ${PV} == *9999* ]]; then
10 EGIT_REPO_URI="git://git.xfce.org/apps/${PN}"
11 _live_inherits=git-2
12 else
13 KEYWORDS="amd64 ~arm ppc x86 ~x86-fbsd"
14 SRC_URI="mirror://xfce/src/apps/${PN}/${PV%.*}/${P}.tar.bz2"
15 fi
16
17 inherit eutils fdo-mime gnome2-utils python waf-utils ${_live_inherits}
18
19 PV_vala_version=0.16
20
21 DESCRIPTION="A lightweight web browser based on WebKitGTK+"
22 HOMEPAGE="http://www.twotoasts.de/index.php?/pages/midori_summary.html"
23
24 LICENSE="LGPL-2.1 MIT"
25 SLOT="0"
26 IUSE="+deprecated doc gnome libnotify nls +unique"
27
28 RDEPEND="dev-db/sqlite:3
29 >=dev-libs/glib-2.22
30 dev-libs/libxml2
31 net-libs/libsoup:2.4
32 x11-libs/libXScrnSaver
33 deprecated? (
34 net-libs/webkit-gtk:2
35 x11-libs/gtk+:2
36 unique? ( dev-libs/libunique:1 )
37 )
38 !deprecated? (
39 net-libs/webkit-gtk:3
40 x11-libs/gtk+:3
41 unique? ( dev-libs/libunique:3 )
42 )
43 gnome? ( net-libs/libsoup-gnome:2.4 )
44 libnotify? ( >=x11-libs/libnotify-0.7 )"
45 DEPEND="${RDEPEND}
46 || ( dev-lang/python:2.7 dev-lang/python:2.6 )
47 dev-lang/vala:${PV_vala_version}
48 dev-util/intltool
49 gnome-base/librsvg
50 doc? ( dev-util/gtk-doc )
51 nls? ( sys-devel/gettext )"
52
53 pkg_setup() {
54 python_set_active_version 2
55 python_pkg_setup
56
57 DOCS=( AUTHORS ChangeLog HACKING INSTALL TODO TRANSLATE )
58 HTML_DOCS=( data/faq.html data/faq.css )
59 }
60
61 src_unpack() {
62 if [[ ${PV} == *9999* ]]; then
63 git-2_src_unpack
64 else
65 default
66 fi
67 }
68
69 src_prepare() {
70 epatch "${FILESDIR}"/${P}-dl.patch
71 }
72
73 src_configure() {
74 strip-linguas -i po
75
76 VALAC="$(type -P valac-${PV_vala_version})" \
77 waf-utils_src_configure \
78 --disable-docs \
79 $(use_enable doc apidocs) \
80 $(use_enable unique) \
81 $(use_enable libnotify) \
82 --enable-addons \
83 $(use_enable nls) \
84 $(use_enable !deprecated gtk3) \
85 --disable-granite
86 }
87
88 pkg_preinst() {
89 gnome2_icon_savelist
90 }
91
92 pkg_postinst() {
93 fdo-mime_desktop_database_update
94 fdo-mime_mime_database_update
95 gnome2_icon_cache_update
96 }
97
98 pkg_postrm() {
99 fdo-mime_desktop_database_update
100 fdo-mime_mime_database_update
101 gnome2_icon_cache_update
102 }

  ViewVC Help
Powered by ViewVC 1.1.20