[DRE-commits] [ruby-gemojione] 04/05: Fix locales issue to run tests

Balasankar C balasankarc-guest at moszumanska.debian.org
Thu Dec 3 15:44:43 UTC 2015


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

balasankarc-guest pushed a commit to branch master
in repository ruby-gemojione.

commit 216f58edcb03efa6b189459482ef34b3d2e4aa19
Author: Balasankar C <balasankarc at autistici.org>
Date:   Thu Dec 3 21:07:56 2015 +0530

    Fix locales issue to run tests
---
 debian/rules | 13 ++++++++++++-
 1 file changed, 12 insertions(+), 1 deletion(-)

diff --git a/debian/rules b/debian/rules
index 3454d59..a8a8036 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,4 +3,15 @@
 export GEM2DEB_TEST_RUNNER = --check-dependencies
 
 %:
-	dh $@ --buildsystem=ruby --with ruby
+	mkdir -p debian/build/locale
+	localedef -f UTF-8 -i en_US debian/build/locale/en_US.UTF-8
+	LOCPATH=$(CURDIR)/debian/build/locale LC_ALL=en_US.UTF-8 dh $@ --buildsystem=ruby --with ruby
+
+override_dh_clean:
+	rm -rf Gemfile.lock
+	LOCPATH=$(CURDIR)/debian/build/locale LC_ALL=en_US.UTF-8 dh_clean
+	rm -rf debian/build/
+
+override_dh_auto_install:
+	cp -vr config debian/ruby-gemojione/usr/share/ruby-gemojione/
+	dh_auto_install

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



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