summaryrefslogtreecommitdiff
blob: 56a7d94fda77f1d3f9eaa808fb3c981a40fc50ce (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
# 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="doc libssui nautilus"

RDEPEND=">=dev-libs/glib-2.8.0
	>=x11-libs/gtk+-2
	>=gnome-base/gnome-desktop-2
	>=gnome-base/gnome-panel-2
	>=gnome-base/librsvg-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
	sys-apps/hal
	x11-libs/cairo
	x11-libs/pango
	libssui? ( >=gnome-extra/libssui-0.5.6 )"

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

	if ! use doc ; then
		epatch "${FILESDIR}"/03-configure.in-remove-gtk-doc.patch
	fi

}

src_compile() {
	G2CONF="`use_enable nautilus nautilus-extension`"
	intltoolize --force || die "intloolize failed"
	eautoreconf || die "eautoreconf failed"
	gnome2_src_compile
}

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
}