* [gentoo-commits] proj/mozilla:master commit in: www-plugins/gecko-mediaplayer/, www-plugins/gecko-mediaplayer/files/
@ 2011-11-30 1:15 Jory Pratt
0 siblings, 0 replies; only message in thread
From: Jory Pratt @ 2011-11-30 1:15 UTC (permalink / raw
To: gentoo-commits
commit: 6c2794c8366cf156e115c320ed54eff713e0aece
Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
AuthorDate: Wed Nov 30 01:13:55 2011 +0000
Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
CommitDate: Wed Nov 30 01:13:55 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=6c2794c8
add npapi-sdk support to gecko-mediaplayer bug #383149
---
www-plugins/gecko-mediaplayer/Manifest | 3 +
.../gecko-mediaplayer-1.0.5_beta1-npapi-sdk.patch | 38 +++++++++++++++
.../gecko-mediaplayer-1.0.5_beta1.ebuild | 49 ++++++++++++++++++++
3 files changed, 90 insertions(+), 0 deletions(-)
diff --git a/www-plugins/gecko-mediaplayer/Manifest b/www-plugins/gecko-mediaplayer/Manifest
new file mode 100644
index 0000000..8c9b76e
--- /dev/null
+++ b/www-plugins/gecko-mediaplayer/Manifest
@@ -0,0 +1,3 @@
+AUX gecko-mediaplayer-1.0.5_beta1-npapi-sdk.patch 1195 RMD160 178ee3f2bfe3445fac4a854366d8cf2acdf0d53e SHA1 5a57cec08a1d840ec0fafa5a021430e809b84283 SHA256 ea17929cd8c10ebd54d4b3a919c1a8bb033f347625ecc0941b5b3421ab8bba15
+DIST gecko-mediaplayer-1.0.5b1.tar.gz 260120 RMD160 30722136572f350400220d08ff58cd98f74aae15 SHA1 c5e8e927325b7503d8dc082407a89177ef93874e SHA256 1fb2dc17060e9748ead2e0ad2b37824e48c529af4718e939dbff5b8f5736f973
+EBUILD gecko-mediaplayer-1.0.5_beta1.ebuild 1155 RMD160 01a8bd3642752c5a8a730d9a05143140a109d8c7 SHA1 69f768a3ce1aedea788af01b082121ae4a57fc0a SHA256 422a3fbde0959506917175d1db2eae594d222b9a2eb1b988c79be028dd1c9cbf
diff --git a/www-plugins/gecko-mediaplayer/files/gecko-mediaplayer-1.0.5_beta1-npapi-sdk.patch b/www-plugins/gecko-mediaplayer/files/gecko-mediaplayer-1.0.5_beta1-npapi-sdk.patch
new file mode 100644
index 0000000..95caaa4
--- /dev/null
+++ b/www-plugins/gecko-mediaplayer/files/gecko-mediaplayer-1.0.5_beta1-npapi-sdk.patch
@@ -0,0 +1,38 @@
+--- a/configure.in 2011-07-01 19:40:13.000000000 +0300
++++ b/configure.in 2011-09-15 21:10:22.000000000 +0300
+@@ -109,8 +109,17 @@
+ ],[AC_MSG_WARN([iceape-plugin not found, trying another])])
+ fi
+
++if test "$GECKO_CFLAGS" = ""; then
++PKG_CHECK_MODULES(GECKO, [npapi-sdk],[ AC_MSG_NOTICE([Using npapi-sdk])
++ AC_DEFINE([HAVE_NEW_XULRUNNER],[1],[Define to 1 if using libxul 1.9.2 or higher])
++ ],[AC_MSG_ERROR([npapi-sdk not found, all out ot tries])])
++fi
++
++
+ PKG_CHECK_MODULES(NSPR, [nspr],[
+ libdir=`$PKG_CONFIG --variable=libdir nspr`
++ GECKO_CFLAGS="$GECKO_CFLAGS $NSPR_CFLAGS"
++ AC_DEFINE([HAVE_NSPR],[1],[Define to 1 if using nspr])
+ AC_SUBST(libdir)
+ ],[AC_MSG_WARN([nspr not found, may not be needed])])
+
+--- a/src/plugin.cpp 2011-11-29 14:20:21.000000000 -0500
++++ b/src/plugin.cpp 2011-11-29 14:22:52.000000000 -0500
+@@ -42,10 +42,14 @@
+ #include "plugin_setup.h"
+ #include "plugin_types.h"
+ #include "plugin_dbus.h"
++#ifdef HAVE_NSPR
++#include <nspr/nspr.h>
++#else
+ #include <nsIPrefBranch.h>
+ #include <nsIPrefService.h>
+ #include <nsIServiceManager.h>
+ #include <nsISupportsPrimitives.h>
++#endif
+ #include <dlfcn.h>
+
+ static NPObject *sWindowObj;
+
diff --git a/www-plugins/gecko-mediaplayer/gecko-mediaplayer-1.0.5_beta1.ebuild b/www-plugins/gecko-mediaplayer/gecko-mediaplayer-1.0.5_beta1.ebuild
new file mode 100644
index 0000000..86328e0
--- /dev/null
+++ b/www-plugins/gecko-mediaplayer/gecko-mediaplayer-1.0.5_beta1.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-plugins/gecko-mediaplayer/gecko-mediaplayer-1.0.5_beta1.ebuild,v 1.2 2011/11/24 21:41:09 ssuominen Exp $
+
+EAPI=4
+inherit eutils multilib nsplugins
+
+MY_P=${PN}-${PV/_beta/b}
+
+DESCRIPTION="A browser plugin that uses GNOME MPlayer"
+HOMEPAGE="http://code.google.com/p/gecko-mediaplayer/"
+SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
+IUSE="+curl"
+
+RDEPEND=">=dev-libs/dbus-glib-0.92
+ >=dev-libs/glib-2.26:2
+ dev-libs/nspr
+ >=media-libs/gmtk-${PV}
+ >=media-video/gnome-mplayer-${PV}[dbus]
+ =net-misc/npapi-sdk-0.27
+ curl? ( net-misc/curl )"
+DEPEND="${RDEPEND}
+ dev-util/pkgconfig
+ sys-devel/gettext"
+
+DOCS="ChangeLog DOCS/tech/*.txt"
+
+S=${WORKDIR}/${MY_P}
+
+src_prepare() {
+ epatch "${FILESDIR}/${PN}-1.0.5_beta1-npapi-sdk.patch"
+}
+
+src_configure() {
+ export PKG_CONFIG_PATH="${T}"
+
+ econf \
+ --with-plugin-dir=/usr/$(get_libdir)/${PLUGINS_DIR} \
+ $(use_with curl libcurl)
+}
+
+src_install() {
+ default
+ rm -rf "${ED}"/usr/share/doc/${PN}
+}
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-11-30 1:15 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-30 1:15 [gentoo-commits] proj/mozilla:master commit in: www-plugins/gecko-mediaplayer/, www-plugins/gecko-mediaplayer/files/ Jory Pratt
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox