[DRE-commits] [ruby-blockenspiel] 01/01: Move Version file. Thanks to Cédric Boutillier <boutil at debian.org> for solution from ruby-roxml.

Ben Armstrong synrg at alioth.debian.org
Sun Aug 11 16:10:08 UTC 2013


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

synrg pushed a commit to branch master
in repository ruby-blockenspiel.

commit 02cd049f791ccf73b526fa9c6d55244ea80c9003
Author: Ben Armstrong <synrg at debian.org>
Date:   Sun Aug 11 12:59:21 2013 -0300

    Move Version file. Thanks to Cédric Boutillier <boutil at debian.org> for solution from ruby-roxml.
---
 debian/clean                           |    1 +
 debian/patches/series                  |    1 +
 debian/patches/use_moved_Version.patch |   18 ++++++++++++++++++
 debian/rules                           |    5 +++++
 4 files changed, 25 insertions(+)

diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..583d78b
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+lib/blockenspiel/Version
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7f271b7
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+use_moved_Version.patch
diff --git a/debian/patches/use_moved_Version.patch b/debian/patches/use_moved_Version.patch
new file mode 100644
index 0000000..bbf289e
--- /dev/null
+++ b/debian/patches/use_moved_Version.patch
@@ -0,0 +1,18 @@
+Description: use moved version of Version file
+ Version file is moved from the root of the source package to lib/blockenspiel
+ The relative path of Version should be adapted in roxml.rb file
+Author: Ben Armstrong <synrg at sanctuary.nslug.ns.ca>
+Last-Update: 2013-08-11
+Forwarded: no
+
+--- a/lib/blockenspiel/version.rb
++++ b/lib/blockenspiel/version.rb
+@@ -37,7 +37,7 @@
+ module Blockenspiel
+ 
+   # Current gem version, as a frozen string.
+-  VERSION_STRING = ::File.read(::File.dirname(__FILE__)+'/../../Version').strip.freeze
++  VERSION_STRING = ::File.read(::File.dirname(__FILE__)+'/Version').strip.freeze
+ 
+   autoload(:VERSION, ::File.dirname(__FILE__)+'/versionomy.rb')
+ 
diff --git a/debian/rules b/debian/rules
index a5e7dc8..7384978 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,8 @@
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+#move Version file inside lib/blockenspiel
+override_dh_auto_install:
+	cp Version lib/blockenspiel/Version
+	dh_auto_install

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



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