[DRE-commits] [ruby-versionomy] 03/04: 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 20:02:06 UTC 2013


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

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

commit 53c55bab9877d1faf8f3d40997c240391935b802
Author: Ben Armstrong <synrg at debian.org>
Date:   Sun Aug 11 16:37:14 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..c8c4a70
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+lib/versionomy/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..16153cc
--- /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/versionomy
+ 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/versionomy/version.rb
++++ b/lib/versionomy/version.rb
+@@ -37,7 +37,7 @@
+ module Versionomy
+ 
+   # 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
+ 
+   # Current gem version, as a Versionomy::Value.
+   VERSION = ::Versionomy.parse(VERSION_STRING, :standard)
diff --git a/debian/rules b/debian/rules
index a5e7dc8..24e5d74 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,8 @@
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+#move Version file inside lib/versionomy
+override_dh_auto_install:
+	cp Version lib/versionomy/Version
+	dh_auto_install

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



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