ports/132449: [NEW PORT] textproc/mdocml: Suite of mdoc compilers for BSD man pages

Ulrich Spoerlein uspoerlein at gmail.com
Mon Mar 9 11:20:02 UTC 2009


>Number:         132449
>Category:       ports
>Synopsis:       [NEW PORT] textproc/mdocml: Suite of mdoc compilers for BSD man pages
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 09 11:20:01 UTC 2009
>Closed-Date:
>Last-Modified:
>Originator:     Ulrich Spoerlein
>Release:        FreeBSD 7.1-STABLE i386
>Organization:
>Environment:
>Description:
Hello,

this is a quick port of the mdoc tools by Kristaps Džonsons, see [1] for some
discussion about it.

@ Kristaps: I had to add <sys/types.h> includes for u_char and <time.h> for
time_t. Perhaps you can import these changes into the official tree?

Also, CPPFLAGS is somehow not passed to the .c -> .o rule, so I had to add
it manually in the Makefile. I also took the liberty and strip binaries on
install, as this is usually done for FreeBSD ports.

Thanks for working on this, I'm looking forward to the day, this is able to
render all man pages on FreeBSD.

[1]: http://mail-index.netbsd.org/tech-userlevel/2009/03/01/msg001766.html
WWW: http://mdocml.bsd.lv/

Generated with FreeBSD Port Tools 0.77
>How-To-Repeat:
>Fix:

