[Pkg-javascript-commits] [backbone] 82/97: Declare binary package relations in rules file.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:56:03 UTC 2014


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

js pushed a commit to branch master
in repository backbone.

commit e88779053e14b4f6dbb8adca2c05ecbd71a6da7e
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Thu Mar 14 11:22:59 2013 +0100

    Declare binary package relations in rules file.
---
 debian/control.in | 17 ++++++-----------
 debian/rules      | 20 ++++++++++++++------
 2 files changed, 20 insertions(+), 17 deletions(-)

diff --git a/debian/control.in b/debian/control.in
index cfabee6..56bb9de 100644
--- a/debian/control.in
+++ b/debian/control.in
@@ -11,11 +11,9 @@ Vcs-Browser: http://anonscm.debian.org/gitweb/?p=collab-maint/backbone.git
 
 Package: libjs-backbone
 Architecture: all
-Depends: ${misc:Depends},
- libjs-underscore (>= 1.3.1~)
-Recommends: javascript-common,
- libjs-jquery | libjs-zepto | libjs-ender,
- libjs-json
+Depends: ${cdbs:Depends},
+ ${misc:Depends}
+Recommends: ${cdbs:Recommends}
 Description: some Backbone for JavaScript applications - browser library
  Backbone gives structure to your serious JavaScript web applications by
  supplying models with key-value binding and custom events, collections
@@ -27,12 +25,9 @@ Description: some Backbone for JavaScript applications - browser library
 
 Package: node-backbone
 Architecture: all
-Depends: ${misc:Depends},
- nodejs,
- libjs-backbone,
- node-underscore (>= 1.3.1~)
-Recommends: libjs-jquery | libjs-zepto | libjs-ender,
- libjs-json
+Depends: ${cdbs:Depends},
+ ${misc:Depends}
+Recommends: ${cdbs:Recommends}
 Breaks: ${cdbs:Breaks}
 Replaces: ${cdbs:Replaces}
 Description: some Backbone for JavaScript applications - Node module
diff --git a/debian/rules b/debian/rules
index b85e1aa..f3dd3fa 100755
--- a/debian/rules
+++ b/debian/rules
@@ -29,6 +29,20 @@ DEB_UPSTREAM_URL = https://github.com/documentcloud/$(pkg)/archive
 DEB_UPSTREAM_TARBALL_BASENAME = $(DEB_UPSTREAM_TARBALL_VERSION)
 DEB_UPSTREAM_TARBALL_MD5 = d24ee0a1d401705c8bb098b5ebf01725
 
+# Ease backporting (node-uglify is tough to backport)
+# TODO: drop fallback-dependency after Squeeze
+CDBS_BUILD_DEPENDS += , node-uglify | yui-compressor
+js-compressor := $(or $(notdir $(shell which uglifyjs)),yui-compressor)
+
+underscore-minver = 1.3.1
+CDBS_BUILD_DEPENDS +=, coffeescript, node-underscore
+CDBS_DEPENDS_$(jspkg) = libjs-underscore (>= $(underscore-minver)~)
+CDBS_DEPENDS_$(nodepkg) = nodejs, libjs-backbone
+CDBS_DEPENDS_$(nodepkg) +=, node-underscore (>= $(underscore-minver)~)
+CDBS_RECOMMENDS_ALL = libjs-json
+CDBS_RECOMMENDS_ALL +=, libjs-jquery | libjs-zepto | libjs-ender
+CDBS_RECOMMENDS_$(jspkg) = javascript-common
+
 # Handle package split
 CDBS_BREAKS_$(nodepkg) = libjs-backbone (<< 0.5.3-3)
 CDBS_REPLACES_$(nodepkg) = libjs-backbone (<< 0.5.3-3)
@@ -38,7 +52,6 @@ DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^docs/images/.*\.(jpg|png)|debian/(changelog|
 
 DEB_INSTALL_DOCS_ALL += README.md
 
-CDBS_BUILD_DEPENDS += , coffeescript, node-underscore
 build/$(jspkg):: debian/stamp-build
 debian/stamp-build:
 	$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,coffee test/*.coffee)
@@ -49,11 +62,6 @@ clean::
 DEB_INSTALL_DOCS_ALL += index.html
 DEB_INSTALL_EXAMPLES_$(jspkg) += examples/*
 
-# Ease backporting (node-uglify is tough to backport)
-# TODO: drop fallback-dependency after Squeeze
-CDBS_BUILD_DEPENDS += , node-uglify | yui-compressor
-js-compressor := $(or $(notdir $(shell which uglifyjs)),yui-compressor)
-
 # TODO: generalize parts below as a CDBS javascript snippet
 
 #js-basedir =

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



More information about the Pkg-javascript-commits mailing list