You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/www-client/midori/midori-0.4.6-r1.ebuild

102 lines
2.2 KiB

# 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.4.6-r1.ebuild,v 1.5 2013/03/29 21:37:00 angelos Exp $
EAPI=4
VALA_MIN_API_VERSION=0.14
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="mirror://xfce/src/apps/${PN}/${PV%.*}/${P}.tar.bz2"
fi
inherit eutils fdo-mime gnome2-utils python waf-utils vala ${_live_inherits}
DESCRIPTION="A lightweight web browser based on WebKitGTK+"
HOMEPAGE="http://www.twotoasts.de/index.php?/pages/midori_summary.html"
LICENSE="LGPL-2.1 MIT"
SLOT="0"
IUSE="+deprecated doc gnome libnotify nls +unique"
RDEPEND="dev-db/sqlite:3
>=dev-libs/glib-2.22
dev-libs/libxml2
net-libs/libsoup:2.4
x11-libs/libXScrnSaver
deprecated? (
net-libs/webkit-gtk:2
x11-libs/gtk+:2
unique? ( dev-libs/libunique:1 )
)
!deprecated? (
net-libs/webkit-gtk:3
x11-libs/gtk+:3
unique? ( dev-libs/libunique:3 )
)
gnome? ( net-libs/libsoup-gnome:2.4 )
libnotify? ( >=x11-libs/libnotify-0.7 )"
DEPEND="${RDEPEND}
|| ( dev-lang/python:2.7 dev-lang/python:2.6 )
$(vala_depend)
dev-util/intltool
gnome-base/librsvg
doc? ( dev-util/gtk-doc )
nls? ( sys-devel/gettext )"
pkg_setup() {
python_set_active_version 2
python_pkg_setup
DOCS=( AUTHORS ChangeLog HACKING INSTALL 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() {
epatch "${FILESDIR}"/${P}-dl.patch
vala_src_prepare
}
src_configure() {
strip-linguas -i po
waf-utils_src_configure \
--disable-docs \
$(use_enable doc apidocs) \
$(use_enable unique) \
$(use_enable libnotify) \
--enable-addons \
$(use_enable nls) \
$(use_enable !deprecated gtk3) \
--disable-granite
}
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
}