[DRE-commits] [ruby-gitlab-emoji] 01/01: generate locales

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Wed Dec 9 18:06:49 UTC 2015


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

praveen pushed a commit to branch master
in repository ruby-gitlab-emoji.

commit b093cad43992886eac0e37018e1af7f0a4c5e295
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Wed Dec 9 23:28:48 2015 +0530

    generate locales
---
 debian/control | 3 ++-
 debian/rules   | 8 +++++++-
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/debian/control b/debian/control
index 1c7da19..59d3b5c 100644
--- a/debian/control
+++ b/debian/control
@@ -7,7 +7,8 @@ Build-Depends: debhelper (>= 9~),
                gem2deb,
                rake,
                ruby-gemojione (>= 2.0),
-               ruby-rspec
+               ruby-rspec,
+               locales
 Standards-Version: 3.9.6
 Vcs-Git: git://anonscm.debian.org/pkg-ruby-extras/ruby-gitlab-emoji.git
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-ruby-extras/ruby-gitlab-emoji.git
diff --git a/debian/rules b/debian/rules
index 3454d59..7a1bae1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,4 +3,10 @@
 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:
+	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-gitlab-emoji.git



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