[Pkg-javascript-commits] [libjs-chosen] 04/04: Add patch from previous upload, refactor packaging a little bit, Team upload

Gianfranco Costamagna locutusofborg at moszumanska.debian.org
Mon Dec 19 15:29:30 UTC 2016


This is an automated email from the git hooks/post-receive script.

locutusofborg pushed a commit to annotated tag debian/0.9.15-1
in repository libjs-chosen.

commit e0f284b7442b95eece999ee309071cdfb20efc66
Author: Gianfranco Costamagna <locutusofborg at debian.org>
Date:   Mon Dec 19 16:26:51 2016 +0100

    Add patch from previous upload, refactor packaging a little bit, Team upload
---
 debian/changelog                                   |  8 +++-
 debian/compat                                      |  2 +-
 debian/control                                     |  6 +--
 debian/copyright                                   |  2 +-
 .../Made-compression-work-with-uglify-js2.patch    | 44 ++++++++++++++++++++++
 5 files changed, 56 insertions(+), 6 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 4fe31b9..c7b7054 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,12 @@
 libjs-chosen (0.9.15-1) unstable; urgency=medium
 
-  * QA upload.
+  [ Gianfranco Costamagna ]
+  * Team upload.
+  * Update copyright file
+  * Bump compat level to 10
+  * Update VCS fields.
+
+  [ Ilias Tsitsimpis]
   * New upstream release (Closes: #797166).
   * Set Debian QA Group as the maintainer (package has been orphaned).
   * Bump Standards-Version to 3.9.8, no changes needed.
diff --git a/debian/compat b/debian/compat
index ec63514..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-9
+10
diff --git a/debian/control b/debian/control
index bb7ad5f..98a6834 100644
--- a/debian/control
+++ b/debian/control
@@ -2,11 +2,11 @@ Source: libjs-chosen
 Section: web
 Priority: optional
 Maintainer: Debian QA Group <packages at qa.debian.org>
-Build-Depends: coffeescript, debhelper (>= 9), node-uglify (>= 2), node-temp
+Build-Depends: coffeescript, debhelper (>= 10), node-uglify (>= 2), node-temp
 Standards-Version: 3.9.8
 Homepage: http://harvesthq.github.io/chosen/
-Vcs-Git: https://alioth.debian.org/anonscm/git/pkg-javascript/libjs-chosen.git
-Vcs-Browser: https://anonscm.debian.org/gitweb/?p=pkg-javascript/libjs-chosen.git
+Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/libjs-chosen.git
+Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/libjs-chosen.git
 
 Package: libjs-chosen
 Architecture: all
diff --git a/debian/copyright b/debian/copyright
index fe4565f..10ccb6b 100644
--- a/debian/copyright
+++ b/debian/copyright
@@ -4,7 +4,7 @@ Source: https://github.com/harvesthq/chosen
 Upstream-Contact: Patrick Filler <http://patrickfiller.com>
 
 Files: *
-Copyright: 2011, Harvest <http://getharvest.com>
+Copyright: 2011-2013, Harvest <http://getharvest.com>
 License: Expat
 
 License: Expat
diff --git a/debian/patches/Made-compression-work-with-uglify-js2.patch b/debian/patches/Made-compression-work-with-uglify-js2.patch
new file mode 100644
index 0000000..ba9655c
--- /dev/null
+++ b/debian/patches/Made-compression-work-with-uglify-js2.patch
@@ -0,0 +1,44 @@
+Description: Made compression work with uglify-js2
+ Uglify-JS has quite drastically changed its API in version 2.
+Author: Ilias Tsitsimpis <i.tsitsimpis at gmail.com>
+Forwarded: no, fixed in newer versions of libjs-chosen
+
+Index: b/Cakefile
+===================================================================
+--- a/Cakefile
++++ b/Cakefile
+@@ -7,7 +7,7 @@ fs               = require 'fs'
+ path             = require 'path'
+ {spawn, exec}    = require 'child_process'
+ CoffeeScript     = require 'coffee-script'
+-{parser, uglify} = require 'uglify-js'
++{minify}         = require 'uglify-js'
+ 
+ javascripts = {
+   'chosen/chosen.jquery.js': [
+@@ -74,15 +74,22 @@ task 'build', 'build Chosen from source'
+         code += CoffeeScript.compile file_contents
+       write_chosen_javascript javascript, code
+       unless process.env.MINIFY is 'false'
+-        write_chosen_javascript javascript.replace(/\.js$/,'.min.js'), (
+-          uglify.gen_code uglify.ast_squeeze uglify.ast_mangle parser.parse code
+-        ), ';'
++        compressFileV2 javascript.replace(/\.js$/,'.min.js'), code
+     package_npm () ->
+       package_jquery () ->
+         cb() if typeof cb is 'function'
+   catch e
+     print_error e, file_name, file_contents
+ 
++compressFileV2 = (file, data) ->
++  require('temp').open {suffix: '.js'}, (err, info) ->
++    throw err if err?
++    fs.write info.fd, data
++    fs.close info.fd, (err) ->
++      throw err if err?
++      out = minify info.path
++      write_chosen_javascript file, out.code, ';'
++
+ task 'watch', 'watch coffee/ for changes and build Chosen', ->
+   console.log "Watching for changes in coffee/"
+   for file in source_files()

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/libjs-chosen.git



More information about the Pkg-javascript-commits mailing list