Added
Link Here
|
1 |
# Copyright 1999-2010 Gentoo Foundation |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: /var/cvsroot/gentoo-x86/media-video/gxine/gxine-0.5.905.ebuild,v 1.6 2010/05/24 19:01:19 pacho Exp $ |
4 |
|
5 |
EAPI=2 |
6 |
inherit autotools eutils fdo-mime gnome2-utils multilib nsplugins |
7 |
|
8 |
DESCRIPTION="GTK+ Front-End for libxine" |
9 |
HOMEPAGE="http://xine.sourceforge.net/" |
10 |
SRC_URI="mirror://sourceforge/xine/${P}.tar.bz2" |
11 |
|
12 |
LICENSE="GPL-2" |
13 |
SLOT="0" |
14 |
KEYWORDS="amd64 ppc ppc64 x86" |
15 |
IUSE="gnome lirc nls nsplugin udev xcb xinerama" |
16 |
|
17 |
RDEPEND=">=media-libs/xine-lib-1.1.17 |
18 |
>=x11-libs/gtk+-2.8:2 |
19 |
>=dev-libs/glib-2.10:2 |
20 |
>=x11-libs/pango-1.12 |
21 |
>=dev-lang/spidermonkey-1.9.2.13 |
22 |
x11-libs/libX11 |
23 |
x11-libs/libXext |
24 |
x11-libs/libXrender |
25 |
gnome? ( dev-libs/dbus-glib |
26 |
gnome-extra/gnome-screensaver ) |
27 |
lirc? ( app-misc/lirc ) |
28 |
nls? ( virtual/libintl ) |
29 |
nsplugin? ( dev-libs/nspr |
30 |
x11-libs/libXaw |
31 |
x11-libs/libXt ) |
32 |
udev? ( >=sys-fs/udev-143[extras] ) |
33 |
xcb? ( x11-libs/libxcb ) |
34 |
xinerama? ( x11-libs/libXinerama )" |
35 |
DEPEND="${RDEPEND} |
36 |
dev-util/pkgconfig |
37 |
nls? ( sys-devel/gettext )" |
38 |
|
39 |
src_prepare() { |
40 |
epatch "${FILESDIR}"/${P}-desktop.patch |
41 |
epatch "${FILESDIR}"/${P}-spidermonkey-update.patch |
42 |
epatch "${FILESDIR}"/${P}-fix-nspr-useage.patch |
43 |
|
44 |
# need to disable calling of xine-list when running without |
45 |
# userpriv, otherwise we get sandbox violations (bug #233847) |
46 |
if [[ ${EUID} == "0" ]]; then |
47 |
sed -i 's:^XINE_LIST=.*$:XINE_LIST=:' "${S}/configure.ac" |
48 |
fi |
49 |
|
50 |
eautoreconf |
51 |
} |
52 |
|
53 |
src_configure() { |
54 |
econf \ |
55 |
--disable-dependency-tracking \ |
56 |
$(use_enable nls) \ |
57 |
$(use_enable lirc) \ |
58 |
--enable-watchdog \ |
59 |
$(use_with xcb) \ |
60 |
--with-spidermonkey=/usr/include/js \ |
61 |
$(use_with nsplugin browser-plugin) \ |
62 |
$(use_with udev gudev) \ |
63 |
--without-hal \ |
64 |
$(use_with gnome dbus) \ |
65 |
$(use_with xinerama) |
66 |
} |
67 |
|
68 |
src_install() { |
69 |
emake DESTDIR="${D}" \ |
70 |
docdir=/usr/share/doc/${PF} \ |
71 |
docsdir=/usr/share/doc/${PF} \ |
72 |
install || die |
73 |
|
74 |
dodoc AUTHORS BUGS ChangeLog NEWS README{,.{cs,de},_l10n} TODO |
75 |
use nsplugin && inst_plugin /usr/$(get_libdir)/gxine/gxineplugin.so |
76 |
} |
77 |
|
78 |
pkg_preinst() { |
79 |
gnome2_icon_savelist |
80 |
} |
81 |
|
82 |
pkg_postinst() { |
83 |
fdo-mime_desktop_database_update |
84 |
fdo-mime_mime_database_update |
85 |
gnome2_icon_cache_update |
86 |
} |
87 |
|
88 |
pkg_postrm() { |
89 |
fdo-mime_desktop_database_update |
90 |
fdo-mime_mime_database_update |
91 |
gnome2_icon_cache_update |
92 |
} |