summaryrefslogtreecommitdiff
blob: 9e04277b303843ba8581bda7a1ac6d06e18e2d18 (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
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/gnome-extra/activity-log-manager/activity-log-manager-0.9.0.1.ebuild,v 1.2 2012/02/12 20:30:33 jlec Exp $

EAPI=4

inherit autotools gnome2 versionator

DESCRIPTION="GUI which lets you easily control what gets logged by Zeitgeist"
HOMEPAGE="https://launchpad.net/activity-log-manager/"
SRC_URI="http://launchpad.net/history-manager/$(get_version_component_range 1-2)/$(get_version_component_range 1-3)/+download/${P}.tar.gz"

LICENSE="LGPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

VALASLOT="0.10"

RDEPEND="
	gnome-extra/zeitgeist
	x11-libs/gtk+:3
	dev-libs/libgee:0
	dev-libs/glib:2"
DEPEND="${RDEPEND}
	dev-lang/vala:${VALASLOT}
	dev-util/intltool
	sys-devel/gettext
"

#S="${WORKDIR}/${MY_PN}-${PV}"

pkg_setup() {
	DOCS="README NEWS INSTALL ChangeLog AUTHORS"
# no without possible
#	G2CONF="${G2CONF}
#		--without-ccpanel"
}

src_prepare() {
	epatch \
		"${FILESDIR}"/${P}-gold.patch \
		"${FILESDIR}"/${P}-ccpanel.patch
	sed \
		-e "/^almdocdir/s:=.*$:= \${prefix}/share/doc/${PF}:g" \
		-i Makefile.am || die
	sed \
		-e 's:-g::g' \
		-i src/Makefile.am || die
	eautoreconf
	export VALAC="$(type -p valac-${VALASLOT})"
	gnome2_src_prepare
}