summaryrefslogtreecommitdiff
blob: 97be517e620b8f874885aca62ec6807021215ad2 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2

EAPI="2"

DESCRIPTION="Global Menu is a (Mac OS X like) globally-shared menu bar for GNOME"
HOMEPAGE="http://code.google.com/p/gnome2-globalmenu/"
SRC_URI="http://gnome2-globalmenu.googlecode.com/files/${P}.tar.bz2"

LICENSE="GPLv2"
SLOT="0"
KEYWORDS="~x86 ~amd64"
IUSE="gnome xfce test"

DEPEND=">=x11-libs/gtk+-2.10.0
		>=dev-libs/glib-2.10.0
		>=gnome-base/gconf-2
		>=x11-libs/libwnck-2.16.0
		>=gnome-base/gnome-menus-2.16.0
		gnome? (
				>=gnome-base/gnome-panel-2.16.0
				>=x11-libs/libnotify-0.4.4 )
		xfce?	(
				>=xfce-base/xfce4-panel-4.4.3 )
		>=x11-libs/libX11-1.1.0"
RDEPEND="${DEPEND}
		dev-util/intltool
		dev-util/pkgconfig
		>=dev-lang/vala-0.7.3"

src_configure() {
	G2CONF="${G2CONF}
		--without-git
		--docdir=/usr/share/doc/${PF}"
		--without-xfce4-panel


	econf \
		$(use_enable test tests) \
		$(use_with gnome gnome-panel) \
		$(use_with xfce xfce4-panel) || die "econf failed"
}

src_compile() {
	emake || die "emake failed"
}

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

pkg_postinst() {
	elog 'If make install failed try FEATURES="-sandbox" emerge gnome-globalmenu'
}