aports/main/apcupsd/manify-with-mandoc.patch
Celeste b1f126e42e main/apcupsd: manify with mandoc
`col` is unavailable as it has been disabled since
8886d84e25

as far as i can tell, these files are not installed in
the .apk, as besides `doc/Makefile`, `*.man.txt` is only
mentioned in `platforms/mingw/installer/winapcupsd.nsi`,
so it doesn't matter what output is produced by mandoc.

also, add `mandoc` to `makedepends` and sort that alphabetically
2024-04-23 02:26:38 +00:00

15 lines
488 B
Diff

cmd:col is no longer provided by util-linux-misc
since 2.40, it was disabled for musl libc in
https://github.com/util-linux/util-linux/commit/8886d84e25a457702b45194d69a47313f76dc6bc
--- a/autoconf/targets.mak
+++ b/autoconf/targets.mak
@@ -298,7 +298,7 @@
# Format a manpage into plain text
define MANIFY
@$(ECHO) " MAN " $(1) -\> $(2)
- $(V)man ./$(1) | col -b > $(2)
+ $(V)mandoc -Tascii ./$(1) > $(2)
endef
# Rule to build a Windows resource object from the source RC file