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 (-54 / +61 lines)
Lines 1-88 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
EAPI="1"
6
7
inherit eutils gnome2
6
8
7
DESCRIPTION="H.323 and SIP VoIP softphone"
9
DESCRIPTION="H.323 and SIP VoIP softphone"
8
HOMEPAGE="http://www.ekiga.org/"
10
HOMEPAGE="http://www.ekiga.org/"
9
11
10
SLOT="0"
12
SLOT="0"
11
LICENSE="GPL-2"
13
LICENSE="GPL-2"
12
KEYWORDS="alpha amd64 ~hppa ia64 ppc ~ppc64 sparc x86"
14
KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86"
13
IUSE="avahi dbus doc gnome sdl"
15
IUSE="avahi dbus debug doc eds gconf gnome ldap libnotify xv"
14
16
15
RDEPEND="~dev-libs/pwlib-1.10.$[${PV##*.}-2]
17
RDEPEND=">=dev-libs/ptlib-2.4.1
16
	~net-libs/opal-2.2.$[${PV##*.}-1]
18
	>=net-libs/opal-3.4.1
17
	>=x11-libs/gtk+-2.4.0
19
	>=x11-libs/gtk+-2.12.0:2
18
	>=dev-libs/glib-2.0.0
20
	>=dev-libs/glib-2.8.0:2
19
	sdl? ( >=media-libs/libsdl-1.2.4 )
21
	dev-libs/libsigc++:2
20
	dbus? ( >=dev-libs/dbus-glib-0.71 )
22
	dev-libs/libxml2:2
21
	avahi? ( net-dns/avahi )
23
	avahi? ( >=net-dns/avahi-0.6.0 )
22
	gnome? (
24
	dbus? ( >=dev-libs/dbus-glib-0.36 )
23
		>=gnome-base/libbonobo-2.2.0
25
	eds? ( >=gnome-extra/evolution-data-server-1.2 )
24
		>=gnome-base/libgnomeui-2.2.0
26
	gconf? ( >=gnome-base/gconf-2.6.0:2 )
25
		>=gnome-base/libgnome-2.2.0
27
	gnome? ( >=gnome-base/libgnome-2.14.0
26
		>=gnome-base/gconf-2.2.0
28
		>=gnome-base/libgnomeui-2.14.0 )
27
		>=gnome-base/orbit-2.5.0
29
	ldap? ( net-nds/openldap )
28
		gnome-extra/evolution-data-server
30
	libnotify? ( x11-libs/libnotify )
29
		>=media-sound/esound-0.2.28 )"
31
	xv? ( x11-libs/libXv )"
30
32
31
DEPEND="${RDEPEND}
33
DEPEND="${RDEPEND}
32
	dev-lang/perl
34
	>=sys-devel/make-3.81
33
	>=dev-util/pkgconfig-0.12.0
35
	>=dev-util/pkgconfig-0.12.0
34
	>=dev-util/intltool-0.20
36
	>=dev-util/intltool-0.35
35
	gnome? ( app-text/scrollkeeper
37
	doc? ( app-text/scrollkeeper
36
		doc? ( app-text/gnome-doc-utils ) )"
38
		app-text/gnome-doc-utils )"
37
39
38
DOCS="AUTHORS ChangeLog NEWS"
40
DOCS="AUTHORS ChangeLog FAQ NEWS README"
39
41
40
pkg_setup() {
42
pkg_setup() {
41
	if ! built_with_use dev-libs/pwlib ldap; then
43
	# ekiga has to be built like opal and ptlib but as opal has to be built
42
		eerror "You need to build dev-libs/pwlib with USE=ldap enabled."
44
	# like ptlib, it should be possible to check only opal but as ekiga is
43
		die "Pwlib w/o ldap-support detected."
45
	# linking to both, we are cheking both
46
	if use debug && (! built_with_use dev-libs/ptlib debug ||
47
		! built_with_use net-libs/opal debug); then
48
		eerror "You need to build dev-libs/ptlib and net-libs/opal with\
49
 USE=debug enabled."
50
		die "dev-libs/ptlib and net-libs/opal have to be built with USE=debug"
44
	fi
51
	fi
45
52
46
	if use avahi && ! built_with_use net-dns/avahi dbus; then
53
	if ! use debug && (built_with_use dev-libs/ptlib debug ||
47
		eerror "You need to build net-dns/avahi with USE=dbus enabled."
54
		built_with_use net-libs/opal debug); then
48
		die "Avahi without dbus-support detected."
55
		eerror "You need to build dev-libs/ptlib and net-libs/opal without\
56
 USE=debug."
57
		die "dev-libs/ptlib and net-libs/opal has not to be built with USE=debug"
49
	fi
58
	fi
50
59
60
	# dbus-service is always enable if dbus is enable, no reason to disable it
51
	G2CONF="${G2CONF}
61
	G2CONF="${G2CONF}
52
		$(use_enable dbus)
53
		$(use_enable sdl)
54
		$(use_enable avahi)
62
		$(use_enable avahi)
55
		$(use_enable doc)
63
		$(use_enable dbus)
64
		$(use_enable dbus dbus_service)
65
		$(use_enable debug)
66
		$(use_enable doc gdu)
67
		$(use_enable eds)
68
		$(use_enable gconf)
56
		$(use_enable gnome)
69
		$(use_enable gnome)
57
		--disable-scrollkeeper"
70
		$(use_enable ldap)
71
		$(use_enable libnotify notify)
72
		$(use_enable xv)"
58
}
73
}
59
74
60
src_unpack() {
75
src_unpack() {
61
	gnome2_src_unpack
76
	gnome2_src_unpack
62
77
63
	# Fix configure to install schemafile into the proper directory
78
	# remove call to gconftool-2 --shutdown
64
	epatch "${FILESDIR}"/${PN}-1.99.0-configure.patch
79
	sed -i -e '/gconftool-2 --shutdown/d' Makefile.in \
65
80
		|| die "Patching Makefile.in failed"
66
	# Fix gnome-doc-utils detection
81
67
	epatch "${FILESDIR}"/${P}-gdu.patch
82
	# fix ekiga-helper dbus service .in file
68
}
83
	sed -i -e 's/@prefix@\/bin\/@PACKAGE_NAME@/@bindir@\/ekiga/'\
69
84
		src/components/org.ekiga.Helper.service.in \
70
src_install() {
85
		|| die "Patching src/components/org.ekiga.Helper.service.in failed"
71
	if use gnome; then
72
		gnome2_src_install
73
	else
74
		emake DESTDIR="${D}" install || die "make install failed"
75
76
		dodoc ${DOCS}
77
	fi
78
}
86
}
79
87
80
pkg_postinst() {
88
pkg_postinst() {
81
	if use gnome; then
89
	gnome2_pkg_postinst
82
		gnome2_pkg_postinst
83
90
84
		# we need to fix the GConf permissions, see bug #59764
91
	if ! use gnome; then
85
		einfo "Fixing GConf permissions for ekiga"
92
		ewarn "USE=-gnome is experimental, some weirdness with the UI and"
86
		ekiga-config-tool --fix-permissions
93
		ewarn "config keys should appear."
87
	fi
94
	fi
88
}
95
}

Return to bug 238554