[DRE-commits] [ruby-gettext] 04/05: rebuild lib/gettext/po_parser.rb during build

Antonio Terceiro terceiro at alioth.debian.org
Sun Oct 6 23:25:30 UTC 2013


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

terceiro pushed a commit to branch master
in repository ruby-gettext.

commit 45f085f9f420b542f21c75b4bdd616eb80affe33
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Sun Oct 6 20:09:12 2013 -0300

    rebuild lib/gettext/po_parser.rb during build
---
 debian/changelog |    2 ++
 debian/control   |    1 +
 debian/rules     |    8 ++++++++
 3 files changed, 11 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index 5fc597f..0e7392c 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,8 @@ ruby-gettext (3.0.2-1) UNRELEASED; urgency=low
     of xx_YY.UTF-8 (mainly gdm3 users with old user accounts). Closes: #725496
     + debian/patches/0005-Restore-compatibility-with-Ruby-1.8.patch: refreshed
       against new upstream version
+  * force rebuilding lib/gettext/po_parser.rb from source (src/po_parser.ry)
+    during build. Build-Depend on racc.
 
  -- Antonio Terceiro <terceiro at debian.org>  Sun, 06 Oct 2013 19:51:18 -0300
 
diff --git a/debian/control b/debian/control
index 91f733f..f46a43a 100644
--- a/debian/control
+++ b/debian/control
@@ -5,6 +5,7 @@ Maintainer: Debian Ruby Extras Maintainers <pkg-ruby-extras-maintainers at lists.al
 Uploaders: Hleb Valoshka <375gnu at gmail.com>
 Build-Depends: debhelper (>= 7.0.50~),
                gem2deb (>= 0.3.0~),
+               racc,
                rake,
                ruby-locale (>= 2.0.5),
                ruby-rr,
diff --git a/debian/rules b/debian/rules
index 87fd01b..0249934 100755
--- a/debian/rules
+++ b/debian/rules
@@ -3,5 +3,13 @@
 %:
 	dh $@ --buildsystem=ruby --with ruby
 
+override_dh_auto_install:
+	# force rebuilding lib/gettext/po_parser.rb from source
+	touch src/po_parser.ry
+	# avoid rebuilding samples/**/*.mo though
+	find samples/ -name '*.mo' -exec touch '{}' ';'
+	# do the usual thing
+	dh_auto_install
+
 override_dh_installchangelogs:
 	dh_installchangelogs doc/text/news.md -O--buildsystem=ruby

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



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