summaryrefslogtreecommitdiff
blob: 16c1f5090fddda68a48d0fc4d22766da6b142554 (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
75
76
77
78
79
80
81
# Copyright 2000-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

inherit autotools eutils subversion gnome2

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

# Have to set SRC_URI blank or gnome2 eclass tries to fetch package
SRC_URI=""

ESVN_REPO_URI="http://svn.gnome.org/svn/gnome-main-menu/trunk"

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

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.7
	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() {
	subversion_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
}