[Pkg-javascript-commits] [uglifyjs] 04/18: Declare runtime package relations in rules file.

Jonas Smedegaard js at moszumanska.debian.org
Fri May 2 20:30:00 UTC 2014


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

js pushed a commit to branch master-experimental
in repository uglifyjs.

commit bb79b5c42ac93e67642593a139cd5b766e850215
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Fri May 2 09:58:54 2014 +0200

    Declare runtime package relations in rules file.
---
 debian/control.in | 10 +++-------
 debian/rules      |  9 ++++++++-
 2 files changed, 11 insertions(+), 8 deletions(-)

diff --git a/debian/control.in b/debian/control.in
index a5f6d62..d8ec8f5 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -12,13 +12,9 @@ Vcs-Git: git://git.debian.org/git/pkg-javascript/uglifyjs.git
 
 Package: node-uglify
 Architecture: all
-Depends: ${misc:Depends},
- nodejs,
- node-async (>= 0.2.6),
- node-source-map,
- node-optimist,
- node-uglify-to-browserify
-Provides: uglifyjs
+Depends: ${cdbs:Depends},
+ ${misc:Depends}
+Provides: ${cdbs:Provides}
 Description: JavaScript parser/compressor/beautifier
  This package implements a general-purpose JavaScript
  parser/compressor/beautifier toolkit.
diff --git a/debian/rules b/debian/rules
index af807e5..c065c0b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,9 +4,16 @@ include /usr/share/cdbs/1/rules/upstream-tarball.mk
 include /usr/share/cdbs/1/rules/utils.mk
 include /usr/share/cdbs/1/rules/debhelper.mk
 
+pkg = node-uglify
+
 DEB_UPSTREAM_URL = https://github.com/mishoo/UglifyJS2/archive
 DEB_UPSTREAM_TARBALL_BASENAME = v$(DEB_UPSTREAM_TARBALL_VERSION)
 
 # Unset executable bit on library file
-binary-fixup/node-uglifyjs::
+binary-fixup/$(pkg)::
 	chmod -x debian/node-uglify/usr/lib/nodejs/uglify-js/process.js
+
+CDBS_DEPENDS_$(pkg) = nodejs, node-async (>= 0.2.6), node-optimist
+CDBS_DEPENDS_$(pkg) +=, node-source-map, node-uglify-to-browserify
+
+CDBS_PROVIDES_$(pkg) = uglifyjs

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



More information about the Pkg-javascript-commits mailing list