mdocml: package man.cgi.

This commit is contained in:
Leah Neukirchen 2020-04-02 20:30:52 +02:00 committed by Leah Neukirchen
parent 32a57aa3d9
commit 1238ad37d8
4 changed files with 62 additions and 4 deletions

View File

@ -0,0 +1,5 @@
#define SCRIPT_NAME ""
#define MAN_DIR "/var/lib/man-cgi"
#define CSS_DIR ""
#define CUSTOMIZE_TITLE "Void Linux manpages"
#define COMPAT_OLDURI No

View File

@ -0,0 +1,39 @@
/** Void style **/
body { color: #333; }
a { color: #478061; }
a:hover { color: #000; }
html { max-width: 100% }
body { margin: 0 }
#mandoc { max-width: 65em; margin: 0.8em }
nav#void-nav {
width:100%;
min-height:50px;
background:#478061;
z-index:110;
font-size:14px
}
nav#void-nav ul {
float:right;
list-style:none;
margin:0
}
nav#void-nav ul li {
float:left;
margin:0;
clear:initial
}
nav#void-nav ul li a {
display:block;
padding:15px;
line-height:20px;
font-size:1.2em;
color:#fff;
text-decoration: none
}
nav#void-nav ul li a:hover,nav#void-nav ul li a:focus {
background:#000;
text-decoration:none
}

View File

@ -1,9 +1,11 @@
# Template file for 'mdocml'
pkgname=mdocml
version=1.14.5
revision=4
revision=5
wrksrc="mandoc-${version}"
build_style=configure
make_build_args="all man.cgi"
make_check_target="regress"
makedepends="less zlib-devel"
checkdepends="perl"
depends="less"
@ -30,6 +32,8 @@ post_extract() {
sed -i 's,.Xr more,.Xr less,g' *.1
sed -i 's/^CC=.*/CC=cc/' configure
cat ${FILESDIR}/void.css >>mandoc.css
cp ${FILESDIR}/cgi.h .
}
pre_configure() {
cat >configure.local <<EOF
@ -49,9 +53,6 @@ EOF
esac
}
do_check() {
make regress
}
post_install() {
# Rename mans for alternatives
for f in apropos man whatis; do
@ -67,3 +68,15 @@ post_install() {
vinstall ${FILESDIR}/makewhatis.cron.daily 755 etc/cron.daily makewhatis
vlicense LICENSE
}
void-man-cgi_package() {
short_desc="CGI manpage formatter for man.voidlinux.org"
depends="${sourcepkg}>=${version}_${revision}"
pkg_install() {
vmkdir usr/libexec/mandoc
vinstall man.cgi 0755 usr/libexec/mandoc
vsconf mandoc.css
vman man.cgi.3
vman man.cgi.8
}
}

1
srcpkgs/void-man-cgi Symbolic link
View File

@ -0,0 +1 @@
mdocml