forked from kiss-community/repo
mandoc: new package at 1.14.3
This commit is contained in:
parent
7a85ade671
commit
33ea80ae6f
16
core/mandoc/build
Executable file
16
core/mandoc/build
Executable 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
2
core/mandoc/checksums
Normal file
@ -0,0 +1,2 @@
|
||||
0b0c8f67958c1569ead4b690680c337984b879dfd2ad4648d96924332fd99528 mandoc-1.14.3.tar.gz
|
||||
fb623f6852749a4b09a9e54ef30a121c2f52473ab114286f3822ca0c9509721e pager.patch
|
27
core/mandoc/patches/pager.patch
Normal file
27
core/mandoc/patches/pager.patch
Normal 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
2
core/mandoc/sources
Normal 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
1
core/mandoc/version
Normal file
@ -0,0 +1 @@
|
||||
1.14.3 1
|
Loading…
Reference in New Issue
Block a user