Update of /cvsroot/fink/dists/10.7/stable/main/finkinfo/web
In directory sfp-cvs-1.v30.ch3.sourceforge.com:/tmp/cvs-serv28617

Modified Files:
        libjs-swfupload.info 
Added Files:
        libjs-swfobject.info libjs-swfobject.patch 
Log Message:
libjs-swfobject
 * New Port

libjs-swfupload
 * Add depends on javascript-common


--- NEW FILE: libjs-swfobject.info ---
Package: libjs-swfobject
Version: 2.2
Revision: 1.1
###
BuildDepends: yui-compressor, mtasc
Depends: javascript-common
###
Source: mirror:debian:/pool/main/libj/%n/%n_%v+dfsg.orig.tar.gz
Source-MD5: c0bbb91b7a278b93aa908d3a22f49cc3
SourceDirectory: swfobject
PatchFile: %n.patch
PatchFile-MD5: 4910f9c69f93bf4e08f7394f3c26edab
PatchScript: <<
  sed -e 's,@FINKPREFIX@,%p,g' %{PatchFile} | patch -p1

  ### Apply some Debian Patches for Security and Build Issues
  patch -p1 < fink/patches/expressInstall-AS2.patch
<<
###
CompileScript: <<
mkdir build
mtasc -v -main -header 310:130:12 -version 6 -out build/expressInstall.swf -swf 
build/expressInstall.swf src/expressInstall.as
yui-compressor src/swfobject.js -o build/swfobject.js
<<
InstallScript: <<
install -d -m 755 %i/share/javascript/swfobject
install -m 644 build/swfobject.js %i/share/javascript/swfobject
install -m 644 build/expressInstall.swf %i/share/javascript/swfobject

# examples
install -d -m 755 %i/share/doc/%n/examples
install -m 644 index.html %i/share/doc/%n/examples
install -m 644 index_dynamic.html %i/share/doc/%n/examples
<<
###
Description: Tool to embed Flash content into webpages
DescDetail: <<
SWFObject is an easy-to-use and standards-friendly method to embed Flash
content, which utilizes one small JavaScript file.
.
 * it offers two optimized Flash Player embed methods; a markup based
   approach and a method that relies on JavaScript
 * it offers a JavaScript API that aims to provide a complete tool set for
   embedding SWF files and retrieving Flash Player related information
 * it utilizes only one small JavaScript file (10Kb / GZIPed: 3.9Kb)
 * it is the successor of SWFObject 1.5, UFO and the Adobe Flash Player
   Detection Kit
 * it intends to unify all existing Flash Player embed methods and provide a
   new standard for embedding Adobe Flash Player content 
<<
###
License: BSD
Homepage: http://code.google.com/p/swfobject/
Maintainer: Justin F. Hallett <the...@users.sourceforge.net>

Index: libjs-swfupload.info
===================================================================
RCS file: 
/cvsroot/fink/dists/10.7/stable/main/finkinfo/web/libjs-swfupload.info,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -d -r1.1 -r1.2
--- libjs-swfupload.info        6 May 2013 17:55:24 -0000       1.1
+++ libjs-swfupload.info        6 May 2013 21:02:43 -0000       1.2
@@ -1,8 +1,9 @@
 Package: libjs-swfupload
 Version: 2.2.0.1
-Revision: 2.1
+Revision: 2.2
 ###
 BuildDepends: swftools (>= 0.9.2-2)
+Depends: javascript-common
 ###
 Source: mirror:debian:/pool/main/libj/%n/%n_%v+ds1.orig.tar.gz
 Source-MD5: 37408becdc0a93f4dbc0e500b208db98

--- NEW FILE: libjs-swfobject.patch ---
diff -ruN swfobject.orig/fink/patches/expressInstall-AS2.patch 
swfobject/fink/patches/expressInstall-AS2.patch
--- swfobject.orig/fink/patches/expressInstall-AS2.patch        1969-12-31 
17:00:00.000000000 -0700
+++ swfobject/fink/patches/expressInstall-AS2.patch     2013-05-06 
13:26:06.000000000 -0600
@@ -0,0 +1,170 @@
+From: Christian Welzel <gaw...@camlann.de>
+Subject: Port ActionScript-1 code to ActionScript-2 for mtasc
+Origin: http://code.google.com/p/swfobject/issues/detail?id=233
+Description: Debian policy requires all packages in main to be compiled
+ with tools in main. For compiling ActionScript code there is only mtasc
+ available. But mtasc can only process ActionScript 2 code. So this patch
+ ports the upstream AS1 code to AS2 code to allow to compile it with mtasc.
+ The patch was orignally written by a guy named Kyle and published in the 
+ mentioned origin.
+
+--- libjs-swfobject-2.2.orig/src/expressInstall.as
++++ libjs-swfobject-2.2/src/expressInstall.as
+@@ -1,70 +1,87 @@
+-/*    SWFObject v2.2 <http://code.google.com/p/swfobject/> is released under 
the MIT License <http://www.opensource.org/licenses/mit-license.php>
+-      Express Install Copyright (c) 2007-2008 Adobe Systems Incorporated and 
its licensors. All Rights Reserved.
+-*/
+-
+-System.security.allowDomain("fpdownload.macromedia.com");
+-
+-var time = 0;
+-var timeOut = 5; // in seconds
+-var delay = 10; // in milliseconds
+-var int_id = setInterval(checkLoaded, delay);
+-var old_si = null;
+-var loaderClip = this.createEmptyMovieClip("loaderClip", 0);
+-var updateSWF = 
"http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?";
 + Math.random();
