mdocml: update to 1.2.1.
This commit is contained in:
parent
91bf99f63c
commit
d44ecf5837
|
@ -0,0 +1,29 @@
|
|||
--- Makefile.orig 2012-11-23 17:07:53.741714557 +0100
|
||||
+++ Makefile 2012-11-23 17:08:53.593252859 +0100
|
||||
@@ -10,7 +10,7 @@
|
||||
# Specify this if you want to hard-code the operating system to appear
|
||||
# in the lower-left hand corner of -mdoc manuals.
|
||||
#
|
||||
-# CFLAGS += -DOSNAME="\"OpenBSD 4.5\""
|
||||
+CFLAGS += -DOSNAME="\"Void Linux\""
|
||||
|
||||
VERSION = 1.12.1
|
||||
VDATE = 23 March 2012
|
||||
@@ -32,7 +32,7 @@ CFLAGS += -DUSE_WCHAR
|
||||
# If your system supports static binaries only, uncomment this. This
|
||||
# appears only to be BSD UNIX systems (Mac OS X has no support and Linux
|
||||
# requires -pthreads for static libdb).
|
||||
-STATIC = -static
|
||||
+#STATIC = -static
|
||||
|
||||
CFLAGS += -g -DHAVE_CONFIG_H -DVERSION="\"$(VERSION)\""
|
||||
CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -Wwrite-strings
|
||||
@@ -57,7 +57,7 @@ INSTALL_MAN = $(INSTALL_DATA)
|
||||
# However, if you don't have -ldb at all (or it's not native), then
|
||||
# comment out apropos and mandocdb.
|
||||
#
|
||||
-#DBLIB = -ldb
|
||||
+DBLIB = -ldb
|
||||
DBBIN = apropos mandocdb man.cgi catman whatis
|
||||
DBLN = llib-lapropos.ln llib-lmandocdb.ln llib-lman.cgi.ln llib-lcatman.ln
|
||||
|
|
@ -1,18 +1,13 @@
|
|||
# Template file for 'mdocml'
|
||||
pkgname=mdocml
|
||||
version=1.12.0
|
||||
revision=2
|
||||
homepage="http://mdocml.bsd.lv"
|
||||
distfiles="${homepage}/snapshots/mdocml-$version.tar.gz"
|
||||
build_style=gnu-makefile
|
||||
make_build_args="DBLIB=-ldb"
|
||||
make_install_args="MANDIR=/usr/share/man BINDIR=/usr/bin
|
||||
EXAMPLEDIR=/usr/share/examples/mdocml PREFIX=/usr"
|
||||
makedepends="db-devel"
|
||||
version=1.12.1
|
||||
revision=1
|
||||
short_desc="mdoc macro compiler"
|
||||
maintainer="Juan RP <xtraeme@gmail.com>"
|
||||
license="ISC"
|
||||
checksum=887dbe722e459ce60a6f1e29e278f68932fab9592768b9b324503ba80fe17a5e
|
||||
homepage="http://mdocml.bsd.lv"
|
||||
distfiles="${homepage}/snapshots/mdocml-$version.tar.gz"
|
||||
checksum=12a756cd2901954bccdd25819a16d0ab0501c32c87ad7973570cd65608d32891
|
||||
long_desc="
|
||||
mdocml is a suite of tools compiling -mdoc, the roff macro package of
|
||||
choice for BSD manual pages, and -man, the predominant historical package
|
||||
|
@ -20,18 +15,31 @@ long_desc="
|
|||
implementation, for displaying -mdoc pages whilst providing token support
|
||||
for -man."
|
||||
|
||||
makedepends="db-devel"
|
||||
conflicts="groff>=0 man-db>=0"
|
||||
provides="man-${version} roff-${version} apropos-${version} whatis-${version}"
|
||||
|
||||
post_install()
|
||||
{
|
||||
# preconv conflicts with groff, rename it.
|
||||
mv ${DESTDIR}/usr/bin/preconv ${DESTDIR}/usr/bin/mandoc-preconv
|
||||
|
||||
# roff.7 conflicts with groff, rename it.
|
||||
mv ${DESTDIR}/usr/share/man/man7/roff.7 \
|
||||
${DESTDIR}/usr/share/man/man7/mandoc_roff.7
|
||||
# preconv.1 conflicts with groff, rename it.
|
||||
mv ${DESTDIR}/usr/share/man/man1/preconv.1 \
|
||||
${DESTDIR}/usr/share/man/man1/mandoc_preconv.1
|
||||
# Remove unused stuff.
|
||||
rm -rf ${DESTDIR}/usr/{include,lib}
|
||||
do_build() {
|
||||
make ${makejobs}
|
||||
}
|
||||
|
||||
do_install() {
|
||||
make MANDIR=/usr/share/man BINDIR=/usr/bin \
|
||||
EXAMPLEDIR=/usr/share/examples/mdocml \
|
||||
PREFIX=/usr DESTDIR=${DESTDIR} install
|
||||
|
||||
# remove devel stuff.
|
||||
rm -rf ${DESTDIR}/usr/{include,lib}
|
||||
|
||||
# Install apropos, whatis and mandocdb.
|
||||
for f in apropos whatis mandocdb; do
|
||||
vinstall ${f} 755 usr/bin
|
||||
if [ -f ${f}.1 ]; then
|
||||
vinstall ${f}.1 644 usr/share/man/man1
|
||||
elif [ -f ${f}.8 ]; then
|
||||
vinstall ${f}.8 644 usr/share/man/man8
|
||||
fi
|
||||
done
|
||||
# Create mandoc -> man symlink.
|
||||
ln -sfr ${DESTDIR}/usr/bin/mandoc ${DESTDIR}/usr/bin/man
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue