summaryrefslogtreecommitdiff
blob: e1bfb23e3466892ed335f89460e53ad45d9b649c (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
54
55
# Copyright 1999-2008 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/app-pda/synce-trayicon/synce-trayicon-0.11.ebuild,v 1.2 2008/11/14 17:45:28 mescalinum Exp $

inherit eutils subversion gnome2

DESCRIPTION="SynCE - Gnome trayicon"
HOMEPAGE="http://sourceforge.net/projects/synce/"
LICENSE="MIT"

SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE=""
DEPEND="sys-apps/dbus
		dev-libs/dbus-glib
		>=dev-libs/glib-2.0
		>=x11-libs/gtk+-2.0
		gnome-base/libgnome
		gnome-base/libgnomeui
		gnome-base/libgtop
		gnome-base/libglade
		gnome-base/gnome-keyring
		gnome-base/gnome-common
		~app-pda/synce-libsynce-0.11.1
		~app-pda/synce-librra-0.11.1
		~app-pda/synce-librapi2-0.11.1"

SRC_URI="mirror://sourceforge/synce/${P}.tar.gz"

src_unpack() {
	subversion_src_unpack
	cd "${S}"
	# Force using automake 1.9
	epatch "${FILESDIR}"/automake-1.9.patch
}

src_compile() {
	# gnome-common < 2.18.0 hack
	touch COPYING
	touch INSTALL
	./autogen.sh --prefix=/usr
	emake || die
}

src_install() {
	emake DESTDIR="${D}" install || die
}

pkg_postinst() {
	gnome2_icon_cache_update
}

pkg_postrm() {
	gnome2_icon_cache_update
}