[Pkg-javascript-devel] Bug#495178: (no subject)

2013-07-30 Thread Thomas Bechtold
diff -Nru jquery-1.7.2+dfsg/debian/changelog jquery-1.7.2+dfsg/debian/changelog
--- jquery-1.7.2+dfsg/debian/changelog  2013-05-11 18:35:00.0 +0200
+++ jquery-1.7.2+dfsg/debian/changelog  2013-07-30 19:09:22.0 +0200
@@ -1,3 +1,11 @@
+jquery (1.7.2+dfsg-2.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Build-Depends on yui-compressor and generate jquery.min.js from jquery.js
+(Closes: #495178).
+
+ -- Thomas Bechtold thomasbecht...@jpberlin.de  Tue, 30 Jul 2013 18:54:25 
+0200
+
 jquery (1.7.2+dfsg-2) unstable; urgency=high
 
   * Added Breaks to movabletype-opensource (Closes: #700527)
diff -Nru jquery-1.7.2+dfsg/debian/control jquery-1.7.2+dfsg/debian/control
--- jquery-1.7.2+dfsg/debian/control2013-05-11 18:33:50.0 +0200
+++ jquery-1.7.2+dfsg/debian/control2013-07-30 18:54:22.0 +0200
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Javascript Maintainers 
pkg-javascript-devel@lists.alioth.debian.org
 Uploaders: Marcelo Jorge Vieira (metal) me...@debian.org, Steve Kemp 
s...@debian.org
-Build-Depends: debhelper (= 7.0.50~)
+Build-Depends: debhelper (= 7.0.50~), yui-compressor
 Standards-Version: 3.9.3
 Homepage: http://jquery.com/
 Vcs-Browser: http://git.debian.org/?p=pkg-javascript/jquery.git
diff -Nru jquery-1.7.2+dfsg/debian/links jquery-1.7.2+dfsg/debian/links
--- jquery-1.7.2+dfsg/debian/links  2013-05-11 18:33:50.0 +0200
+++ jquery-1.7.2+dfsg/debian/links  2013-07-30 19:01:48.0 +0200
@@ -1,3 +1,2 @@
 /usr/share/javascript/jquery/jquery.min.js 
/usr/share/javascript/jquery/jquery.pack.js
 /usr/share/javascript/jquery/jquery.min.js 
/usr/share/javascript/jquery/jquery.lite.js
-/usr/share/javascript/jquery/jquery.js 
/usr/share/javascript/jquery/jquery.min.js
diff -Nru jquery-1.7.2+dfsg/debian/rules jquery-1.7.2+dfsg/debian/rules
--- jquery-1.7.2+dfsg/debian/rules  2013-05-11 18:33:50.0 +0200
+++ jquery-1.7.2+dfsg/debian/rules  2013-07-30 19:01:30.0 +0200
@@ -2,6 +2,11 @@
 build %:
dh $@
 
+override_dh_auto_build:
+   dh_auto_build
+   #generate compressed jquery.min.js
+   yui-compressor dist/jquery.js  dist/jquery.min.js
+
 override_dh_auto_clean:
rm -rf dist/
dh_clean


signature.asc
Description: OpenPGP digital signature
___
Pkg-javascript-devel mailing list
Pkg-javascript-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel

[Pkg-javascript-devel] Bug#495178: Bug#495178: (no subject)

2013-07-31 Thread Thomas Bechtold
On Tue, Jul 30, 2013 at 09:36:53PM +0200, Jonas Smedegaard wrote:
 Quoting Thomas Bechtold (2013-07-30 19:47:10)
  forgot to describe the attached debdiff. The patch adds a 
  Build-Depends to yui-compressor and generates jquery.min.js. That's 
  it.
 
 I recommend against using a different and inferior compressor than the 
 one well tested upstream: uglify.

I updated the attached debdiff and use node-uglify now. The filesize
with uglify is much better (105841 with yui, 95024 with uglify)

Cheers,

Tom

diff -Nru jquery-1.7.2+dfsg/debian/changelog jquery-1.7.2+dfsg/debian/changelog
--- jquery-1.7.2+dfsg/debian/changelog  2013-05-11 18:35:00.0 +0200
+++ jquery-1.7.2+dfsg/debian/changelog  2013-07-31 07:13:55.0 +0200
@@ -1,3 +1,11 @@
+jquery (1.7.2+dfsg-2.1) UNRELEASED; urgency=low
+
+  * Non-maintainer upload.
+  * Build-Depends on node-uglify and generate jquery.min.js from jquery.js
+(Closes: #495178).
+
+ -- Thomas Bechtold thomasbecht...@jpberlin.de  Tue, 30 Jul 2013 18:54:25 
+0200
+
 jquery (1.7.2+dfsg-2) unstable; urgency=high
 
   * Added Breaks to movabletype-opensource (Closes: #700527)
diff -Nru jquery-1.7.2+dfsg/debian/control jquery-1.7.2+dfsg/debian/control
--- jquery-1.7.2+dfsg/debian/control2013-05-11 18:33:50.0 +0200
+++ jquery-1.7.2+dfsg/debian/control2013-07-31 07:13:26.0 +0200
@@ -3,7 +3,7 @@
 Priority: optional
 Maintainer: Debian Javascript Maintainers 
pkg-javascript-devel@lists.alioth.debian.org
 Uploaders: Marcelo Jorge Vieira (metal) me...@debian.org, Steve Kemp 
s...@debian.org
-Build-Depends: debhelper (= 7.0.50~)
+Build-Depends: debhelper (= 7.0.50~), node-uglify
 Standards-Version: 3.9.3
 Homepage: http://jquery.com/
 Vcs-Browser: http://git.debian.org/?p=pkg-javascript/jquery.git
diff -Nru jquery-1.7.2+dfsg/debian/links jquery-1.7.2+dfsg/debian/links
--- jquery-1.7.2+dfsg/debian/links  2013-05-11 18:33:50.0 +0200
+++ jquery-1.7.2+dfsg/debian/links  2013-07-30 19:01:48.0 +0200
@@ -1,3 +1,2 @@
 /usr/share/javascript/jquery/jquery.min.js 
/usr/share/javascript/jquery/jquery.pack.js
 /usr/share/javascript/jquery/jquery.min.js 
/usr/share/javascript/jquery/jquery.lite.js
-/usr/share/javascript/jquery/jquery.js 
/usr/share/javascript/jquery/jquery.min.js
diff -Nru jquery-1.7.2+dfsg/debian/rules jquery-1.7.2+dfsg/debian/rules
--- jquery-1.7.2+dfsg/debian/rules  2013-05-11 18:33:50.0 +0200
+++ jquery-1.7.2+dfsg/debian/rules  2013-07-31 07:14:20.0 +0200
@@ -2,6 +2,11 @@
 build %:
dh $@
 
+override_dh_auto_build:
+   dh_auto_build
+   #generate compressed jquery.min.js
+   uglifyjs dist/jquery.js  dist/jquery.min.js
+
 override_dh_auto_clean:
rm -rf dist/
dh_clean
___
Pkg-javascript-devel mailing list
Pkg-javascript-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-javascript-devel