[DRE-commits] [ruby-prawn] 10/15: move VERSION to lib/prawn/

Cédric Boutillier boutil at moszumanska.debian.org
Mon Sep 8 14:04:24 UTC 2014


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

boutil pushed a commit to branch master
in repository ruby-prawn.

commit 71dd840849276c792db2def76a5afa64da34abd6
Author: Cédric Boutillier <boutil at debian.org>
Date:   Mon Sep 8 15:13:03 2014 +0200

    move VERSION to lib/prawn/
---
 debian/clean                           |  1 +
 debian/patches/0650_move_VERSION.patch | 19 +++++++++++++++++++
 debian/patches/series                  |  1 +
 debian/rules                           |  1 +
 4 files changed, 22 insertions(+)

diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..3ef1d74
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1 @@
+lib/prawn/VERSION
diff --git a/debian/patches/0650_move_VERSION.patch b/debian/patches/0650_move_VERSION.patch
new file mode 100644
index 0000000..e58b15b
--- /dev/null
+++ b/debian/patches/0650_move_VERSION.patch
@@ -0,0 +1,19 @@
+Description: used the VERSION file moved under lib/prawn
+ the VERSION file is moved from the root of the source package to lib/prawn
+ The relative path of VERSION should be adapted in prawn.rb
+Author: Cédric Boutillier <boutil at debian.org>
+Bug: https://github.com/prawnpdf/prawn/issues/765
+Last-Update: 2014-09-08
+ 
+
+--- a/lib/prawn.rb
++++ b/lib/prawn.rb
+@@ -23,7 +23,7 @@
+   # /usr/lib/ruby/vendor_ruby/prawn -> /usr/share/ruby-prawn/
+   DATADIR = File.expand_path(File.join(dir, '..', '..', '..', 'share', 'ruby-prawn'))
+ 
+-  VERSION = File.read("#{BASEDIR}/VERSION").strip
++  VERSION = File.read("#{dir}/prawn/VERSION").strip
+ 
+   FLOAT_PRECISION = 1.0e-9
+ 
diff --git a/debian/patches/series b/debian/patches/series
index 8944931..876adc0 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -13,3 +13,4 @@
 #1002_define_external_encoding_for_manual.patch
 #0700_dont_call_git_from_manual.patch
 0600_replace_require_relative_manual.patch
+0650_move_VERSION.patch
diff --git a/debian/rules b/debian/rules
index f98f768..5775c22 100755
--- a/debian/rules
+++ b/debian/rules
@@ -16,6 +16,7 @@
 
 
 override_dh_auto_install:
+	cp VERSION lib/prawn/VERSION
 	# copy specs' data to data dir in order to install them correctly to run the specs
 	# install manually and temporarily data
 	mkdir -p debian/ruby-prawn/usr/share/ruby-prawn

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



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