Gentoo Archives: gentoo-commits

From: Jory Pratt <anarchy@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/mozilla:master commit in: www-plugins/gecko-mediaplayer/, www-plugins/gecko-mediaplayer/files/
Date: Wed, 30 Nov 2011 01:15:14
Message-Id: 6c2794c8366cf156e115c320ed54eff713e0aece.anarchy@gentoo
1 commit: 6c2794c8366cf156e115c320ed54eff713e0aece
2 Author: Jory A. Pratt <anarchy <AT> gentoo <DOT> org>
3 AuthorDate: Wed Nov 30 01:13:55 2011 +0000
4 Commit: Jory Pratt <anarchy <AT> gentoo <DOT> org>
5 CommitDate: Wed Nov 30 01:13:55 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/mozilla.git;a=commit;h=6c2794c8
7
8 add npapi-sdk support to gecko-mediaplayer bug #383149
9
10 ---
11 www-plugins/gecko-mediaplayer/Manifest | 3 +
12 .../gecko-mediaplayer-1.0.5_beta1-npapi-sdk.patch | 38 +++++++++++++++
13 .../gecko-mediaplayer-1.0.5_beta1.ebuild | 49 ++++++++++++++++++++
14 3 files changed, 90 insertions(+), 0 deletions(-)
15
16 diff --git a/www-plugins/gecko-mediaplayer/Manifest b/www-plugins/gecko-mediaplayer/Manifest
17 new file mode 100644
18 index 0000000..8c9b76e
19 --- /dev/null
20 +++ b/www-plugins/gecko-mediaplayer/Manifest
21 @@ -0,0 +1,3 @@
22 +AUX gecko-mediaplayer-1.0.5_beta1-npapi-sdk.patch 1195 RMD160 178ee3f2bfe3445fac4a854366d8cf2acdf0d53e SHA1 5a57cec08a1d840ec0fafa5a021430e809b84283 SHA256 ea17929cd8c10ebd54d4b3a919c1a8bb033f347625ecc0941b5b3421ab8bba15
23 +DIST gecko-mediaplayer-1.0.5b1.tar.gz 260120 RMD160 30722136572f350400220d08ff58cd98f74aae15 SHA1 c5e8e927325b7503d8dc082407a89177ef93874e SHA256 1fb2dc17060e9748ead2e0ad2b37824e48c529af4718e939dbff5b8f5736f973
24 +EBUILD gecko-mediaplayer-1.0.5_beta1.ebuild 1155 RMD160 01a8bd3642752c5a8a730d9a05143140a109d8c7 SHA1 69f768a3ce1aedea788af01b082121ae4a57fc0a SHA256 422a3fbde0959506917175d1db2eae594d222b9a2eb1b988c79be028dd1c9cbf
25
26 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
27 new file mode 100644
28 index 0000000..95caaa4
29 --- /dev/null
30 +++ b/www-plugins/gecko-mediaplayer/files/gecko-mediaplayer-1.0.5_beta1-npapi-sdk.patch
31 @@ -0,0 +1,38 @@
32 +--- a/configure.in 2011-07-01 19:40:13.000000000 +0300
33 ++++ b/configure.in 2011-09-15 21:10:22.000000000 +0300
34 +@@ -109,8 +109,17 @@
35 + ],[AC_MSG_WARN([iceape-plugin not found, trying another])])
36 + fi
37 +
38 ++if test "$GECKO_CFLAGS" = ""; then
39 ++PKG_CHECK_MODULES(GECKO, [npapi-sdk],[ AC_MSG_NOTICE([Using npapi-sdk])
40 ++ AC_DEFINE([HAVE_NEW_XULRUNNER],[1],[Define to 1 if using libxul 1.9.2 or higher])
41 ++ ],[AC_MSG_ERROR([npapi-sdk not found, all out ot tries])])
42 ++fi
43 ++
44 ++
45 + PKG_CHECK_MODULES(NSPR, [nspr],[
46 + libdir=`$PKG_CONFIG --variable=libdir nspr`
47 ++ GECKO_CFLAGS="$GECKO_CFLAGS $NSPR_CFLAGS"
48 ++ AC_DEFINE([HAVE_NSPR],[1],[Define to 1 if using nspr])
49 + AC_SUBST(libdir)
50 + ],[AC_MSG_WARN([nspr not found, may not be needed])])
51 +
52 +--- a/src/plugin.cpp 2011-11-29 14:20:21.000000000 -0500
53 ++++ b/src/plugin.cpp 2011-11-29 14:22:52.000000000 -0500
54 +@@ -42,10 +42,14 @@
55 + #include "plugin_setup.h"
56 + #include "plugin_types.h"
57 + #include "plugin_dbus.h"
58 ++#ifdef HAVE_NSPR
59 ++#include <nspr/nspr.h>
60 ++#else
61 + #include <nsIPrefBranch.h>
62 + #include <nsIPrefService.h>
63 + #include <nsIServiceManager.h>
64 + #include <nsISupportsPrimitives.h>
65 ++#endif
66 + #include <dlfcn.h>
67 +
68 + static NPObject *sWindowObj;
69 +
70
71 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
72 new file mode 100644
73 index 0000000..86328e0
74 --- /dev/null
75 +++ b/www-plugins/gecko-mediaplayer/gecko-mediaplayer-1.0.5_beta1.ebuild
76 @@ -0,0 +1,49 @@
77 +# Copyright 1999-2011 Gentoo Foundation
78 +# Distributed under the terms of the GNU General Public License v2
79 +# $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 $
80 +
81 +EAPI=4
82 +inherit eutils multilib nsplugins
83 +
84 +MY_P=${PN}-${PV/_beta/b}
85 +
86 +DESCRIPTION="A browser plugin that uses GNOME MPlayer"
87 +HOMEPAGE="http://code.google.com/p/gecko-mediaplayer/"
88 +SRC_URI="http://${PN}.googlecode.com/files/${MY_P}.tar.gz"
89 +
90 +LICENSE="GPL-2"
91 +SLOT="0"
92 +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
93 +IUSE="+curl"
94 +
95 +RDEPEND=">=dev-libs/dbus-glib-0.92
96 + >=dev-libs/glib-2.26:2
97 + dev-libs/nspr
98 + >=media-libs/gmtk-${PV}
99 + >=media-video/gnome-mplayer-${PV}[dbus]
100 + =net-misc/npapi-sdk-0.27
101 + curl? ( net-misc/curl )"
102 +DEPEND="${RDEPEND}
103 + dev-util/pkgconfig
104 + sys-devel/gettext"
105 +
106 +DOCS="ChangeLog DOCS/tech/*.txt"
107 +
108 +S=${WORKDIR}/${MY_P}
109 +
110 +src_prepare() {
111 + epatch "${FILESDIR}/${PN}-1.0.5_beta1-npapi-sdk.patch"
112 +}
113 +
114 +src_configure() {
115 + export PKG_CONFIG_PATH="${T}"
116 +
117 + econf \
118 + --with-plugin-dir=/usr/$(get_libdir)/${PLUGINS_DIR} \
119 + $(use_with curl libcurl)
120 +}
121 +
122 +src_install() {
123 + default
124 + rm -rf "${ED}"/usr/share/doc/${PN}
125 +}