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 (-47 / +66 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."
45
43
		die "Pwlib w/o ldap-support detected."
46
	# ekiga has to be built like opal and ptlib but as opal has to be built
47
	# like ptlib, it should be possible to check only opal but as ekiga is
48
	# linking to both, we are cheking both
49
	if use debug && (! built_with_use dev-libs/ptlib debug ||
50
		! built_with_use net-libs/opal debug); then
51
		eerror "You need to build dev-libs/ptlib and net-libs/opal with\
52
 USE=debug enabled."
53
		die "dev-libs/ptlib and net-libs/opal have to be built with USE=debug"
44
	fi
54
	fi
45
55
46
	if use avahi && ! built_with_use net-dns/avahi dbus; then
56
	if ! use debug && (built_with_use dev-libs/ptlib debug ||
47
		eerror "You need to build net-dns/avahi with USE=dbus enabled."
57
		built_with_use net-libs/opal debug); then
48
		die "Avahi without dbus-support detected."
58
		eerror "You need to build dev-libs/ptlib and net-libs/opal without\
59
 USE=debug."
60
		die "dev-libs/ptlib and net-libs/opal has not to be built with USE=debug"
61
	fi
62
63
	if use gnome && use doc; then
64
		myconf="--enable-gdu"
65
	else
66
		myconf="--disable-gdu"
49
	fi
67
	fi
50
68
51
	G2CONF="${G2CONF}
69
	G2CONF="${G2CONF}
52
		$(use_enable dbus)
53
		$(use_enable sdl)
54
		$(use_enable avahi)
70
		$(use_enable avahi)
71
		$(use_enable dbus)
72
		$(use_enable debug)
55
		$(use_enable doc)
73
		$(use_enable doc)
74
		$(use_enable eds)
75
		$(use_enable gconf)
56
		$(use_enable gnome)
76
		$(use_enable gnome)
57
		--disable-scrollkeeper"
77
		$(use_enable ldap)
58
}
78
		$(use_enable libnotify notify)
59
79
		$(use_enable xv)
60
src_unpack() {
80
		${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
}
81
}
69
82
70
src_install() {
83
src_install() {
71
	if use gnome; then
84
	if use gnome; then
72
		gnome2_src_install
85
		gnome2_src_install
73
	else
86
	else
74
		emake DESTDIR="${D}" install || die "make install failed"
87
		emake DESTDIR="${D}" install || die "emake install failed"
75
88
76
		dodoc ${DOCS}
89
		dodoc ${DOCS} || die "dodoc failed"
77
	fi
90
	fi
78
}
91
}
79
92
Lines 81-88 Link Here
81
	if use gnome; then
94
	if use gnome; then
82
		gnome2_pkg_postinst
95
		gnome2_pkg_postinst
83
96
97
		# Note : someone has to test if it's needed
84
		# we need to fix the GConf permissions, see bug #59764
98
		# we need to fix the GConf permissions, see bug #59764
85
		einfo "Fixing GConf permissions for ekiga"
99
#		einfo "Fixing GConf permissions for ekiga"
86
		ekiga-config-tool --fix-permissions
100
#		ekiga-config-tool --fix-permissions
101
	fi
102
103
	if ! use gnome; then
104
		ewarn "USE=-gnome is experimental, some weirdness with the UI and \
105
config keys should appear."
87
	fi
106
	fi
88
}
107
}

Return to bug 238554