diff options
author | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-06-06 08:58:49 -0500 |
---|---|---|
committer | Omar Vega Ramos <ovruni@gnu.org.pe> | 2016-06-06 08:58:49 -0500 |
commit | 3157d459719a07ea9f07f11e4c30003f8b41c736 (patch) | |
tree | abaafca26372b9727c1b293196ab8c554e0d5e16 /libre/parabola-wiki-lite/libre.patch | |
parent | a5620657cbda75dc703e482c6483f85a422135cd (diff) |
parabola-wiki-lite: add new package to [libre] - Packaging request #1025 -> https://labs.parabola.nu/issues/1025
Diffstat (limited to 'libre/parabola-wiki-lite/libre.patch')
-rw-r--r-- | libre/parabola-wiki-lite/libre.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/libre/parabola-wiki-lite/libre.patch b/libre/parabola-wiki-lite/libre.patch new file mode 100644 index 000000000..faf170514 --- /dev/null +++ b/libre/parabola-wiki-lite/libre.patch @@ -0,0 +1,57 @@ +--- arch-wiki-lite.orig/wiki_lite.py 2014-07-11 15:37:52.000000000 -0500 ++++ arch-wiki-lite/wiki_lite.py 2016-06-06 08:00:56.369924650 -0500 +@@ -8,7 +8,7 @@ + This should be using a real html parser, + but input is safe/known and there is a lot to parse. + """ +-wiki_path = '/usr/share/doc/arch-wiki/html/' ++wiki_path = '/usr/share/doc/parabola-wiki/html/' + dump_path = './wiki/' + + # not a complete list, but does cover the current wiki +@@ -143,7 +143,7 @@ + os.makedirs(dump_path) + toc = generate_toc() + toc_file = open(dump_path + 'index', 'w') +- txt_file = gzip.open(dump_path + 'arch-wiki.txt.gz', 'w') ++ txt_file = gzip.open(dump_path + 'parabola-wiki.txt.gz', 'w') + escape_regex = re.compile('&#x?[0-9A-Fa-f]+;') + for path in all_html_paths(wiki_path): + if path == 'index.html': +--- arch-wiki-lite.orig/wiki-search 2016-04-30 10:44:25.000000000 -0500 ++++ arch-wiki-lite/wiki-search 2016-06-06 08:05:30.488986591 -0500 +@@ -3,11 +3,11 @@ + # todo, ewiki-search (extended regex) + # and/or multiword (matches + 1, product, divided by word count) + +-wiki_path="/usr/share/doc/arch-wiki/text" ++wiki_path="/usr/share/doc/parabola-wiki/text" + #wiki_path="./wiki" + dialogrc_path="/etc/dialog.d/wiki-search.dialog.rc" +-html_path="/usr/share/doc/arch-wiki/html" +-wikiball="$wiki_path/arch-wiki.txt.gz" ++html_path="/usr/share/doc/parabola-wiki/html" ++wikiball="$wiki_path/parabola-wiki.txt.gz" + tmp="/tmp/.wiki-search.${USER}.tmp" + COLOR1='\e[1;32m' + COLOR5='\e[1;34m' +@@ -126,7 +126,7 @@ + ;; + -h|--help|'') + echo "$(basename $0)" +- echo "Search and view your local copy of the Arch wiki." ++ echo "Search and view your local copy of the Parabola wiki." + echo "" + echo "Search with '$(basename $0) [query]' where query is a regex" + echo "or a list of terms to match individually." +--- arch-wiki-lite.orig/wiki-search-html 2016-04-30 10:20:28.000000000 -0500 ++++ arch-wiki-lite/wiki-search-html 2016-06-06 08:06:29.153749809 -0500 +@@ -7,7 +7,7 @@ + source $wikisearch --source + + if [[ ! -d "$html_path" ]]; then +- echo "pacman -S arch-wiki-docs" ++ echo "pacman -S parabola-wiki-docs" + exit 1 + fi + |