Commit a93897a3 authored by Jason Morawski's avatar Jason Morawski Committed by David Prévot

Imported Debian patch 1.5.0+dfsg-1

parents 44b350a3 d58fe9c4

Too many changes to show.

To preserve performance only 1000 of 1000+ files are displayed.

dojo (1.5.0+dfsg-1) experimental; urgency=low
* New upstream version (Closes: #597148)
* Repackaged using uncompressed dojo source code
* Added get-orig-source rule to debian/rules
* Changed package licensing to BSD license
-- Jason Morawski <rpgdude1@gmail.com> Tue, 16 Nov 2010 15:51:00 -0400
dojo (1.4.3+dfsg1-1) unstable; urgency=low
* Removed uploader.swf and dojox.storage to comply with the DFSG
......
......@@ -3,8 +3,8 @@ Section: web
Priority: optional
Maintainer: Jason Morawski <rpgdude1@gmail.com>
Uploaders: Frank Habermann <lordlamer@lordlamer.de>
Build-Depends: debhelper (>= 7)
Standards-Version: 3.8.4
Build-Depends: debhelper (>= 7), shrinksafe
Standards-Version: 3.9.1
Homepage: http://dojotoolkit.org
Package: libjs-dojo-core
......
......@@ -377,19 +377,26 @@ License: MIT
Files: debian/*
Copyright: (C) 2009 Jason Morawski <rpgdude1@gmail.com>
License: GPL-3+
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
License: BSD
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
.
You should have received a copy of the GNU General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
* Neither the name of the Dojo Foundation nor the names of its contributors
may be used to endorse or promote products derived from this software
without specific prior written permission.
.
On Debian systems, the complete text of the GNU General Public License
can be found in /usr/share/common-licenses/GPL-3 file.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
dojo/ /usr/share/javascript
release/dojo/ /usr/share/javascript
dijit/ /usr/share/javascript
release/dijit/ /usr/share/javascript
......@@ -4,5 +4,6 @@ dojox for Debian
Some files have been moved to /usr/share/doc/libjs-dojo-dojox/examples
These files include:
Source code for the dojox.flash project
Scripts for customized shrinking of dojox/mobile project
-- Jason Morawski <rpgdude1@gmail.com>, Thu, 18 Mar 2010 18:18:19 -0400
-- Jason Morawski <rpgdude1@gmail.com>, Sun, 14 Nov 2010 23:46:00 -0400
dojox/ /usr/share/javascript/
release/dojox/ /usr/share/javascript
......@@ -5,6 +5,7 @@ export DH_ALWAYS_EXCLUDE=LICENSE:build.txt
clean:
dh_testdir
dh_testroot
rm -rf release
dh_clean
build:
......@@ -16,15 +17,20 @@ binary-arch:
binary-indep:
dh_testdir
dh_testroot
cd util/buildscripts && java -cp /usr/share/java/shrinksafe.jar org.mozilla.javascript.tools.shell.Main build.js profile=standard version=debian releaseName=. cssOptimize=comments.keepLines optimize=shrinksafe.keepLines action=release
dh_installchangelogs
dh_installdirs
dh_installdocs
dh_install
mv debian/libjs-dojo-dojox/usr/share/javascript/dojox/flash/*.as debian/libjs-dojo-dojox/usr/share/doc/libjs-dojo-dojox/examples/dojox/flash/
mv debian/libjs-dojo-dojox/usr/share/javascript/dojox/mobile/build/ debian/libjs-dojo-dojox/usr/share/doc/libjs-dojo-dojox/examples/dojox/mobile/
dh_compress
dh_fixperms
dh_gencontrol
dh_md5sums
dh_builddeb
get-orig-source:
uscan --force-download --repack --rename
.PHONY: clean build install binary binary-arch binary-indep
compression = gzip
compression-level = 9
#!/bin/sh
set -e
#command --upstream-version version filename
[ $# -eq 3 ] || exit 255
echo
version="$2"
filename="$3"
dfsgfilename=`echo $3 | sed 's,\.orig\.,+dfsg.orig.,'`
tar xfz ${filename}
dir=`tar tfz ${filename} | head -1 | sed 's,/.*,,g'`
rm -f ${filename}
rm -rf ${dir}/dojox/av
rm -f ${dir}/dojox/form/resources/uploader.swf
rm -rf ${dir}/dojox/storage
rm -rf ${dir}/debian
mv ${dir} ${dir}+dfsg
tar cf - ${dir}+dfsg | gzip -9 > ${dfsgfilename}
rm -rf ${dir}+dfsg
echo "${dfsgfilename} created."
version=3
opts=dversionmangle=s/\.dfsg// \
http://download.dojotoolkit.org/release-([\d\.]*)/ \
dojo-release-([\d\.]*)\.tar\.gz
dojo-release-([\d\.]*)-src\.tar\.gz \
debian /bin/sh debian/uscan-dfsg-clean.sh
This diff is collapsed.
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dijit.CheckedMenuItem"]){
dojo._hasResource["dijit.CheckedMenuItem"]=true;
dojo.provide("dijit.CheckedMenuItem");
dojo.require("dijit.MenuItem");
dojo.declare("dijit.CheckedMenuItem",dijit.MenuItem,{templateString:dojo.cache("dijit","templates/CheckedMenuItem.html","<tr class=\"dijitReset dijitMenuItem\" dojoAttachPoint=\"focusNode\" waiRole=\"menuitemcheckbox\" tabIndex=\"-1\"\n\t\tdojoAttachEvent=\"onmouseenter:_onHover,onmouseleave:_onUnhover,ondijitclick:_onClick\">\n\t<td class=\"dijitReset\" waiRole=\"presentation\">\n\t\t<img src=\"${_blankGif}\" alt=\"\" class=\"dijitMenuItemIcon dijitCheckedMenuItemIcon\" dojoAttachPoint=\"iconNode\">\n\t\t<span class=\"dijitCheckedMenuItemIconChar\">&#10003;</span>\n\t</td>\n\t<td class=\"dijitReset dijitMenuItemLabel\" colspan=\"2\" dojoAttachPoint=\"containerNode,labelNode\"></td>\n\t<td class=\"dijitReset dijitMenuItemAccelKey\" style=\"display: none\" dojoAttachPoint=\"accelKeyNode\"></td>\n\t<td class=\"dijitReset dijitMenuArrowCell\" waiRole=\"presentation\">\n\t</td>\n</tr>\n"),checked:false,_setCheckedAttr:function(_1){
dojo.toggleClass(this.domNode,"dijitCheckedMenuItemChecked",_1);
dijit.setWaiState(this.domNode,"checked",_1);
this.checked=_1;
},onChange:function(_2){
},_onClick:function(e){
if(!this.disabled){
this.attr("checked",!this.checked);
this.onChange(this.checked);
}
this.inherited(arguments);
}});
}
dojo.declare("dijit.CheckedMenuItem",
dijit.MenuItem,
{
// summary:
// A checkbox-like menu item for toggling on and off
templateString: dojo.cache("dijit", "templates/CheckedMenuItem.html"),
// checked: Boolean
// Our checked state
checked: false,
_setCheckedAttr: function(/*Boolean*/ checked){
// summary:
// Hook so attr('checked', bool) works.
// Sets the class and state for the check box.
dojo.toggleClass(this.domNode, "dijitCheckedMenuItemChecked", checked);
dijit.setWaiState(this.domNode, "checked", checked);
this.checked = checked;
},
onChange: function(/*Boolean*/ checked){
// summary:
// User defined function to handle check/uncheck events
// tags:
// callback
},
_onClick: function(/*Event*/ e){
// summary:
// Clicking this item just toggles its state
// tags:
// private
if(!this.disabled){
this.set("checked", !this.checked);
this.onChange(this.checked);
}
this.inherited(arguments);
}
});
/*
Copyright (c) 2004-2009, The Dojo Foundation All Rights Reserved.
Available via Academic Free License >= 2.1 OR the modified BSD license.
see: http://dojotoolkit.org/license for details
*/
if(!dojo._hasResource["dijit.ColorPalette"]){
dojo._hasResource["dijit.ColorPalette"]=true;
dojo.provide("dijit.ColorPalette");
dojo.require("dijit._Widget");
dojo.require("dijit._Templated");
dojo.require("dojo.colors");
dojo.require("dojo.i18n");
dojo.requireLocalization("dojo","colors",null,"ROOT,ar,ca,cs,da,de,el,es,fi,fr,he,hu,it,ja,ko,nb,nl,pl,pt,pt-pt,ru,sk,sl,sv,th,tr,zh,zh-tw");
dojo.declare("dijit.ColorPalette",[dijit._Widget,dijit._Templated],{defaultTimeout:500,timeoutChangeRate:0.9,palette:"7x10",value:null,_currentFocus:0,_xDim:null,_yDim:null,_palettes:{"7x10":[["white","seashell","cornsilk","lemonchiffon","lightyellow","palegreen","paleturquoise","lightcyan","lavender","plum"],["lightgray","pink","bisque","moccasin","khaki","lightgreen","lightseagreen","lightskyblue","cornflowerblue","violet"],["silver","lightcoral","sandybrown","orange","palegoldenrod","chartreuse","mediumturquoise","skyblue","mediumslateblue","orchid"],["gray","red","orangered","darkorange","yellow","limegreen","darkseagreen","royalblue","slateblue","mediumorchid"],["dimgray","crimson","chocolate","coral","gold","forestgreen","seagreen","blue","blueviolet","darkorchid"],["darkslategray","firebrick","saddlebrown","sienna","olive","green","darkcyan","mediumblue","darkslateblue","darkmagenta"],["black","darkred","maroon","brown","darkolivegreen","darkgreen","midnightblue","navy","indigo","purple"]],"3x4":[["white","lime","green","blue"],["silver","yellow","fuchsia","navy"],["gray","red","purple","black"]]},_imagePaths:{"7x10":dojo.moduleUrl("dijit.themes","a11y/colors7x10.png"),"3x4":dojo.moduleUrl("dijit.themes","a11y/colors3x4.png")},_paletteCoords:{"leftOffset":3,"topOffset":3,"cWidth":20,"cHeight":20},templateString:dojo.cache("dijit","templates/ColorPalette.html","<div class=\"dijitInline dijitColorPalette\">\n\t<div class=\"dijitColorPaletteInner\" dojoAttachPoint=\"divNode\" waiRole=\"grid\"\">\n\t\t<img class=\"dijitColorPaletteUnder\" dojoAttachPoint=\"imageNode\" waiRole=\"presentation\" alt=\"\">\n\t</div>\n</div>\n"),_paletteDims:{"7x10":{"width":"206px","height":"145px"},"3x4":{"width":"86px","height":"64px"}},tabIndex:"0",buildRendering:function(){
this.inherited(arguments);
dojo.mixin(this.divNode.style,this._paletteDims[this.palette]);
this.imageNode.setAttribute("src",this._imagePaths[this.palette].toString());
var _1=this._palettes[this.palette];
this.domNode.style.position="relative";
this._cellNodes=[];
this.colorNames=dojo.i18n.getLocalization("dojo","colors",this.lang);
var _2=this._blankGif,_3=new dojo.Color(),_4=this._paletteCoords;
for(var _5=0;_5<_1.length;_5++){
var _6=dojo.create("div",{role:"row"},this.divNode);
for(var _7=0;_7<_1[_5].length;_7++){
var _8=_1[_5][_7],_9=_3.setColor(dojo.Color.named[_8]);
var _a=dojo.create("span",{"class":"dijitPaletteCell",tabIndex:"-1",title:this.colorNames[_8],style:{top:_4.topOffset+(_5*_4.cHeight)+"px",left:_4.leftOffset+(_7*_4.cWidth)+"px"}});
var _b=dojo.create("img",{src:_2,"class":"dijitPaletteImg",alt:this.colorNames[_8]},_a);