[Pkg-javascript-commits] [backbone] 06/11: Move away from cdbs

Julien Puydt julien.puydt at laposte.net
Sat Aug 27 11:47:09 UTC 2016


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

jpuydt-guest pushed a commit to branch master
in repository backbone.

commit bd8be5550366c82240fab91a4690029849556b5f
Author: Julien Puydt <julien.puydt at laposte.net>
Date:   Sat Aug 27 11:24:25 2016 +0200

    Move away from cdbs
---
 debian/changelog  |  3 +-
 debian/control    | 31 ++++++++-----------
 debian/control.in | 42 --------------------------
 debian/rules      | 90 ++-----------------------------------------------------
 4 files changed, 16 insertions(+), 150 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e345add..e1441a7 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -5,7 +5,8 @@ backbone (1.3.3-1) UNRELEASED; urgency=medium
   * Bump standards-version.
   * Use https in Vcs-* fields.
   * Drop obsolete patch to support newer underscore.
-  * Rewrote the patch to use Debian-packaged libraries.
+  * Rewrite the patch to use Debian-packaged libraries.
+  * Move away from cdbs.
 
  -- Julien Puydt <julien.puydt at laposte.net>  Sat, 27 Aug 2016 11:04:48 +0200
 
diff --git a/debian/control b/debian/control
index 874049c..cdc64db 100644
--- a/debian/control
+++ b/debian/control
@@ -3,16 +3,15 @@ Section: web
 Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: Jonas Smedegaard <dr at jones.dk>
-Build-Depends: cdbs,
- devscripts,
- debhelper,
- dh-buildinfo,
- node-uglify | yui-compressor,
- coffeescript,
- libjs-json,
- libjs-jquery,
- libjs-underscore,
- node-underscore
+Build-Depends: coffeescript,
+               debhelper (>= 9),
+               devscripts,
+               dh-buildinfo,
+               libjs-jquery,
+               libjs-json,
+               libjs-underscore,
+               node-uglify,
+               node-underscore
 Standards-Version: 3.9.8
 Homepage: http://backbonejs.org/
 Vcs-Git: https://anonscm.debian.org/git/pkg-javascript/backbone
@@ -20,9 +19,7 @@ Vcs-Browser: https://anonscm.debian.org/cgit/pkg-javascript/backbone.git
 
 Package: libjs-backbone
 Architecture: all
-Depends: ${cdbs:Depends},
- ${misc:Depends}
-Recommends: ${cdbs:Recommends}
+Depends: ${misc:Depends}
 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
@@ -34,11 +31,7 @@ Description: some Backbone for JavaScript applications - browser library
 
 Package: node-backbone
 Architecture: all
-Depends: ${cdbs:Depends},
- ${misc:Depends}
-Recommends: ${cdbs:Recommends}
-Breaks: ${cdbs:Breaks}
-Replaces: ${cdbs:Replaces}
+Depends: libjs-backbone, nodejs, ${misc:Depends}
 Description: some Backbone for JavaScript applications - Node module
  Node is an event-based server-side JavaScript engine.
  .
@@ -48,4 +41,4 @@ Description: some Backbone for JavaScript applications - Node module
  handling, and connects it all to your existing API over a RESTful JSON
  interface.
  .
