[Pkg-javascript-commits] [node-async] 01/04: Use short-form dh sequencer (not cdbs). Stop build-depend on cdbs.

Jonas Smedegaard dr at jones.dk
Sun Jan 7 18:27:31 UTC 2018


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

js pushed a commit to annotated tag debian/0.8.0-3
in repository node-async.

commit ab48109e58835288092ad9209f4cb3c95c0b7fc4
Author: Jonas Smedegaard <dr at jones.dk>
Date:   Sun Jan 7 18:38:09 2018 +0100

    Use short-form dh sequencer (not cdbs). Stop build-depend on cdbs.
---
 debian/control |  2 +-
 debian/rules   | 28 ++++++++++++++++++----------
 2 files changed, 19 insertions(+), 11 deletions(-)

diff --git a/debian/control b/debian/control
index c29101f..0bfea88 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: javascript
 Priority: optional
 Maintainer: Debian Javascript Maintainers <pkg-javascript-devel at lists.alioth.debian.org>
 Uploaders: Jonas Smedegaard <dr at jones.dk>
-Build-Depends: cdbs,
+Build-Depends:
  debhelper,
  node-uglify,
 Standards-Version: 4.1.3
diff --git a/debian/rules b/debian/rules
index 73fdb04..f8541a9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,9 +16,11 @@
 # 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/debhelper.mk
+%:
+	dh $@
 
-lib = $(patsubst node-%,%,$(DEB_SOURCE_PACKAGE))
+include /usr/share/dpkg/pkg-info.mk
+lib = $(patsubst node-%,%,$(DEB_SOURCE))
 pkg-js = libjs-$(lib)
 pkg-node = node-$(lib)
 js-basedir = lib/
@@ -27,18 +29,24 @@ js-minified = $(patsubst $(js-basedir)%.js,debian/%.min.js,$(js-plain))
 js-destdir = /usr/share/javascript/$(lib)
 node-destdir = /usr/lib/nodejs/$(lib)
 
-DEB_INSTALL_DOCS_ALL += README.md
+override_dh_installdocs:
+	dh_installdocs --all README.md
 
-DEB_DH_INSTALL_ARGS_$(pkg-js) = $(js-plain) $(js-minified) $(js-destdir)
-DEB_DH_INSTALL_ARGS_$(pkg-node) = package.json $(node-destdir)
-DEB_DH_LINK_$(pkg-node) = $(js-destdir)/$(lib).js $(node-destdir)/index.js
+override_dh_install:
+	dh_install -p$(pkg-js) $(js-plain) $(js-minified) $(js-destdir)
+	dh_install -p$(pkg-node) package.json $(node-destdir)
+override_dh_link:
+	dh_link -p$(pkg-node) $(js-destdir)/$(lib).js $(node-destdir)/index.js
+	dh_link -p$(pkg-node) $(js-destdir)/$(lib).js $(node-destdir)/index.js
 
-build/$(pkg-js):: $(js-minified)
+override_dh_auto_build: $(js-minified)
 debian/%.min.js: $(js-basedir)%.js
 	uglifyjs -o $@ $<
-clean::
+override_dh_auto_test:
+override_dh_auto_clean:
 	rm -f $(js-minified)
 
 # Unset executable bit on library files
-binary-post-install/$(pkg-js)::
-	chmod -x debian/$(cdbs_curpkg)$(js-destdir)/*
+override_dh_fixperms:
+	dh_fixperms
+	chmod -x debian/$(pkg-js)$(js-destdir)/*

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



More information about the Pkg-javascript-commits mailing list