about summary refs log tree commit diff
path: root/pkgs/applications/misc/rtfm/patches/friendly-docs-path.patch
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/applications/misc/rtfm/patches/friendly-docs-path.patch')
-rw-r--r--pkgs/applications/misc/rtfm/patches/friendly-docs-path.patch11
1 files changed, 11 insertions, 0 deletions
diff --git a/pkgs/applications/misc/rtfm/patches/friendly-docs-path.patch b/pkgs/applications/misc/rtfm/patches/friendly-docs-path.patch
new file mode 100644
index 0000000000000..cecbeb750b300
--- /dev/null
+++ b/pkgs/applications/misc/rtfm/patches/friendly-docs-path.patch
@@ -0,0 +1,11 @@
+--- a/src/create_gtk_docset.cr	2023-07-17 14:28:04.882620660 +0300
++++ b/src/create_gtk_docset.cr	2023-07-17 14:27:09.660643747 +0300
+@@ -136,7 +136,7 @@
+ end
+ 
+ def find_modules : Array(Path)
+-  basedir = Path.new("/usr/share/doc")
++  basedir = Path.new(ARGV[0]? || "gtk-docs")
+   MODULES.compact_map do |mod|
+     print "#{mod.ljust(20, '.')}"
+     mod_dir = basedir.join(mod)