wok view mdocml/receipt @ rev 13688

Add mdocml (very light man formatter), mdocml-extra, mdocml-cgi, mdocml-man, mdocml-dev. Now we can use 'mandoc /usr/share/man/man1/xterm.1 | less' to see well formatted manpage, but we still need 'man' wrapper to mandoc to search and page man pages. Cgi and other packages yet not tested at all.
author Aleksej Bobylev <al.bobylev@gmail.com>
date Sun Dec 09 17:07:54 2012 +0000 (2012-12-09)
parents
children 23c3aed67cd9
line source
1 # SliTaz package receipt.
3 PACKAGE="mdocml"
4 VERSION="1.12.1"
5 CATEGORY="base-system"
6 SHORT_DESC="UNIX manpage compiler"
7 MAINTAINER="al.bobylev@gmail.com"
8 WEB_SITE="http://mdocml.bsd.lv/"
9 TARBALL="$PACKAGE-$VERSION.tar.gz"
10 WGET_URL="http://mdocml.bsd.lv/snapshots/$TARBALL"
12 DEPENDS="glibc-base"
13 BUILD_DEPENDS="db-dev"
15 # Rules to configure and make the package.
16 compile_rules()
17 {
18 cd $src
19 # configure
20 sed -i '/^#.*CFLAGS.*/ s/# //; s/OpenBSD 4\.5/SliTaz Cooking/; \
21 s/^STATIC.*/#\0/; \
22 s/^PREFIX.*/PREFIX = \/usr/;
23 s/^MANDIR.*/MANDIR = $(PREFIX)\/share\/man/;
24 s/^#\(DBLIB.*\)/\1/' \
25 Makefile
26 make clean &&
27 make &&
28 make DESTDIR=$install install &&
29 make DESTDIR=$install installcgi &&
30 install -m 0755 apropos catman mandocdb whatis $install/usr/bin
31 }
33 # Rules to gen a SliTaz package suitable for Tazpkg.
34 genpkg_rules()
35 {
36 mkdir -p $fs/usr/bin
37 cp -a $install/usr/bin/mandoc $fs/usr/bin
38 }