summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Jezak <josejx@gentoo.org>2007-08-10 10:37:42 +0000
committerJoseph Jezak <josejx@gentoo.org>2007-08-10 10:37:42 +0000
commit41549f03290912a44e3151cbe7749d07f4079a39 (patch)
treeffe1bd2e133ad66effc49c34473fb686692d8ef3 /net-www/mplayerplug-in
parentRemove old version. (diff)
downloadgentoo-2-41549f03290912a44e3151cbe7749d07f4079a39.tar.gz
gentoo-2-41549f03290912a44e3151cbe7749d07f4079a39.tar.bz2
gentoo-2-41549f03290912a44e3151cbe7749d07f4079a39.zip
Added latest version and nls patch from Petr Pisar (bug #183472).
(Portage version: 2.1.3_rc9)
Diffstat (limited to 'net-www/mplayerplug-in')
-rw-r--r--net-www/mplayerplug-in/ChangeLog7
-rw-r--r--net-www/mplayerplug-in/files/digest-mplayerplug-in-3.453
-rw-r--r--net-www/mplayerplug-in/mplayerplug-in-3.45.ebuild112
3 files changed, 121 insertions, 1 deletions
diff --git a/net-www/mplayerplug-in/ChangeLog b/net-www/mplayerplug-in/ChangeLog
index 25d7b5bb8d16..21e01511dd47 100644
--- a/net-www/mplayerplug-in/ChangeLog
+++ b/net-www/mplayerplug-in/ChangeLog
@@ -1,6 +1,11 @@
# ChangeLog for net-www/mplayerplug-in
# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-www/mplayerplug-in/ChangeLog,v 1.95 2007/07/22 07:42:29 dberkholz Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-www/mplayerplug-in/ChangeLog,v 1.96 2007/08/10 10:37:42 josejx Exp $
+
+*mplayerplug-in-3.45 (10 Aug 2007)
+
+ 10 Aug 2007; Joseph Jezak <josejx@gentoo.org> +mplayerplug-in-3.45.ebuild:
+ Added latest version and nls patch from Petr Pisar (bug #183472).
22 Jul 2007; Donnie Berkholz <dberkholz@gentoo.org>;
mplayerplug-in-3.21.ebuild, mplayerplug-in-3.31-r1.ebuild,
diff --git a/net-www/mplayerplug-in/files/digest-mplayerplug-in-3.45 b/net-www/mplayerplug-in/files/digest-mplayerplug-in-3.45
new file mode 100644
index 000000000000..c5ae59a06562
--- /dev/null
+++ b/net-www/mplayerplug-in/files/digest-mplayerplug-in-3.45
@@ -0,0 +1,3 @@
+MD5 b44be48b2d34e6509b8f12597da7a712 mplayerplug-in-3.45.tar.gz 228032
+RMD160 6a9700860397a6c7952b8e2ea8a9a610376a1528 mplayerplug-in-3.45.tar.gz 228032
+SHA256 3fcab891adf1b32374e5f525b0e91e1a2393ba85429f9ec654edadb08f06d431 mplayerplug-in-3.45.tar.gz 228032
diff --git a/net-www/mplayerplug-in/mplayerplug-in-3.45.ebuild b/net-www/mplayerplug-in/mplayerplug-in-3.45.ebuild
new file mode 100644
index 000000000000..6b73542eb4f6
--- /dev/null
+++ b/net-www/mplayerplug-in/mplayerplug-in-3.45.ebuild
@@ -0,0 +1,112 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-www/mplayerplug-in/mplayerplug-in-3.45.ebuild,v 1.1 2007/08/10 10:37:42 josejx Exp $
+
+inherit eutils multilib
+
+DESCRIPTION="mplayer plug-in for Gecko based browsers"
+HOMEPAGE="http://mplayerplug-in.sourceforge.net/"
+SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 -hppa ~ia64 ~ppc ~sparc ~x86"
+IUSE="gtk divx gmedia mplayer-bin nls realmedia quicktime wmp"
+
+LANGS="da de en_US es fr hu it ja ko nb pl pt_BR nl ru se zh_CN"
+for X in ${LANGS}; do IUSE="${IUSE} linguas_${X}"; done
+
+DEPEND="
+ || ( www-client/mozilla-firefox
+ www-client/seamonkey
+ www-client/epiphany
+ )
+ || ( ( x11-libs/libXpm
+ x11-proto/xextproto
+ )
+ virtual/x11
+ )
+ gtk? (
+ >=x11-libs/gtk+-2.2.0
+ dev-libs/atk
+ >=dev-libs/glib-2.2.0
+ >=x11-libs/pango-1.2.1
+ )
+ mplayer-bin? ( media-video/mplayer-bin )
+ !mplayer-bin? ( >=media-video/mplayer-1.0_pre5 )
+ dev-util/pkgconfig"
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+ cd ${S}
+ epatch ${FILESDIR}/${PN}-3.40-cflags.patch
+ epatch ${FILESDIR}/${PN}-gcc4.patch
+ ### Adds support for 32 bit binary mplayer on amd64
+ if use mplayer-bin; then
+ epatch ${FILESDIR}/${PN}-mplayer-bin.patch
+ fi
+ epatch ${FILESDIR}/${PN}-3.35-seamonkey.patch
+}
+
+src_compile() {
+ local myconf
+
+ # We force gtk2 now because moz only compiles against gtk2
+ if use gtk; then
+ myconf="${myconf} --enable-gtk2"
+ else
+ ewarn "For playback controls, you must enable gtk support."
+ myconf="${myconf} --enable-x"
+ fi
+
+ # Media Playback Support (bug #145517)
+ econf \
+ ${myconf} \
+ $(use_enable divx dvx) \
+ $(use_enable gmedia gmp) \
+ $(use_enable realmedia rm) \
+ $(use_enable quicktime qt) \
+ $(use_enable wmp) \
+ || die "econf failed"
+
+ emake || die "emake failed"
+}
+
+src_install() {
+ exeinto /usr/$(get_libdir)/nsbrowser/plugins
+ doexe mplayerplug-in.so || die "plugin failed"
+
+ insinto /usr/$(get_libdir)/nsbrowser/plugins
+ doins mplayerplug-in.xpt || die "xpt failed"
+
+ PLUGINS="gmp rm qt wmp dvx"
+
+ for plugin in ${PLUGINS}; do
+ if [ -e "mplayerplug-in-${plugin}.so" ]; then
+ ### Install the plugin
+ exeinto /usr/$(get_libdir)/nsbrowser/plugins
+ doexe "mplayerplug-in-${plugin}.so" || die "plugin ${plugin} failed"
+ ### Install the xpt
+ insinto /usr/$(get_libdir)/nsbrowser/plugins
+ doins "mplayerplug-in-${plugin}.xpt" || die "plugin ${plugin} xpt failed"
+ fi
+ done
+
+ if use nls; then
+ local WANT_LANGS
+ for X in ${LANGS}; do
+ if use linguas_${X}; then
+ WANT_LANGS="${WANT_LANGS} ${X}"
+ fi
+ done
+ emake -C po LANGUAGES="${WANT_LANGS# }" DESTDIR="${D}" install \
+ || die "Translation installation failed"
+ fi
+
+ insinto /etc
+ doins mplayerplug-in.conf
+
+ dodoc ChangeLog INSTALL README DOCS/tech/*.txt
+}