[DRE-commits] [ruby-crass] 03/03: Set locale before build

Balasankar C balasankarc-guest at moszumanska.debian.org
Fri Jan 23 06:13:45 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-crass.

commit dc50412b7d2112fc142e2c2dbbd9e15c94b877d0
Author: Balasankar C <balasankarc at autistici.org>
Date:   Thu Jan 22 22:38:18 2015 +0530

    Set locale before build
---
 debian/changelog | 1 +
 debian/control   | 2 +-
 debian/rules     | 9 ++++++++-
 3 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 23bd308..2830e9a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
 ruby-crass (1.0.1-1) unstable; urgency=medium
 
   * Upstream update to version 1.0.1
+  * Fix rules file to set locale to UTF-8 supported one before build
 
  -- Balasankar C <balasankarc at autistici.org>  Thu, 22 Jan 2015 20:47:37 +0530
 
diff --git a/debian/control b/debian/control
index 1bda410..8795ee7 100644
--- a/debian/control
+++ b/debian/control
@@ -3,7 +3,7 @@ Section: ruby
 Priority: optional
 Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.alioth.debian.org>
 Uploaders: Balasankar C <balasankarc at autistici.org>
-Build-Depends: debhelper (>= 7.0.50~), gem2deb
+Build-Depends: debhelper (>= 7.0.50~), gem2deb, ruby-minitest, rake, locales
 Standards-Version: 3.9.6
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-crass.git
 Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-ruby-extras/ruby-crass.git;a=summary
diff --git a/debian/rules b/debian/rules
index fc37b8f..88c7547 100755
--- a/debian/rules
+++ b/debian/rules
@@ -12,6 +12,13 @@
 #export DH_RUBY_GEMSPEC=gem.gemspec
 
 %:
-	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_installchangelogs:
 		dh_installchangelogs HISTORY.md
+
+override_dh_clean:
+	LOCPATH=$(CURDIR)/debian/build/locale LC_ALL=en_US.UTF-8 dh_clean --buildsystem=ruby
+	rm -rf debian/build/

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



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