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

commit 91d08aa3e4563e0fc3f5a2bcfc6b6ff4625c67bf
Author: bouleetbil <bouleet...@frogdev.info>
Date:   Fri Aug 13 02:02:01 2010 +0000

moonlight-2.99.0.9-1-i686
*version bump
*use a snapshot for works with latest firefox
*closes #4180
*tested with http://www.silverlight.net/ and 
http://www.pay4foss.org/jumpstation/PulseFlower/

diff --git a/source/xlib-extra/moonlight/FrugalBuild 
b/source/xlib-extra/moonlight/FrugalBuild
index 4127abe..afd5f69 100644
--- a/source/xlib-extra/moonlight/FrugalBuild
+++ b/source/xlib-extra/moonlight/FrugalBuild
@@ -7,67 +7,46 @@ USE_DEVEL=${USE_DEVEL:-"n"}
#MOONLIGHT_OVERRIDES="shapecache=yes,converter=ffmpeg" firefox'

pkgname=moonlight
-pkgrel=3
+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>=0.6' 'dbus-glib' 'ndesk-dbus' 'imagemagick' 'poppler-glib' 
'gtk-sharp')
+       'ffmpeg>=0.6' 'dbus-glib' 'ndesk-dbus' 'imagemagick' 'poppler-glib' 
'gtk-sharp' 'curl')
makedepends=('firefox' 'zip' 'gsf-sharp' 'gtksourceview-sharp' 'monodoc'\
-       'xulrunner')
+       'xulrunner' 'curl')
options=('scriptlet')
groups=('xlib-extra')
archs=('i686' 'x86_64')

subpkgs=("$pkgname-mozilla")
subdescs=('moonlight extension for Mozilla')
-subdepends=("firefox mono")
+subdepends=("firefox ffmpeg imagemagick mono")
subgroups=('xlib-extra')
subarchs=('i686 x86_64')

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)
+       pkgver=2.99.0.9
+       up2date="Flasttar 
http://ftp.frugalware.org/pub/other/people/bouleetbil/snapshot/";
+       
source=(http://ftp.frugalware.org/pub/other/people/bouleetbil/snapshot/$pkgname-$pkgver.tar.bz2)
Finclude mono
-       sha1sums=('7345749a4415c731abbe55f0b507f772421ea75a' \
-          '76769a65fb1237cb4f2f613fa63eb307e12d385c' \
-          '2f41e32983835858f489ea7737ff4ee03c3cf06c' \
-          'c22294f495294351ae5e2ba3c64797de536d7369')
+       sha1sums=('5684d1f279fe0f2fa465c224af28bfabd66315dc')
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"
+Fconfopts="$Fconfopts --with-mcs-docs=no --with-tls=__thread 
--disable-mono-debugger \
+            --with-ikvm-native=no  --with-moonlight=yes --with-glib=system"

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
+       Fcd
+       cd ../mono || Fdie
+       sh ./autogen.sh || Fdie

if Fuse $USE_DEVEL; then
Funpack_scm
@@ -76,10 +55,10 @@ build() {
else
cd ../$pkgname-$pkgver || Fdie
Fpatchall
-               #Fautoreconf
+               sh ./autogen.sh $Fconfopts || Fdie
fi
-
-       Fmake
+       Fsed './check_xpi.sh $@' "" plugin/install/Makefile*
+       Fmake --with-curl=system
Fmakeinstall

#build xpi
@@ -93,13 +72,16 @@ build() {
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

+       #grr bugguy
+       Fmv /var/tmp/fst/pkg/usr/lib/moonlight/plugin/lunar-launcher 
/usr/lib/moonlight/plugin/lunar-launcher
+       Frm /var
+
Fmonocleanup
}

diff --git a/source/xlib-extra/moonlight/silverlight-ff3-quirks.user.js 
b/source/xlib-extra/moonlight/silverlight-ff3-quirks.user.js
deleted file mode 100644
index a310727..0000000
--- a/source/xlib-extra/moonlight/silverlight-ff3-quirks.user.js
+++ /dev/null
@@ -1,94 +0,0 @@
-// 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