[DRE-commits] [ruby-handlebars-assets] 04/04: symlink files to vendor during test

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Mon Oct 23 12:19:11 UTC 2017


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

praveen pushed a commit to branch master
in repository ruby-handlebars-assets.

commit 311d4810c0af5ba19779d17dad1309de0867c678
Author: Pirate Praveen <praveen at debian.org>
Date:   Mon Oct 23 17:48:32 2017 +0530

    symlink files to vendor during test
---
 debian/control | 2 ++
 debian/rules   | 8 ++++++++
 2 files changed, 10 insertions(+)

diff --git a/debian/control b/debian/control
index fa00303..0737135 100644
--- a/debian/control
+++ b/debian/control
@@ -11,6 +11,8 @@ Build-Depends: debhelper (>= 9~),
                ruby-slim,
                ruby-sprockets,
                ruby-tilt,
+               libjs-handlebars (>= 3:4.0.10~),
+               libjs-handlebars.runtime (>= 3:4.0.10~),
 Standards-Version: 4.1.1
 Vcs-Git: https://anonscm.debian.org/git/pkg-ruby-extras/ruby-handlebars-assets.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-handlebars-assets.git
diff --git a/debian/rules b/debian/rules
index ff43959..c06f11b 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,6 +6,11 @@ export DH_RUBY = --gem-install
 %:
 	dh $@ --buildsystem=ruby --with ruby
 
+override_dh_auto_test:
+	mkdir -p vendor/assets/javascripts
+	ln -s /usr/share/javascript/handlebars/handlebars.js vendor/assets/javascripts
+	ln -s /usr/share/javascript/handlebars.runtime/handlebars.runtime.js vendor/assets/javascripts
+
 override_dh_install:
 	dh_install
 	# Make sure the symlinks are pointing to correct version
@@ -14,3 +19,6 @@ override_dh_install:
 	"Error: Broken links. Update debian/links with correct version";\
 	exit 1; fi
 
+override_dh_auto_clean:
+	dh_auto_clean
+	rm -rf vendor

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-handlebars-assets.git



More information about the Pkg-ruby-extras-commits mailing list