forked from Lainports/freebsd-ports
converter. The command line utility resides in the scripts/ subdirectory; use it like this: $ laserhammer book.parsed.xml book.7 The 7 above stands for section 7 of man pages, "miscellaneous documentation". The 'book.parsed.xml' is a processed XML source of the FreeBSD Handbook; you can use it as test sample. The 'book.7' is the example translated into mdoc. There's also a rudimentary Python module. Use it like this: import laserhammer mdoc = laserhammer.laserhammer(file_path) print(mdoc) WWW: https://github.com/trasz/laserhammer
18 lines
368 B
Makefile
18 lines
368 B
Makefile
# Created by: Edward Tomasz Napierala <trasz@FreeBSD.org>
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= laserhammer
|
|
PORTVERSION= 2.4
|
|
CATEGORIES= textproc python
|
|
MASTER_SITES= CHEESESHOP
|
|
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
|
|
|
|
MAINTAINER= trasz@FreeBSD.org
|
|
COMMENT= Docbook to mdoc(7) converter
|
|
|
|
LICENSE= BSD2CLAUSE
|
|
|
|
USES= python:3.6+
|
|
USE_PYTHON= autoplist distutils
|
|
|
|
.include <bsd.port.mk>
|