/[gentoo-x86]/media-video/gxine/gxine-0.5.907.ebuild
Gentoo

Contents of /media-video/gxine/gxine-0.5.907.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Thu Jun 28 20:42:24 2012 UTC (2 years, 5 months ago) by ssuominen
Branch: MAIN
Changes since 1.6: +5 -1 lines
mozjs187 compat

(Portage version: 2.2.0_alpha113/cvs/Linux x86_64)

1 # Copyright 1999-2012 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.907.ebuild,v 1.6 2012/05/17 20:32:07 ssuominen Exp $
4
5 EAPI=4
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.xz"
11
12 LICENSE="GPL-2"
13 SLOT="0"
14 KEYWORDS="amd64 ppc ppc64 x86"
15 IUSE="gnome-screensaver linguas_cs linguas_de lirc nls nsplugin udev +xcb xinerama"
16
17 COMMON_DEPEND=">=media-libs/xine-lib-1.1.20
18 x11-libs/gtk+:2
19 >=dev-libs/glib-2
20 >=dev-lang/spidermonkey-1.8.2.15
21 x11-libs/libX11
22 x11-libs/libXext
23 x11-libs/libXrender
24 gnome-screensaver? ( >=dev-libs/dbus-glib-0.90 )
25 lirc? ( app-misc/lirc )
26 nls? ( virtual/libintl )
27 nsplugin? ( dev-libs/nspr
28 x11-libs/libXaw
29 x11-libs/libXt )
30 udev? ( || ( >=sys-fs/udev-171-r1[gudev] <sys-fs/udev-171-r1[extras] ) )
31 xcb? ( x11-libs/libxcb )
32 xinerama? ( x11-libs/libXinerama )"
33 RDEPEND="${COMMON_DEPEND}
34 gnome-screensaver? ( gnome-extra/gnome-screensaver )"
35 DEPEND="${COMMON_DEPEND}
36 virtual/pkgconfig
37 nls? ( sys-devel/gettext )"
38
39 src_prepare() {
40 # ld: cannot find -ljs
41 sed -i -e '/JS_LIBS="`spidermonkey_locate_lib/s:js:mozjs:' m4/_js.m4 || die
42
43 if has_version '>=dev-lang/spidermonkey-1.8.7'; then
44 sed -i -e 's:mozjs185:mozjs187:' m4/_js.m4 || die #422983
45 fi
46
47 epatch \
48 "${FILESDIR}"/${PN}-0.5.905-desktop.patch \
49 "${FILESDIR}"/${PN}-0.5.905-fix-nspr-useage.patch \
50 "${FILESDIR}"/${PN}-0.5.906-endif.patch \
51 "${FILESDIR}"/${PN}-0.5.907-glib-2.31.patch
52
53 # need to disable calling of xine-list when running without
54 # userpriv, otherwise we get sandbox violations (bug #233847)
55 if [[ ${EUID} == "0" ]]; then
56 sed -i -e 's:^XINE_LIST=.*$:XINE_LIST=:' configure.ac || die
57 fi
58
59 eautoreconf
60 }
61
62 src_configure() {
63 econf \
64 $(use_enable nls) \
65 $(use_enable lirc) \
66 --enable-watchdog \
67 $(use_with xcb) \
68 $(has_version '<dev-lang/spidermonkey-1.8.5' && echo --with-spidermonkey=/usr/include/js) \
69 $(use_with nsplugin browser-plugin) \
70 $(use_with udev gudev) \
71 --without-hal \
72 $(use_with gnome-screensaver dbus) \
73 $(use_with xinerama)
74 }
75
76 src_install() {
77 emake DESTDIR="${D}" \
78 docdir=/usr/share/doc/${PF} \
79 docsdir=/usr/share/doc/${PF} \
80 install
81
82 dodoc AUTHORS BUGS ChangeLog README{,_l10n} TODO
83
84 use linguas_cs && dodoc README.cs
85 use linguas_de && dodoc README.de
86
87 use nsplugin && inst_plugin /usr/$(get_libdir)/gxine/gxineplugin.so
88 }
89
90 pkg_preinst() {
91 gnome2_icon_savelist
92 }
93
94 pkg_postinst() {
95 fdo-mime_desktop_database_update
96 fdo-mime_mime_database_update
97 gnome2_icon_cache_update
98 }
99
100 pkg_postrm() {
101 fdo-mime_desktop_database_update
102 fdo-mime_mime_database_update
103 gnome2_icon_cache_update
104 }

  ViewVC Help
Powered by ViewVC 1.1.20