Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 238554 | Differences between
and this patch

Collapse All | Expand All

(-)ekiga-2.0.12.ebuild (-48 / +50 lines)
Lines 1-79 Link Here
1
# Copyright 1999-2008 Gentoo Foundation
1
# Copyright 1999-2008 Gentoo Foundation
2
# Distributed under the terms of the GNU General Public License v2
2
# Distributed under the terms of the GNU General Public License v2
3
# $Header: /var/cvsroot/gentoo-x86/net-im/ekiga/ekiga-2.0.12.ebuild,v 1.5 2008/08/12 14:05:18 armin76 Exp $
3
# $Header: $
4
4
5
inherit gnome2 eutils flag-o-matic
5
inherit eutils gnome2
6
6
7
DESCRIPTION="H.323 and SIP VoIP softphone"
7
DESCRIPTION="H.323 and SIP VoIP softphone"
8
HOMEPAGE="http://www.ekiga.org/"
8
HOMEPAGE="http://www.ekiga.org/"
9
9
10
SLOT="0"
10
SLOT="0"
11
LICENSE="GPL-2"
11
LICENSE="GPL-2"
12
KEYWORDS="alpha amd64 ~hppa ia64 ppc ~ppc64 sparc x86"
12
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
13
IUSE="avahi dbus doc gnome sdl"
13
IUSE="avahi dbus debug doc eds gconf gnome ldap libnotify xv"
14
14
# dbus-service has been ignored
15
RDEPEND="~dev-libs/pwlib-1.10.$[${PV##*.}-2]
15
# gdu instead of gnome + doc ?
16
	~net-libs/opal-2.2.$[${PV##*.}-1]
16
17
	>=x11-libs/gtk+-2.4.0
17
RDEPEND=">=dev-libs/ptlib-2.4.1
18
	>=dev-libs/glib-2.0.0
18
	>=net-libs/opal-3.4.1
19
	sdl? ( >=media-libs/libsdl-1.2.4 )
19
	>=x11-libs/gtk+-2.12.0
20
	dbus? ( >=dev-libs/dbus-glib-0.71 )
20
	>=dev-libs/glib-2.8.0
21
	avahi? ( net-dns/avahi )
21
	>=dev-libs/libsigc++-2.0.0
22
	>=dev-libs/libxml2-2.0
23
	avahi? ( >=net-dns/avahi-0.6.0 )
24
	dbus? ( >=dev-libs/dbus-glib-0.36 )
25
	eds? ( >=gnome-extra/evolution-data-server-1.2 )
26
	gconf? ( >=gnome-base/gconf-2.6.0 )
22
	gnome? (
27
	gnome? (
23
		>=gnome-base/libbonobo-2.2.0
28
		>=gnome-base/libgnome-2.14.0
24
		>=gnome-base/libgnomeui-2.2.0
29
		>=gnome-base/libgnomeui-2.14.0 )
25
		>=gnome-base/libgnome-2.2.0
30
	ldap? ( net-nds/openldap )
26
		>=gnome-base/gconf-2.2.0
31
	libnotify? ( x11-libs/libnotify )
27
		>=gnome-base/orbit-2.5.0
32
	xv? ( x11-libs/libXv )"
28
		gnome-extra/evolution-data-server
29
		>=media-sound/esound-0.2.28 )"
30
33
31
DEPEND="${RDEPEND}
34
DEPEND="${RDEPEND}
32
	dev-lang/perl
35
	>=sys-devel/make-3.81
33
	>=dev-util/pkgconfig-0.12.0
36
	>=dev-util/pkgconfig-0.12.0
34
	>=dev-util/intltool-0.20
37
	>=dev-util/intltool-0.35
35
	gnome? ( app-text/scrollkeeper
38
	gnome? ( doc? ( app-text/scrollkeeper
36
		doc? ( app-text/gnome-doc-utils ) )"
39
		app-text/gnome-doc-utils ) )"
37
40
38
DOCS="AUTHORS ChangeLog NEWS"
41
DOCS="AUTHORS ChangeLog FAQ NEWS README"
39
42
40
pkg_setup() {
43
pkg_setup() {
41
	if ! built_with_use dev-libs/pwlib ldap; then
44
	local myconf
42
		eerror "You need to build dev-libs/pwlib with USE=ldap enabled."
43
		die "Pwlib w/o ldap-support detected."
44
	fi
45
45
46
	if use avahi && ! built_with_use net-dns/avahi dbus; then
46
	if use gnome && use doc; then
47
		eerror "You need to build net-dns/avahi with USE=dbus enabled."
47
		myconf="--enable-gdu"
48
		die "Avahi without dbus-support detected."
48
	else
49
		myconf="--disable-gdu"
49
	fi
50
	fi
50
51
51
	G2CONF="${G2CONF}
52
	G2CONF="${G2CONF}
52
		$(use_enable dbus)
53
		$(use_enable sdl)
54
		$(use_enable avahi)
53
		$(use_enable avahi)
54
		$(use_enable dbus)
55
		$(use_enable debug)
55
		$(use_enable doc)
56
		$(use_enable doc)
57
		$(use_enable eds)
58
		$(use_enable gconf)
56
		$(use_enable gnome)
59
		$(use_enable gnome)
57
		--disable-scrollkeeper"
60
		$(use_enable ldap)
58
}
61
		$(use_enable libnotify notify)
59
62
		$(use_enable xv)
60
src_unpack() {
63
		${myconf}"
61
	gnome2_src_unpack
62
63
	# Fix configure to install schemafile into the proper directory
64
	epatch "${FILESDIR}"/${PN}-1.99.0-configure.patch
65
66
	# Fix gnome-doc-utils detection
67
	epatch "${FILESDIR}"/${P}-gdu.patch
68
}
64
}
69
65
70
src_install() {
66
src_install() {
71
	if use gnome; then
67
	if use gnome; then
72
		gnome2_src_install
68
		gnome2_src_install
73
	else
69
	else
74
		emake DESTDIR="${D}" install || die "make install failed"
70
		emake DESTDIR="${D}" install || die "emake install failed"
75
71
76
		dodoc ${DOCS}
72
		dodoc ${DOCS} || die "dodoc failed"
77
	fi
73
	fi
78
}
74
}
79
75
Lines 81-88 Link Here
81
	if use gnome; then
77
	if use gnome; then
82
		gnome2_pkg_postinst
78
		gnome2_pkg_postinst
83
79
80
		# Note : someone has to test if it's needed
84
		# we need to fix the GConf permissions, see bug #59764
81
		# we need to fix the GConf permissions, see bug #59764
85
		einfo "Fixing GConf permissions for ekiga"
82
#		einfo "Fixing GConf permissions for ekiga"
86
		ekiga-config-tool --fix-permissions
83
#		ekiga-config-tool --fix-permissions
84
	fi
85
86
	if ! use gnome; then
87
		ewarn "USE=-gnome is experimental, some weirdness with the UI and \
88
config keys should appear."
87
	fi
89
	fi
88
}
90
}

Return to bug 238554