--- mdocml-1.4.2.shar begins here ---
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	mdocml
#	mdocml/Makefile
#	mdocml/pkg-descr
#	mdocml/distinfo
#	mdocml/pkg-plist
#	mdocml/files
#	mdocml/files/patch-types
#	mdocml/files/patch-Makefile
#
echo c - mdocml
mkdir -p mdocml > /dev/null 2>&1
echo x - mdocml/Makefile
sed 's/^X//' >mdocml/Makefile << '052986b0e59bb4afc88cc62f4447c591'
X# New ports collection makefile for:	textproc/mdocml
X# Date created:				09.03.2009
X# Whom:					Ulrich Spoerlein <uspoerlein at gmail.com>
X#
X# $FreeBSD$
X#
X
XPORTNAME=	mdocml
XPORTVERSION=	1.4.2
XCATEGORIES=	textproc
XMASTER_SITES=	http://mdocml.bsd.lv/snapshots/
X
XMAINTAINER=	uspoerlein at gmail.com
XCOMMENT=	Suite of mdoc compilers for BSD man pages
X
XMAN1=	mdoclint.1 mdocterm.1 mdoctree.1
XMAN3=	mdoc.3
X
X.include <bsd.port.mk>
052986b0e59bb4afc88cc62f4447c591
echo x - mdocml/pkg-descr
sed 's/^X//' >mdocml/pkg-descr << '1c5be15b2d68f68a2321eea80503ae1d'
XThe mdocml utilities interface with the mdoc library to compile
Xmdoc-roff documents into a variety of output formats.
X
XWWW: http://mdocml.bsd.lv/
1c5be15b2d68f68a2321eea80503ae1d
echo x - mdocml/distinfo
sed 's/^X//' >mdocml/distinfo << '8dbc9c7af88ea230cf23ce2631ad5e3c'
XMD5 (mdocml-1.4.2.tar.gz) = 376805626fcf6b8f53a4b4dd37840afe
XSHA256 (mdocml-1.4.2.tar.gz) = fc6c36c06d8fa69d35973ebe3d34b974bc86cfaafaa0cd9b5af5ca13560f6382
XSIZE (mdocml-1.4.2.tar.gz) = 58626
8dbc9c7af88ea230cf23ce2631ad5e3c
echo x - mdocml/pkg-plist
sed 's/^X//' >mdocml/pkg-plist << '1d2f2c1f96fdf03d1838613969973ff3'
Xbin/mdoclint
Xbin/mdocterm
Xbin/mdoctree
Xinclude/mdoc.h
Xlib/libmdoc.a
1d2f2c1f96fdf03d1838613969973ff3
echo c - mdocml/files
mkdir -p mdocml/files > /dev/null 2>&1
echo x - mdocml/files/patch-types
sed 's/^X//' >mdocml/files/patch-types << '5676a3b92cd1b91dffb79b770a86046a'
X--- argv.c.orig	2009-03-08 20:49:38.000000000 +0100
X+++ argv.c	2009-03-09 12:07:58.000000000 +0100
X@@ -22,6 +22,7 @@
X #include <stdlib.h>
X #include <stdio.h>
X #include <string.h>
X+#include <sys/types.h>
X 
X #include "private.h"
X 
X--- macro.c.orig	2009-03-08 20:49:38.000000000 +0100
X+++ macro.c	2009-03-09 12:07:58.000000000 +0100
X@@ -21,9 +21,6 @@
X #include <stdlib.h>
X #include <stdio.h>
X #include <string.h>
X-#ifdef	__linux__
X-#include <time.h>
X-#endif
X 
X /*
X  * This has scanning/parsing routines, each of which extract a macro and
X--- mdoc.h.orig	2009-03-09 12:09:50.000000000 +0100
X+++ mdoc.h	2009-03-09 12:09:52.000000000 +0100
X@@ -19,6 +19,10 @@
X #ifndef MDOC_H
X #define MDOC_H
X 
X+#if defined(__linux__) || defined(__FreeBSD__)
X+#include <time.h>
X+#endif
X+
X /*
X  * This library implements a validating scanner/parser for ``mdoc'' roff
X  * macro documents, a.k.a. BSD manual page documents.  The mdoc.c file
X--- mdocterm.c.orig	2009-03-09 12:08:44.000000000 +0100
X+++ mdocterm.c	2009-03-09 12:08:53.000000000 +0100
X@@ -23,6 +23,7 @@
X #include <stdio.h>
X #include <stdlib.h>
X #include <string.h>
X+#include <sys/types.h>
X #ifndef __OpenBSD__
X #include <time.h>
X #endif
X--- private.h.orig	2009-03-08 20:49:38.000000000 +0100
X+++ private.h	2009-03-09 12:07:58.000000000 +0100
X@@ -19,6 +19,9 @@
X #ifndef PRIVATE_H
X #define PRIVATE_H
X 
X+#if defined(__linux__) || defined(__FreeBSD__)
X+#include <time.h>
X+#endif
X #include "mdoc.h"
X 
X enum	mdoc_next {
X--- strings.c.orig	2009-03-08 20:49:38.000000000 +0100
X+++ strings.c	2009-03-09 12:07:58.000000000 +0100
X@@ -21,6 +21,7 @@
X #include <stdlib.h>
X #include <stdio.h>
X #include <string.h>
X+#include <sys/types.h>
X #ifndef __OpenBSD__
X #include <time.h>
X #endif
X--- term.c.orig	2009-03-08 20:49:38.000000000 +0100
X+++ term.c	2009-03-09 12:07:58.000000000 +0100
X@@ -22,6 +22,7 @@
X #include <stdio.h>
X #include <stdlib.h>
X #include <string.h>
X+#include <sys/types.h>
X 
X #include "term.h"
X 
X--- validate.c.orig	2009-03-08 20:49:38.000000000 +0100
X+++ validate.c	2009-03-09 12:07:58.000000000 +0100
X@@ -20,6 +20,7 @@
X #include <ctype.h>
X #include <stdarg.h>
X #include <stdlib.h>
X+#include <sys/types.h>
X 
X #include "private.h"
X 
5676a3b92cd1b91dffb79b770a86046a
echo x - mdocml/files/patch-Makefile
sed 's/^X//' >mdocml/files/patch-Makefile << '2abb4ac99c6d34157c65100eba5b07f6'
X--- Makefile.orig	2009-03-09 11:49:21.000000000 +0100
X+++ Makefile	2009-03-09 12:06:34.000000000 +0100
X@@ -8,13 +8,13 @@
X LIBDIR		= $(PREFIX)/lib
X MANDIR		= $(PREFIX)/man
X 
X-INSTALL_PROGRAM	= install -m 0755
X+INSTALL_PROGRAM	= install -s -m 0755
X INSTALL_DATA	= install -m 0444
X-INSTALL_LIB	= install -m 0644
X+INSTALL_LIB	= install -s -m 0644
X INSTALL_MAN	= $(INSTALL_DATA)
X 
X CPPFLAGS = -DVERSION=\"$(VERSION)\"
X-CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter -g 
X+CFLAGS += -W -Wall -Wstrict-prototypes -Wno-unused-parameter $(DEBUG_FLAGS) $(CPPFLAGS)
X 
X LIBLNS	= macro.ln mdoc.ln hash.ln strings.ln xstd.ln argv.ln \
X 	  validate.ln action.ln lib.ln att.ln arch.ln vol.ln \
2abb4ac99c6d34157c65100eba5b07f6
exit
--- mdocml-1.4.2.shar ends here ---

>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list