[DRE-commits] [ruby-yaml-db] 08/09: move tasks under the yaml_db subdirectory
Cédric Boutillier
boutil at moszumanska.debian.org
Mon Jul 27 05:21:23 UTC 2015
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-yaml-db.
commit c8559dd3c7e4710199abddf8cbd74076005f04b1
Author: Cédric Boutillier <boutil at debian.org>
Date: Mon Jul 27 07:17:26 2015 +0200
move tasks under the yaml_db subdirectory
---
debian/patches/move_rake_task.patch | 18 ++++++++++++++++++
debian/patches/series | 1 +
debian/rules | 12 ++++++++++++
3 files changed, 31 insertions(+)
diff --git a/debian/patches/move_rake_task.patch b/debian/patches/move_rake_task.patch
new file mode 100644
index 0000000..32a0c3b
--- /dev/null
+++ b/debian/patches/move_rake_task.patch
@@ -0,0 +1,18 @@
+Description: search Rake task files under the yaml_db/ subdirectory
+ The .rake files are moved to /usr/lib/ruby/vendor_ruby/yaml_db to keep them
+ under a controlled name space.
+Author: Cédric Boutillier <boutil at debian.org>
+Last-Update: 2015-07-26
+
+--- a/lib/yaml_db.rb
++++ b/lib/yaml_db.rb
+@@ -69,8 +69,7 @@
+
+ class Railtie < Rails::Railtie
+ rake_tasks do
+- load File.expand_path('../tasks/yaml_db_tasks.rake',
+-__FILE__)
++ load File.expand_path('yaml_db/tasks/yaml_db_tasks.rake',File.dirname(__FILE__))
+ end
+ end
+
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..954116b
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+move_rake_task.patch
diff --git a/debian/rules b/debian/rules
index 9384390..6411c54 100755
--- a/debian/rules
+++ b/debian/rules
@@ -13,3 +13,15 @@ export DH_RUBY_IGNORE_TESTS=ruby1.8
%:
dh $@ --buildsystem=ruby --with ruby
+
+override_dh_auto_install:
+ mkdir -p lib/yaml_db/tasks
+ cp lib/tasks/* lib/yaml_db/tasks
+ dh_auto_install
+ rm -rf debian/ruby-yaml-db/usr/lib/ruby/vendor_ruby/tasks/
+
+
+override_dh_clean:
+ dh_clean
+ rm -rf lib/yaml_db/tasks
+
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-yaml-db.git
More information about the Pkg-ruby-extras-commits
mailing list