[Pkg-javascript-commits] [node-colors] 06/08: Removed libjs-colors and uglify dependency

Marcelo Jorge Vieira metal at moszumanska.debian.org
Sat Nov 22 23:11:17 UTC 2014


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

metal pushed a commit to branch master
in repository node-colors.

commit 4a274ced90fd67d77b1377b1bb0510ee022a1911
Author: Marcelo Jorge Vieira <metal at alucinados.com>
Date:   Sun Nov 16 20:32:01 2014 -0200

    Removed libjs-colors and uglify dependency
---
 debian/control                    |  9 +--------
 debian/libjs-colors.README.Debian | 19 -------------------
 debian/libjs-colors.examples      |  1 -
 debian/libjs-colors.install       |  1 -
 debian/node-colors.examples       |  3 ++-
 debian/node-colors.install        |  4 ++++
 debian/node-colors.links          |  1 -
 debian/rules                      | 10 ++--------
 8 files changed, 9 insertions(+), 39 deletions(-)

diff --git a/debian/control b/debian/control
index 773e8f8..30290c4 100644
--- a/debian/control
+++ b/debian/control
@@ -9,15 +9,8 @@ Homepage: http://github.com/marak/colors.js
 Vcs-Browser: http://anonscm.debian.org/cgit/pkg-javascript/node-colors.git
 Vcs-Git: git://anonscm.debian.org/pkg-javascript/node-colors.git
 
-Package: libjs-colors
-Architecture: all
-Depends: ${misc:Depends}
-Recommends: javascript-common
-Description: Get color and style in your web application
- This package contains the JavaScript library.
-
 Package: node-colors
 Architecture: all
-Depends: ${misc:Depends}, nodejs, libjs-colors
+Depends: ${misc:Depends}, nodejs
 Description: Get color and style in your node.js console
  This package contains the NodeJS module.
diff --git a/debian/libjs-colors.README.Debian b/debian/libjs-colors.README.Debian
deleted file mode 100644
index 3edff66..0000000
--- a/debian/libjs-colors.README.Debian
+++ /dev/null
@@ -1,19 +0,0 @@
-libjs-colors for Debian
------------------------
-
-If you wish to include Colors in your HTML files which are served
-via a webserver you should add the following lines to your <HEAD>
-section:
-
-    <script language="javascript" type="text/javascript"
-    src="/javascript/colors/colors.js"></script>
-
-If you're generating files which are going to be served via the
-filesystem (such that no HTTP server is used) instead you should
-access Colors via the filesystem path:
-
-    <script language="javascript" type="text/javascript"
-    src="/usr/share/javascript/colors/colors.js"></script>
-
-
- -- Marcelo Jorge Vieira (metal) <metal at debian.org>  Tue, 05 Jun 2012 18:13:00 -0300
diff --git a/debian/libjs-colors.examples b/debian/libjs-colors.examples
deleted file mode 100644
index c1b4f3c..0000000
--- a/debian/libjs-colors.examples
+++ /dev/null
@@ -1 +0,0 @@
-example.html
diff --git a/debian/libjs-colors.install b/debian/libjs-colors.install
deleted file mode 100644
index f972e0a..0000000
--- a/debian/libjs-colors.install
+++ /dev/null
@@ -1 +0,0 @@
-colors*.js /usr/share/javascript/colors/
diff --git a/debian/node-colors.examples b/debian/node-colors.examples
index a6cbb3c..9d6d384 100644
--- a/debian/node-colors.examples
+++ b/debian/node-colors.examples
@@ -1 +1,2 @@
-example.js
+examples/*
+themes
diff --git a/debian/node-colors.install b/debian/node-colors.install
new file mode 100644
index 0000000..bbeed1f
--- /dev/null
+++ b/debian/node-colors.install
@@ -0,0 +1,4 @@
+lib /usr/lib/nodejs/colors/
+safe.js /usr/lib/nodejs/colors/
+package.json /usr/lib/nodejs/colors/
+
diff --git a/debian/node-colors.links b/debian/node-colors.links
deleted file mode 100644
index 95168bf..0000000
--- a/debian/node-colors.links
+++ /dev/null
@@ -1 +0,0 @@
-/usr/share/javascript/colors/colors.js /usr/lib/nodejs/colors.js
diff --git a/debian/rules b/debian/rules
index ffcab33..eb4a7d9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -11,13 +11,7 @@ node-destexample ?= usr/share/doc/$(node-pkgname)/examples
 %:
 	dh $@
 
-override_dh_auto_build:
-	uglifyjs -o colors.min.js colors.js
-
 override_dh_installexamples:
 	dh_installexamples
-	sed -i  "s#colors.js#$(js-destdir)/$(libname).js#" debian/$(js-pkgname)/$(js-destexample)/example.html
-	sed -i  "s#require('./colors');#require('$(node-destdir)/$(libname)');#" debian/$(node-pkgname)/$(node-destexample)/example.js
-
-override_dh_auto_clean:
-	rm -f colors.min.js
+	sed -i "s#'\.\./#'$(js-destdir)/#" debian/$(node-pkgname)/$(node-destexample)/*.js
+	sed -i "s#/\.\./themes#/themes#" debian/$(node-pkgname)/$(node-destexample)/*.js

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



More information about the Pkg-javascript-commits mailing list