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

Contents of /www-client/midori/midori-9999.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.44 - (show annotations) (download)
Sun Oct 21 12:00:16 2012 UTC (2 years, 2 months ago) by ssuominen
Branch: MAIN
Changes since 1.43: +2 -2 lines
Update HOMEPAGE wrt #435706

(Portage version: 2.2.0_alpha135/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-9999.ebuild,v 1.43 2012/09/20 08:30:56 ssuominen 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 VALA_VERSION=0.18
20
21 DESCRIPTION="A lightweight web browser based on WebKitGTK+"
22 HOMEPAGE="http://twotoasts.de/index.php/midori/"
23
24 LICENSE="LGPL-2.1 MIT"
25 SLOT="0"
26 IUSE="+deprecated doc gnome libnotify nls +unique zeitgeist"
27
28 RDEPEND=">=dev-db/sqlite-3.6.19:3
29 >=dev-libs/glib-2.22
30 dev-libs/libxml2
31 >=net-libs/libsoup-2.34: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 >=app-crypt/gcr-3
40 net-libs/webkit-gtk:3
41 x11-libs/gtk+:3
42 unique? ( dev-libs/libunique:3 )
43 )
44 gnome? ( >=net-libs/libsoup-gnome-2.34:2.4 )
45 libnotify? ( >=x11-libs/libnotify-0.7 )
46 zeitgeist? ( >=dev-libs/libzeitgeist-0.3.14 )"
47 DEPEND="${RDEPEND}
48 || ( dev-lang/python:2.7 dev-lang/python:2.6 )
49 dev-lang/vala:${VALA_VERSION}
50 dev-util/intltool
51 gnome-base/librsvg
52 doc? ( dev-util/gtk-doc )
53 nls? ( sys-devel/gettext )"
54
55 pkg_setup() {
56 python_set_active_version 2
57 python_pkg_setup
58
59 DOCS=( AUTHORS ChangeLog HACKING INSTALL TODO TRANSLATE )
60 HTML_DOCS=( data/faq.html data/faq.css )
61 }
62
63 src_unpack() {
64 if [[ ${PV} == *9999* ]]; then
65 git-2_src_unpack
66 else
67 default
68 fi
69 }
70
71 src_prepare() {
72 # TODO: Both zeitgeist and gcr should have ./configure switch!
73 use zeitgeist || { sed -i -e 's:zeitgeist:&dIsAbLe:' wscript || die; }
74
75 # Force disabled because we don't have this custom renamed in Portage
76 sed -i -e 's:gcr-3-gtk2:&dIsAbLe:' wscript || die
77 }
78
79 src_configure() {
80 strip-linguas -i po
81
82 VALAC="$(type -P valac-${VALA_VERSION})" \
83 waf-utils_src_configure \
84 --disable-docs \
85 $(use_enable doc apidocs) \
86 $(use_enable unique) \
87 $(use_enable libnotify) \
88 --enable-addons \
89 $(use_enable nls) \
90 $(use_enable !deprecated gtk3) \
91 --disable-granite
92 }
93
94 pkg_preinst() {
95 gnome2_icon_savelist
96 }
97
98 pkg_postinst() {
99 fdo-mime_desktop_database_update
100 fdo-mime_mime_database_update
101 gnome2_icon_cache_update
102 }
103
104 pkg_postrm() {
105 fdo-mime_desktop_database_update
106 fdo-mime_mime_database_update
107 gnome2_icon_cache_update
108 }

  ViewVC Help
Powered by ViewVC 1.1.20