[DRE-commits] [ruby-json-schema] 08/11: install resources/drafts* under usr/share

Cédric Boutillier boutil at moszumanska.debian.org
Mon Jun 6 22:35:05 UTC 2016


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

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

commit f7607afb611ce1382bf9e450f4f8aff178e5d9c6
Author: Cédric Boutillier <boutil at debian.org>
Date:   Tue Jun 7 00:18:50 2016 +0200

    install resources/drafts* under usr/share
---
 debian/changelog                         |  1 +
 debian/patches/move-resource-draft.patch | 16 ++++++++++++++++
 debian/patches/series                    |  1 +
 debian/ruby-json-schema.install          |  1 +
 4 files changed, 19 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index e197c6b..0e51dcb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ ruby-json-schema (2.6.2-1) unstable; urgency=medium
   * Depend on addressable >= 2.4
   * Apply patch proposed upstream to work with addressable 2.4+ (Closes:
     #826412)
+  * Install resources/drafts* under usr/share
 
  -- Cédric Boutillier <boutil at debian.org>  Tue, 07 Jun 2016 00:03:10 +0200
 
diff --git a/debian/patches/move-resource-draft.patch b/debian/patches/move-resource-draft.patch
new file mode 100644
index 0000000..0ec0390
--- /dev/null
+++ b/debian/patches/move-resource-draft.patch
@@ -0,0 +1,16 @@
+Description: move resources/ in /usr/share/ruby-json-schema
+Author: Cédric Boutillier <boutil at debian.org>
+Forwarded: no
+Last-Update: 2016-06-07
+
+--- a/lib/json-schema/schema/validator.rb
++++ b/lib/json-schema/schema/validator.rb
+@@ -28,7 +28,7 @@
+       end
+ 
+       def metaschema
+-        resources = File.expand_path('../../../../resources', __FILE__)
++        resources = File.expand_path('../../../../../../share/ruby-json-schema/resources', __FILE__)
+         File.join(resources, @metaschema_name)
+       end
+     end
diff --git a/debian/patches/series b/debian/patches/series
index d8d567a..5b65609 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
 update-addressable-24.patch
+move-resource-draft.patch
diff --git a/debian/ruby-json-schema.install b/debian/ruby-json-schema.install
new file mode 100644
index 0000000..2c4e3c1
--- /dev/null
+++ b/debian/ruby-json-schema.install
@@ -0,0 +1 @@
+resources /usr/share/ruby-json-schema/

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



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