Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=f844bf5e9b8cdeb30b785a39cfb2f19aa59b0569

commit f844bf5e9b8cdeb30b785a39cfb2f19aa59b0569
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Tue Dec 22 10:47:25 2009 +0000

moonlight-2.0-1-i686
*new package

diff --git a/source/xlib-extra/moonlight/FrugalBuild 
b/source/xlib-extra/moonlight/FrugalBuild
new file mode 100644
index 0000000..dd96d2b
--- /dev/null
+++ b/source/xlib-extra/moonlight/FrugalBuild
@@ -0,0 +1,106 @@
+# Compiling time: 0.39 SBU
+# Maintainer: bouleetbil <bouleet...@frogdev.info>
+
+USE_DEVEL=${USE_DEVEL:-"n"}
+
+#To launch Firefox with shape caching and ffmpeg converters use:"
+#MOONLIGHT_OVERRIDES="shapecache=yes,converter=ffmpeg" firefox'
+
+pkgname=moonlight
+pkgrel=1
+pkgdesc="Moonlight is an open source implementation of Microsoft Silverlight 
for Unix systems."
+url="http://www.go-mono.com/moonlight/";
+depends=('gtk+2' 'libxau' 'libxdmcp' 'freetype2' 'alsa-lib' 'libstdc++' 
'libxdamage' 'libxext' 'libxml2' \
+       'ffmpeg' 'dbus-glib' 'ndesk-dbus' 'imagemagick' 'poppler-glib' 
'gtk-sharp')
+makedepends=('firefox' 'zip' 'gsf-sharp' 'gtksourceview-sharp' 'monodoc'\
+       'xulrunner')
+options=('scriptlet')
+groups=('xlib-extra')
+archs=('i686')
+
+subpkgs=("$pkgname-mozilla")
+subdescs=('moonlight extension for Mozilla')
+subdepends=("firefox mono")
+subgroups=('xlib-extra')
+subarchs=('i686')
+
+if ! Fuse $USE_DEVEL; then
+       pkgver=2.0
+       up2date="Flasttar ftp://ftp.novell.com/pub/mono/sources/moon/2.0/";
+       
source=(ftp://ftp.novell.com/pub/mono/sources/moon/2.0/$pkgname-$pkgver.tar.bz2 
\
+               ftp://ftp.novell.com/pub/mono/sources/moon/2.0/mono-2.6.tar.bz2 
\
+               
ftp://ftp.novell.com/pub/mono/sources/moon/2.0/mono-basic-2.6.tar.bz2 \
+               silverlight-ff3-quirks.user.js)
+       Finclude mono
+       sha1sums=('7345749a4415c731abbe55f0b507f772421ea75a' \
+          '34f39e24af152921c1c7877c4b92af414ca25ad1' \
+          '25dfe9878597ef47cf1febcaa2adf13b10cf203f' \
+          'c22294f495294351ae5e2ba3c64797de536d7369')
+else
+       pkgver=0.8.2_svn121479
+       _F_scm_type="subversion"
+       _F_scm_url="http://anonsvn.mono-project.com/source/trunk/moon";
+       Finclude scm mono
+       _F_cd_path=$pkgname
+       Finclude mono scm
+fi
+
+Fconfopts="${fconfop...@]} \
+       --enable-user-plugin --with-ffmpeg=yes --with-moonlight=yes \
+       --enable-desktop-support \
+       --with-ff3=yes --with-ff2=no --with-mozilla=yes \
+       --with-pulseaudio=no \
+       --with-cairo=system \
+       --with-pixman=system \
+       --with-debug=no \
+       --with-mcspath=../mono-2.6/mcs --with-mono-basic-path=../mono-basic-2.6"
+
+build() {
+       unset MAKEFLAGS
+       Fmonoexport
+       Fcd
+       #For find ffmpeg
+       Fsed "\$(avutil_libdir)/" "/usr/lib/" plugin/install/Makefile.*
+       Fsed "\$(avcodec_libdir)/" "/usr/lib/" plugin/install/Makefile.*
+       Fsed "./check_xpi.sh" "#./check_xpi.sh" plugin/install/Makefile*
+
+       cd ../mono-2.6 || Fdie
+       Fmake
+       cd ../mono-basic-2.6 || Fdie
+       Fmake
+
+       if Fuse $USE_DEVEL; then
+               Funpack_scm
+               Fcd
+               sh ./autogen.sh $Fconfopts || Fdie
+       else
+               cd ../$pkgname-$pkgver || Fdie
+               Fpatchall
+               Fautoreconf
+       fi
+
+       Fmake
+       Fmakeinstall
+
+       #build xpi
+       make user-plugin || Fdie
+
+       # "Install" the Mozilla extension
+       Fmkdir /usr/share/doc/$pkgname-$pkgver/mozilla-extension
+       Fmkdir /usr/lib/firefox/extensions/moonli...@novell.com
+       cd $Fdestdir/usr/lib/firefox/extensions/moonli...@novell.com
+       unzip -qqo 
$Fsrcdir/$pkgname-$pkgver/plugin/install/novell-moonlight.xpi || Fdie
+       chmod 644 install.rdf || Fdie
+       Fdirschmod  /usr/lib/firefox/extensions 755
+       Ffileschmod /usr/lib/firefox/extensions 644
+       cp $Fsrcdir/silverlight-ff3-quirks.user.js 
$Fdestdir/usr/share/doc/$pkgname-$pkgver/mozilla-extension/ || Fdie
+
+       #split package
+       #extension
+       Fsplit $pkgname-mozilla usr/share/doc/$pkgname-$pkgver/mozilla-extension
+       Fsplit $pkgname-mozilla usr/lib/firefox/extensions
+
+       Fmonocleanup
+}
+
+# optimization OK
diff --git a/source/xlib-extra/moonlight/silverlight-ff3-quirks.user.js 
b/source/xlib-extra/moonlight/silverlight-ff3-quirks.user.js
new file mode 100644
index 0000000..a310727
--- /dev/null
+++ b/source/xlib-extra/moonlight/silverlight-ff3-quirks.user.js
@@ -0,0 +1,94 @@
+// silverlight-ff3-quirks
+//
+// FireFox3 changed the way that <object /> tags are handled breaking
+// Silverlight / Moonlight.  This script fixes these bugs by patching the
+// offending method.
+//
+// 2008-07-18
+//
+// (c) 2008 Geoff Norton
+// Released under the WTFPL
+// http://sam.zoy.org/wtfpl/COPYING
+//
+// ==UserScript==
+// @name    FireFox3 Silverlight Quirks
+// @namespace    http://blog.sublimeintervention.com/userscripts/
+// @description    Fixes Silverlight javascript on FireFox 3
+// @include    *
+// ==/UserScript==
+//
+
+var ftn = '' + unsafeWindow.Silverlight.isInstalled;
+
+if (ftn.indexOf ("data=") > 0 || ftn.indexOf ("<embed") > 0 ) {
+    unsafeWindow.Silverlight.isInstalled = function(e) {
+               var a = false, j = null;
+               try {
+                       var i = null;
+                       try {
+                               i = new ActiveXObject("AgControl.AgControl");
+                               if (e == null) {
+                                       a = true;
+                               } else if (i.IsVersionSupported(e)) {
+                                       a = true;
+                               }
+                               i = null;
+                       } catch (l) {
+                               var k = 
unsafeWindow.navigator.plugins['Silverlight Plug-In'];
+                               if (k) {
+                                       if (e === null) {
+                                               a = true;
+                                       } else {
+                                               var h = k.description;
+                                               if (h === "1.0.30226.2") {
+                                                       h = "2.0.30226.2";
+                                               }
+                                               var b = h.split(".");
+                                               while (b.length > 3) {
+                                                       b.pop();
+                                               }
+                                               while (b.length < 4) {
+                                                       b.push(0);
+                                               }
+                                               var d = e.split(".");
+                                               while (d.length > 4) {
+                                                       d.pop();
+                                               }
+                                               var c, g, f = 0;
+                                               do {
+                                                       c = parseInt(d[f], 10);
+                                                       g = parseInt(b[f], 10);
+                                                       f++;
+                                               } while (f < d.length && c === 
g);
+                                               if (c <= g && !isNaN(c)) {
+                                                       a = true;
+                                               }
+                                       }
+                               }
+                       }
+               } catch (l) {
+                       a = false;
+               }
+               if (j) {
+                       unsafeWindow.document.body.removeChild(j);
+               }
+               return a;
+       };
+
+    if (typeof unsafeWindow.createSilverlight != 'undefined') {
+        var imgs = document.getElementsByTagName ('img');
+        var removed = false;
+
+        for (var i = 0; i < imgs.length; i++) {
+            if (imgs[i].src = 
'http://go.microsoft.com/fwlink/?LinkID=92801&clcid=0x409') {
+                imgs[i].style.display = 'none';
+                removed = true;
+            }
+        }
+
+        if (removed) {
+            unsafeWindow.setTimeout (unsafeWindow.createSilverlight, 1000);
+        }
+    }
+}
+
_______________________________________________
Frugalware-git mailing list
Frugalware-git@frugalware.org
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to