2
0
mirror of https://codeberg.org/kiss-community/repo synced 2024-07-04 23:12:28 +00:00

mandoc: new package at 1.14.3

This commit is contained in:
Dylan Araps 2019-08-13 10:49:28 +00:00
parent 7a85ade671
commit 33ea80ae6f
5 changed files with 48 additions and 0 deletions

16
core/mandoc/build Executable file
View File

@ -0,0 +1,16 @@
#!/bin/sh -e
patch -p1 < pager.patch
cat > configure.local <<EOF
PREFIX=/usr
MANDIR=/usr/share/man
LIBDIR=/usr/lib
CFLAGS="$CFLAGS"
MANPATH_DEFAULT=/usr/share/man
LN="ln -sf"
EOF
MANPATH_BASE=/usr/share/man ./configure
make
make -j1 DESTDIR="$1" base-install lib-install

2
core/mandoc/checksums Normal file
View File

@ -0,0 +1,2 @@
0b0c8f67958c1569ead4b690680c337984b879dfd2ad4648d96924332fd99528 mandoc-1.14.3.tar.gz
fb623f6852749a4b09a9e54ef30a121c2f52473ab114286f3822ca0c9509721e pager.patch

View File

@ -0,0 +1,27 @@
--- mdocml-1.13.4/main.c.orig
+++ mdocml-1.13.4/main.c
@@ -1042,7 +1042,7 @@
if (pager == NULL || *pager == '\0')
pager = getenv("PAGER");
if (pager == NULL || *pager == '\0')
- pager = "more -s";
+ pager = "less";
cp = mandoc_strdup(pager);
/*
@@ -1063,15 +1063,6 @@
break;
}
- /* For less(1), use the tag file. */
-
- if ((cmdlen = strlen(argv[0])) >= 4) {
- cp = argv[0] + cmdlen - 4;
- if (strcmp(cp, "less") == 0) {
- argv[argc++] = mandoc_strdup("-T");
- argv[argc++] = tag_files->tfn;
- }
- }
argv[argc++] = tag_files->ofn;
argv[argc] = NULL;

2
core/mandoc/sources Normal file
View File

@ -0,0 +1,2 @@
http://mdocml.bsd.lv/snapshots/mandoc-1.14.3.tar.gz
patches/pager.patch

1
core/mandoc/version Normal file
View File

@ -0,0 +1 @@
1.14.3 1