File: remove-unecessary-rakefile-deps.patch

package info (click to toggle)
jq 1.6-2.1%2Bdeb12u1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm-proposed-updates
  • size: 2,236 kB
  • sloc: ansic: 13,418; yacc: 872; sh: 403; lex: 185; makefile: 158; javascript: 50; python: 20
file content (31 lines) | stat: -rw-r--r-- 911 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
From: =?utf-8?b?IkNoYW5nWmh1byBDaGVuICjpmbPmmIzlgKwpIg==?=
 <czchen@debian.org>
Date: Sun, 4 Nov 2018 21:34:10 +0800
Subject: patch Rakefile to allow for easier manpage generation

This patch disable some of the dependencies that are not
required to build the actual manpage.
Bug: https://github.com/stedolan/jq/issues/435
Last-Update: 2014-06-21
---
 docs/Rakefile | 10 ++++++++++
 1 file changed, 10 insertions(+)

diff --git a/docs/Rakefile b/docs/Rakefile
index 93302a2..3256ed4 100644
--- a/docs/Rakefile
+++ b/docs/Rakefile
@@ -1,3 +1,13 @@
+require 'yaml'
+require 'json'
+require 'ronn'
+require 'tempfile'
+require 'yaml'
+
+def load_manual
+  YAML::load(File.open("content/3.manual/manual.yml"))
+end
+
 current_dir = File.dirname(__FILE__)
 rakefile_manual = File.expand_path(File.join(current_dir, "Rakefile.manual"))
 rakefile_website = File.expand_path(File.join(current_dir, "Rakefile.website"))