summaryrefslogtreecommitdiff
blob: 0aa3b339404fab98dcf56e1a633493a8baad4146 (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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Copyright 2000-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit autotools eutils gnome2

DESCRIPTION="The new Desktop Menu from SUSE"
HOMEPAGE="http://www.novell.com/products/desktop/preview.html"

LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86"
IUSE="beagle doc libssui nautilus tracker"

RDEPEND=">=dev-libs/glib-2.8.0
	>=x11-libs/gtk+-2
	>=gnome-base/libglade-2
	>=gnome-base/gnome-desktop-2
	>=gnome-base/gnome-panel-2
	>=gnome-base/librsvg-2
	>=gnome-base/eel-2
	>=gnome-base/gnome-menus-2
	>=gnome-base/gconf-2
	>=gnome-base/libgtop-2
	>=gnome-base/libgnome-2
	>=gnome-base/libgnomeui-2
	dev-libs/dbus-glib
	=net-misc/networkmanager-0.6*
	sys-apps/hal
	x11-libs/cairo
	x11-libs/pango
	libssui? ( >=gnome-extra/libssui-0.5.6 )
	nautilus? ( >=gnome-base/nautilus-2.6
		>=gnome-base/gnome-vfs-2 )
	tracker? ( app-misc/tracker )"

DEPEND="${RDEPEND}
	doc? (
		dev-util/gtk-doc
	)"

src_unpack() {
	gnome2_src_unpack
	cd ${S}

	gnome2_omf_fix

	epatch "${FILESDIR}"/gnome-main-menu-gentooifications.patch
	use libssui && epatch "${FILESDIR}"/gnome-main-menu-libssui.patch
	use doc || epatch "${FILESDIR}"/03-configure.in-remove-gtk-doc.patch
	if use tracker && ! use beagle ; then
		epatch ${FILESDIR}/03-tracker-search.patch
	elif ! use tracker && ! use beagle ; then
		epatch ${FILESDIR}/04-disable-search.patch
	fi

	G2CONF="`use_enable nautilus nautilus-extension`"
	intltoolize --force || die "intloolize failed"
	eautoreconf || die "eautoreconf failed"
}

pkg_postinst() {

	elog
	elog " If you want to have recent applications-support working, you should "
	elog " also use the patched gnome-panel and gnome-desktop packages from this "
	elog " overlay "
	elog
	if use tracker && use beagle ; then
		ewarn " You have both beagle and tracker set in your USE flags. "
		ewarn " Beagle will be used by default. If you would like to use "
		ewarn " tracker, emerge this package with the beagle USE flag unset. "
	fi
}