[Pkg-javascript-commits] [backbone] 67/97: Simplify rules file. Build-depend on devscripts, to always check copyright during build.

Jonas Smedegaard js at moszumanska.debian.org
Sat May 3 16:56:01 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 41d26d43075b09cc62a1a386efd649bd40639960
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Wed Nov 14 14:22:47 2012 +0100

    Simplify rules file. Build-depend on devscripts, to always check copyright during build.
---
 debian/rules | 22 +++++++++-------------
 1 file changed, 9 insertions(+), 13 deletions(-)

diff --git a/debian/rules b/debian/rules
index b753738..0c9028d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,20 +16,16 @@
 # You should have received a copy of the GNU General Public License
 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
 
--include /usr/share/cdbs/1/rules/upstream-tarball.mk
+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
 
-libname = backbone
-js-pkgname = libjs-$(libname)
-js-stems = $(libname)
-node-pkgname = node-$(libname)
+pkg = $(DEB_SOURCE_PACKAGE)
+js-pkgname = libjs-$(pkg)
+js-stems = $(pkg)
+node-pkgname = node-$(pkg)
 
-# suppress optional build-dependencies
-CDBS_BUILD_DEPENDS_rules_upstream-tarball =
-CDBS_BUILD_DEPENDS_rules_utils_copyright-check =
-
-DEB_UPSTREAM_URL = https://github.com/documentcloud/$(libname)/archive
+DEB_UPSTREAM_URL = https://github.com/documentcloud/$(pkg)/archive
 DEB_UPSTREAM_TARBALL_BASENAME = $(DEB_UPSTREAM_TARBALL_VERSION)
 DEB_UPSTREAM_TARBALL_MD5 = b6fe3d4de9dcd489a11ce7a3c7aac2c6
 
@@ -57,7 +53,7 @@ js-compressor := $(or $(notdir $(shell which uglifyjs)),yui-compressor)
 # TODO: generalize parts below as a CDBS javascript snippet
 
 #js-basedir =
-js-dirname ?= $(libname)
+js-dirname ?= $(pkg)
 js-stems ?= $(basename $(wildcard $(js-basedir)*.js))
 js-min ?= $(js-stems:$(js-basedir)%=debian/%.min.js)
 js-destdir ?= /usr/share/javascript/$(js-dirname)
@@ -74,8 +70,8 @@ clean::
 
 # TODO: maybe generalize parts below as a CDBS node snippet
 
-node-dirname ?= $(libname)
-js-nodestem ?= $(libname)
+node-dirname ?= $(pkg)
+js-nodestem ?= $(pkg)
 node-destdir ?= /usr/lib/nodejs/
 
 DEB_DH_LINK_$(node-pkgname) = $(js-destdir)/$(js-nodestem).js $(node-destdir)$(node-dirname).js

-- 
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