summaryrefslogtreecommitdiff
blob: d91ea256be28245f2648fcb8e66c4f62e5d5b80a (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
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/policykit-gnome/policykit-gnome-0.9.2-r1.ebuild,v 1.2 2009/04/25 02:52:21 dang Exp $

EAPI="2"

inherit gnome2 eutils

MY_PN="PolicyKit-gnome"
MY_P="${MY_PN}-${PV}"

DESCRIPTION="PolicyKit policies and configurations for the GNOME desktop"
HOMEPAGE="http://hal.freedesktop.org/docs/PolicyKit"
SRC_URI="http://hal.freedesktop.org/releases/${MY_P}.tar.bz2"

LICENSE="LGPL-2 GPL-2"
SLOT="0"
KEYWORDS="~alpha ~amd64 ~ppc ~x86"
IUSE="doc examples"

RDEPEND=">=x11-libs/gtk+-2.13.6
	>=gnome-base/gconf-2.8
	>=dev-libs/dbus-glib-0.71
	>=sys-auth/policykit-0.9"
DEPEND="${RDEPEND}
	sys-devel/gettext
	>=dev-util/pkgconfig-0.19
	>=dev-util/intltool-0.35.0
	>=app-text/scrollkeeper-0.3.14
	>=app-text/gnome-doc-utils-0.12
	doc? ( >=dev-util/gtk-doc-1.3 )"

DOCS="AUTHORS ChangeLog HACKING NEWS TODO"

S="${WORKDIR}/${MY_P}"

pkg_setup() {
	G2CONF="${G2CONF} $(use_enable examples)"
}

src_prepare() {
	gnome2_src_prepare

	# Make buttons trigger auth when clicked
	epatch "${FILESDIR}"/${P}-fix-clickable-buttons.patch
}