[DRE-commits] [SCM] ruby-prawn.git branch, master, updated. upstream/1.0.0_rc1-44-g6e97afc

Cédric Boutillier cedric.boutillier at gmail.com
Thu Nov 24 23:11:59 UTC 2011


The following commit has been merged in the master branch:
commit e51adf4d2a9b49b61dbf503554aac58b0969b138
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date:   Tue Nov 15 23:56:00 2011 +0100

    install data/ before auto_install to be ready to run the specs

diff --git a/debian/rules b/debian/rules
index a5e7dc8..b9f55af 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,5 +1,5 @@
 #!/usr/bin/make -f
-#export DH_VERBOSE=1
+export DH_VERBOSE=1
 #
 # Uncomment to ignore all test failures (but the tests will run anyway)
 #export DH_RUBY_IGNORE_TESTS=all
@@ -13,3 +13,19 @@
 
 %:
 	dh $@ --buildsystem=ruby --with ruby
+
+
+override_dh_auto_install:
+	# copy specs' data to data dir in order to install them correctly to run the specs
+	cp -R spec/data/ data/spec
+	# install manually and temporarily data
+	mkdir -p debian/ruby-prawn/usr/share/ruby-prawn
+	cp -R data/* debian/ruby-prawn/usr/share/ruby-prawn
+	dh_auto_install
+	# remove the copy of data in debian/ruby-prawn
+	rm -rf debian/ruby-prawn/usr/share/ruby-prawn
+
+override_dh_auto_clean:
+	# remove the copy of spec/data in data/
+	rm -rf data/spec
+	dh_auto_clean

-- 
ruby-prawn.git



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