+-loaderClip.loadMovie(updateSWF);
+-
+-function checkLoaded(){
+-      time += delay / 1000;
+-      if (time > timeOut) {
+-              // updater did not load in time, abort load and force 
alternative content
+-              clearInterval(int_id);
+-              loaderClip.unloadMovie();
+-              loadTimeOut();
++/*    SWFObject v2.2 <http://code.google.com/p/swfobject/> is released under 
the MIT License <http://www.opensource.org/licenses/mit-license.php>

++      Express Install Copyright (c) 2007-2008 Adobe Systems Incorporated and 
its licensors. All Rights Reserved.

++*/

++

++class expressInstall {

++      static var app;

++

++      var time       = 0;

++      var timeOut    = 5; // in seconds

++      var delay      = 10; // in milliseconds

++      var int_id     = 0;

++      var old_si     = null;

++      var loaderClip = null;

++

++      function expressInstall() {

++              System.security.allowDomain("fpdownload.macromedia.com");

++              var cacheBuster = Math.random();

++              var updateSWF   = 
"http://fpdownload.macromedia.com/pub/flashplayer/update/current/swf/autoUpdater.swf?"+cacheBuster;

++              int_id  = setInterval(this,"checkLoaded",delay);

++              loaderClip = _root.createEmptyMovieClip("loaderClip",0);

++              loaderClip.loadMovie(updateSWF);

++              _root.installStatus = installStatus;

+       }
+-      else if (loaderClip.startInstall.toString() == "[type Function]") {
+-              // updater has loaded successfully AND has determined that it 
can do the express install
+-              if (old_si == null) {
+-                      old_si = loaderClip.startInstall;
+-                      loaderClip.startInstall = function() {
+-                              clearInterval(int_id);
+-                              old_si();
+-                      }
+-                      loadComplete();
+-              }
+-      }       
+-}
+-
+-function loadTimeOut() {
+-      callbackSWFObject();
+-}
+-
+-function callbackSWFObject() {
+-      getURL("javascript:swfobject.expressInstallCallback();");
+-}
+-
+-function loadComplete() {
+-      loaderClip.redirectURL = _level0.MMredirectURL;
+-      loaderClip.MMplayerType = _level0.MMplayerType;
+-      loaderClip.MMdoctitle = _level0.MMdoctitle;
+-      loaderClip.startUpdate();
+-}
+-
+-function installStatus(statusValue) {
+-      switch (statusValue) {
+-              case "Download.Complete":
+-                      // Installation is complete.
+-                      // In most cases the browser window that this SWF is 
hosted in will be closed by the installer or otherwise it has to be closed 
manually by the end user.
+-                      // The Adobe Flash installer will attempt to reopen the 
browser window and reload the page containing the SWF. 
+-              break;
+-              case "Download.Cancelled":
+-                      // The end user chose "NO" when prompted to install the 
new player.
+-                      // By default the SWFObject callback function is called 
to force alternative content.
+-                      callbackSWFObject();
+-              break;
+-              case "Download.Failed":
+-                      // The end user failed to download the installer due to 
a network failure.
+-                      // By default the SWFObject callback function is called 
to force alternative content.
+-                      callbackSWFObject();
+-              break;
+-      }
+-}
++

++      function checkLoaded(){

++              time += delay / 1000;

++              if (time > timeOut) {

++                      // updater did not load in time, abort load and force 
alternative content

++                      clearInterval(int_id);

++                      loaderClip.unloadMovie();

++                      loadTimeOut();

++              }

++              else if (loaderClip.startInstall.toString() == "[type 
Function]") {

++                      // updater has loaded successfully AND has determined 
that it can do the express install

++                      if (old_si == null) {

++                              old_si = loaderClip.startInstall;

++                              loaderClip.startInstall = new_startInstall;

++                              loadComplete();

++                      }

++              }

++      }

++      

++      function new_startInstall() {

++              clearInterval(app.int_id);

++              app.old_si();

++      }

++      

++      function loadTimeOut() {

++              callbackSWFObject();

++      }

++      

++      function callbackSWFObject() {

++              getURL("javascript:swfobject.expressInstallCallback();");

++      }

++      

++      function loadComplete() {

++              loaderClip.redirectURL  = _root.MMredirectURL;

++              loaderClip.MMplayerType = _root.MMplayerType;

++              loaderClip.MMdoctitle   = _root.MMdoctitle;

++              loaderClip.startUpdate();

++      }

++      

++      function installStatus(statusValue) {

++              switch (statusValue) {

++                      case "Download.Complete":

++                              // Installation is complete.

++                              // In most cases the browser window that this 
SWF is hosted in will be closed by the installer or otherwise it has to be 
closed manually by the end user.

++                              // The Adobe Flash installer will attempt to 
reopen the browser window and reload the page containing the SWF. 

++                      break;

++                      case "Download.Cancelled":

++                              // The end user chose "NO" when prompted to 
install the new player.

++                              // By default the SWFObject callback function 
is called to force alternative content.

++                              app.callbackSWFObject();

++                      break;

++                      case "Download.Failed":

++                              // The end user failed to download the 
installer due to a network failure.

++                              // By default the SWFObject callback function 
is called to force alternative content.

++                              app.callbackSWFObject();

++                      break;

++              }

++      }

++

++      static function main() {

++              app = new expressInstall();

++      }

++}

++

+\ No newline at end of file


------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and 
their applications. This 200-page book is written by three acclaimed 
leaders in the field. The early access version is available now. 
Download your free book today! http://p.sf.net/sfu/neotech_d2d_may
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
http://news.gmane.org/gmane.os.apple.fink.cvs

Reply via email to