diff options
author | Samuli Suominen <ssuominen@gentoo.org> | 2011-01-02 18:16:32 +0000 |
---|---|---|
committer | Samuli Suominen <ssuominen@gentoo.org> | 2011-01-02 18:16:32 +0000 |
commit | 50b361d62e30cbe67841689f90ece2489f38709d (patch) | |
tree | f9675f42e73f55a918bcb317ad2514628cd59860 /media-video | |
parent | Punt deprecated liba52/libdts usage #350360 by hal. (diff) | |
download | gentoo-2-50b361d62e30cbe67841689f90ece2489f38709d.tar.gz gentoo-2-50b361d62e30cbe67841689f90ece2489f38709d.tar.bz2 gentoo-2-50b361d62e30cbe67841689f90ece2489f38709d.zip |
Fix building with latest spidermonkey (unbundled from firefox's tarball) wrt #350134 by Jory A. Pratt and Juergen Rose.
(Portage version: 2.2.0_alpha10/cvs/Linux x86_64)
Diffstat (limited to 'media-video')
-rw-r--r-- | media-video/gxine/ChangeLog | 12 | ||||
-rw-r--r-- | media-video/gxine/files/gxine-0.5.905-fix-nspr-useage.patch | 11 | ||||
-rw-r--r-- | media-video/gxine/files/gxine-0.5.905-spidermonkey-update.patch | 24 | ||||
-rw-r--r-- | media-video/gxine/gxine-0.5.905-r1.ebuild | 93 |
4 files changed, 138 insertions, 2 deletions
diff --git a/media-video/gxine/ChangeLog b/media-video/gxine/ChangeLog index f7c84eb75809..1f09f71d7533 100644 --- a/media-video/gxine/ChangeLog +++ b/media-video/gxine/ChangeLog @@ -1,6 +1,14 @@ # ChangeLog for media-video/gxine -# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/gxine/ChangeLog,v 1.103 2010/05/24 19:01:19 pacho Exp $ +# Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/gxine/ChangeLog,v 1.104 2011/01/02 18:16:32 ssuominen Exp $ + +*gxine-0.5.905-r1 (02 Jan 2011) + + 02 Jan 2011; Samuli Suominen <ssuominen@gentoo.org> +gxine-0.5.905-r1.ebuild, + +files/gxine-0.5.905-fix-nspr-useage.patch, + +files/gxine-0.5.905-spidermonkey-update.patch: + Fix building with latest spidermonkey (unbundled from firefox's tarball) wrt + #350134 by Jory A. Pratt and Juergen Rose. 24 May 2010; Pacho Ramos <pacho@gentoo.org> gxine-0.5.905.ebuild: stable amd64, bug 317145 diff --git a/media-video/gxine/files/gxine-0.5.905-fix-nspr-useage.patch b/media-video/gxine/files/gxine-0.5.905-fix-nspr-useage.patch new file mode 100644 index 000000000000..9d0e5f87da5c --- /dev/null +++ b/media-video/gxine/files/gxine-0.5.905-fix-nspr-useage.patch @@ -0,0 +1,11 @@ +--- a/src/Makefile.am 2011-01-02 11:33:09.675000001 -0600 ++++ b/src/Makefile.am 2011-01-02 11:34:05.205000001 -0600 +@@ -4,7 +4,7 @@ + -I$(top_builddir)/pixmaps $(LIRC_INCLUDE) + + AM_CFLAGS = $(GNU99) $(XINE_CFLAGS) $(X_CFLAGS) \ +- $(GTK2_CFLAGS) $(GTHREAD2_CFLAGS) \ ++ $(GTK2_CFLAGS) $(GTHREAD2_CFLAGS) $(NSPR_CFLAGS) \ + $(HAL_CFLAGS) $(UDEV_CFLAGS) $(DBUS_CFLAGS) $(JS_CFLAGS) \ + -DLOCALEDIR=\"$(localedir)\" + diff --git a/media-video/gxine/files/gxine-0.5.905-spidermonkey-update.patch b/media-video/gxine/files/gxine-0.5.905-spidermonkey-update.patch new file mode 100644 index 000000000000..5a5acad9af77 --- /dev/null +++ b/media-video/gxine/files/gxine-0.5.905-spidermonkey-update.patch @@ -0,0 +1,24 @@ +--- a/m4/_js.m4 2011-01-02 10:54:36.821000001 -0600 ++++ b/m4/_js.m4 2011-01-02 10:55:45.368000001 -0600 +@@ -103,7 +103,7 @@ + # Failed... + + if test x"$JS_CFLAGS" = x; then +- AC_MSG_ERROR([libjs not found]) ++ AC_MSG_ERROR([libmozjs not found]) + fi + else + saved_CFLAGS="$CFLAGS" +@@ -118,10 +118,10 @@ + echo moz + ;; + esac`" +- JS_LIBS="`spidermonkey_locate_lib([$JS_LIBS])`js" ++ JS_LIBS="`spidermonkey_locate_lib([$JS_LIBS])`mozjs" + AC_DEFINE(HAVE_LIBSMJS, 1, [Define if you have jsapi.h]) + ], +- [AC_MSG_ERROR([libjs not found])], ++ [AC_MSG_ERROR([libmozjs not found])], + [#define XP_UNIX]) + CFLAGS="$saved_CFLAGS" + fi diff --git a/media-video/gxine/gxine-0.5.905-r1.ebuild b/media-video/gxine/gxine-0.5.905-r1.ebuild new file mode 100644 index 000000000000..27e1fdf98ac3 --- /dev/null +++ b/media-video/gxine/gxine-0.5.905-r1.ebuild @@ -0,0 +1,93 @@ +# Copyright 1999-2011 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/gxine/gxine-0.5.905-r1.ebuild,v 1.1 2011/01/02 18:16:32 ssuominen Exp $ + +EAPI=2 +inherit autotools eutils fdo-mime gnome2-utils multilib nsplugins + +DESCRIPTION="GTK+ Front-End for libxine" +HOMEPAGE="http://xine.sourceforge.net/" +SRC_URI="mirror://sourceforge/xine/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="gnome lirc nls nsplugin udev xcb xinerama" + +RDEPEND=">=media-libs/xine-lib-1.1.17 + >=x11-libs/gtk+-2.8:2 + >=dev-libs/glib-2.10:2 + >=x11-libs/pango-1.12 + >=dev-lang/spidermonkey-1.9.2.13 + x11-libs/libX11 + x11-libs/libXext + x11-libs/libXrender + gnome? ( dev-libs/dbus-glib + gnome-extra/gnome-screensaver ) + lirc? ( app-misc/lirc ) + nls? ( virtual/libintl ) + nsplugin? ( dev-libs/nspr + x11-libs/libXaw + x11-libs/libXt ) + udev? ( >=sys-fs/udev-143[extras] ) + xcb? ( x11-libs/libxcb ) + xinerama? ( x11-libs/libXinerama )" +DEPEND="${RDEPEND} + dev-util/pkgconfig + nls? ( sys-devel/gettext )" + +src_prepare() { + epatch \ + "${FILESDIR}"/${P}-desktop.patch \ + "${FILESDIR}"/${P}-spidermonkey-update.patch \ + "${FILESDIR}"/${P}-fix-nspr-useage.patch + + # need to disable calling of xine-list when running without + # userpriv, otherwise we get sandbox violations (bug #233847) + if [[ ${EUID} == "0" ]]; then + sed -i 's:^XINE_LIST=.*$:XINE_LIST=:' "${S}/configure.ac" + fi + + eautoreconf +} + +src_configure() { + econf \ + --disable-dependency-tracking \ + $(use_enable nls) \ + $(use_enable lirc) \ + --enable-watchdog \ + $(use_with xcb) \ + --with-spidermonkey=/usr/include/js \ + $(use_with nsplugin browser-plugin) \ + $(use_with udev gudev) \ + --without-hal \ + $(use_with gnome dbus) \ + $(use_with xinerama) +} + +src_install() { + emake DESTDIR="${D}" \ + docdir=/usr/share/doc/${PF} \ + docsdir=/usr/share/doc/${PF} \ + install || die + + dodoc AUTHORS BUGS ChangeLog NEWS README{,.{cs,de},_l10n} TODO + use nsplugin && inst_plugin /usr/$(get_libdir)/gxine/gxineplugin.so +} + +pkg_preinst() { + gnome2_icon_savelist +} + +pkg_postinst() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + gnome2_icon_cache_update +} + +pkg_postrm() { + fdo-mime_desktop_database_update + fdo-mime_mime_database_update + gnome2_icon_cache_update +} |