- This package contains node-uuid usable with Node.
+ This package contains node-uuid usable with Node.js.
diff --git a/debian/control.in b/debian/control.in
deleted file mode 100644
index 9c2485a..0000000
--- a/debian/control.in
+++ /dev/null
@@ -1,42 +0,0 @@
-Source: backbone
-Section: web
-Priority: optional
-Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
-Uploaders: Jonas Smedegaard <dr at jones.dk>
-Build-Depends: @cdbs@
-Standards-Version: 3.9.5
-Homepage: http://backbonejs.org/
-Vcs-Git: git://git.debian.org/git/pkg-javascript/backbone
-Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-javascript/backbone.git
-
-Package: libjs-backbone
-Architecture: all
-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
- with a rich API of enumerable functions, views with declarative event
- handling, and connects it all to your existing API over a RESTful JSON
- interface.
- .
- This package contains backbone usable directly in web browsers.
-
-Package: node-backbone
-Architecture: all
-Depends: ${cdbs:Depends},
- ${misc:Depends}
-Recommends: ${cdbs:Recommends}
-Breaks: ${cdbs:Breaks}
-Replaces: ${cdbs:Replaces}
-Description: some Backbone for JavaScript applications - Node module
- Node is an event-based server-side JavaScript engine.
- .
- Backbone gives structure to your serious JavaScript web applications by
- supplying models with key-value binding and custom events, collections
- with a rich API of enumerable functions, views with declarative event
- handling, and connects it all to your existing API over a RESTful JSON
- interface.
- .
- This package contains node-uuid usable with Node.
diff --git a/debian/rules b/debian/rules
index c936a78..abde6ef 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,91 +1,5 @@
 #!/usr/bin/make -f
-# -*- mode: makefile; coding: utf-8 -*-
-# Copyright © 2010-2014 Jonas Smedegaard <dr at jones.dk>
-# Description: Main Debian packaging script for Backbone
-#
-# This program is free software; you can redistribute it and/or modify
-# it under the terms of the GNU General Public License as published by
-# the Free Software Foundation; either version 3, or (at your option)
-# any later version.
-#
-# This program is distributed in the hope that it will be useful, but
-# WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
-# General Public License for more details.
-#
-# 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/utils.mk
-include /usr/share/cdbs/1/rules/debhelper.mk
+%:
+	dh $@
 
-pkg = $(DEB_SOURCE_PACKAGE)
-jspkg = libjs-$(pkg)
-js-stems = $(pkg)
-nodepkg = node-$(pkg)
-
-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 when uglifyjs is in Debian stable
-CDBS_BUILD_DEPENDS += , node-uglify | yui-compressor
-js-compressor := $(or $(notdir $(shell which uglifyjs)),yui-compressor)
-
-CDBS_BUILD_DEPENDS +=, coffeescript, phantomjs, libjs-json, libjs-jquery
-CDBS_BUILD_DEPENDS +=, libjs-underscore
-CDBS_BUILD_DEPENDS +=, node-underscore
-CDBS_DEPENDS_$(jspkg) = libjs-underscore
-CDBS_DEPENDS_$(nodepkg) = nodejs, libjs-backbone
-CDBS_DEPENDS_$(nodepkg) +=, node-underscore
-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)
-
-# Silence images in addition to the default debian files
-DEB_COPYRIGHT_CHECK_IGNORE_REGEX = ^docs/images/.*\.(jpg|png)|debian/(changelog|copyright(|_hints|_newhints))$
-
-DEB_INSTALL_DOCS_ALL += README.md
-
-build/$(jspkg):: debian/stamp-build
-debian/stamp-build:
-	$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,coffee test/*.coffee)
-#	$(if $(filter nocheck,$(DEB_BUILD_OPTIONS)),,phantomjs test/vendor/runner.js test/index.html?noglobals=true)
-	touch $@
-clean::
-	rm -f debian/stamp-build
-
-DEB_INSTALL_DOCS_ALL += index.html
-DEB_INSTALL_EXAMPLES_$(jspkg) += examples/*
-
-# TODO: generalize parts below as a CDBS javascript snippet
-
-#js-basedir =
-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)
-js-compressor ?= uglifyjs
-js-compressor-opts ?= -o $@ $<
-
-DEB_DH_INSTALL_ARGS_$(jspkg) = $(addsuffix .js,$(js-stems)) debian/*.min.js $(js-destdir)
-
-build/$(jspkg):: $(js-min)
-$(js-min): debian/%.min.js: $(js-basedir)%.js
-	$(js-compressor) $(js-compressor-opts)
-clean::
-	rm -f debian/*.js
-
-# TODO: maybe generalize parts below as a CDBS node snippet
-
-node-dirname ?= $(pkg)
-js-nodestem ?= $(pkg)
-node-destdir ?= /usr/lib/nodejs/
-
-DEB_DH_LINK_$(nodepkg) = $(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