all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
blob f7118c309acf8492a1adc20d6620691813fb01a8 1966 bytes (raw)
name: gnu/packages/patches/kakoune-leave-manpages-uncompressed.patch 	 # note: path name is non-authoritative(*)

 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
 
--- a/src/Makefile
+++ b/src/Makefile
@@ -22,7 +22,7 @@
 objects := $(addprefix ., $(sources:.cc=$(suffix).o))
 deps := $(addprefix ., $(sources:.cc=$(suffix).d))
 docs := $(wildcard ../doc/manpages/*.asciidoc)
-mandocs := $(docs:.asciidoc=.gz)
+mandocs := $(docs:.asciidoc=.1)
 
 PREFIX ?= /usr/local
 DESTDIR ?= # root dir
@@ -76,19 +76,17 @@
 	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -MP -MF $(addprefix ., $(<:.cc=$(suffix).d)) -c -o $@ $<
 
 # Generate the man page
-../doc/kak.1.gz: ../doc/kak.1.txt
+../doc/kak.1: ../doc/kak.1.txt
 	a2x --no-xmllint -f manpage $<
-	gzip -f $(basename $<)
 
 # Generate the editor's documentation pages
 # Since `a2x` won't generate man pages if some sections are missing (which we don't need),
-# we generate the pages, patch them and then compress them
-../doc/manpages/%.gz: ../doc/manpages/%.asciidoc
+# we generate the pages and patch them
+../doc/manpages/%.1: ../doc/manpages/%.asciidoc
 	a2x --no-xmllint -f manpage $<
 	sed -i -r -e "s,^\.TH .+,.TH KAKOUNE 1 \"\" \"\" \"$(basename $(notdir $<))\"," \
-	-e "/^\.SH \"NAME\"/{N;d;}" $(@:.gz=.1)
-	gzip -f $(@:.gz=.1)
-	mv -f $(@:.gz=.1.gz) $@
+	-e "/^\.SH \"NAME\"/{N;d;}" $@
+
 
 check: test
 test:
@@ -97,7 +95,7 @@
 TAGS: tags
 tags:
 	ctags -R
-man: ../doc/kak.1.gz
+man: ../doc/kak.1
 doc: $(mandocs)
 
 clean:
@@ -124,8 +122,8 @@
 	[ -e $(sharedir)/autoload ]	|| ln -s rc	$(sharedir)/autoload
 	install	-m 0644	../colors/*	$(sharedir)/colors
 	install	-m 0644	../README.asciidoc $(docdir)
-	install	-m 0644	../doc/manpages/*.gz $(docdir)/manpages
-	install	-m 0644	../doc/kak.1.gz	$(mandir)
+	install	-m 0644	../doc/manpages/*.1 $(docdir)/manpages
+	install	-m 0644	../doc/kak.1	$(mandir)
 
 install-strip: install
 	strip -s $(bindir)/kak
@@ -134,7 +132,7 @@
 	rm -rf $(bindir)/kak \
 		$(sharedir)	\
 		$(docdir) \
-		$(mandir)/kak.1.gz
+		$(mandir)/kak.1
 
 .PHONY: check TAGS clean distclean installdirs install install-strip uninstall
 .PHONY: tags test man doc

debug log:

solving f7118c309 ...
found f7118c309 in https://yhetil.org/guix/87y3yykov6.fsf@zancanaro.id.au/

applying [1/1] https://yhetil.org/guix/87y3yykov6.fsf@zancanaro.id.au/
diff --git a/gnu/packages/patches/kakoune-leave-manpages-uncompressed.patch b/gnu/packages/patches/kakoune-leave-manpages-uncompressed.patch
new file mode 100644
index 000000000..f7118c309

1:15: trailing whitespace.
 
1:19: space before tab in indent.
 	$(CXX) $(CPPFLAGS) $(CXXFLAGS) -MD -MP -MF $(addprefix ., $(<:.cc=$(suffix).d)) -c -o $@ $<
1:20: trailing whitespace.
 
1:24: space before tab in indent.
 	a2x --no-xmllint -f manpage $<
1:26: trailing whitespace.
 
Checking patch gnu/packages/patches/kakoune-leave-manpages-uncompressed.patch...
Applied patch gnu/packages/patches/kakoune-leave-manpages-uncompressed.patch cleanly.
warning: squelched 14 whitespace errors
warning: 19 lines add whitespace errors.

index at:
100644 f7118c309acf8492a1adc20d6620691813fb01a8	gnu/packages/patches/kakoune-leave-manpages-uncompressed.patch

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.