BSD Ports

textproc/py-laserhammer 2.4_1 DragonFly

Docbook to mdoc(7) converter

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
BSD2CLAUSE
Categories
python, textproc
Package size
9.0 KiB, 30.6 KiB installed

Description

LaserHammer is a simple DocBook to mdoc(7) ("UNIX man page syntax") 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)

In the other systems

SystemPortVersion
DragonFlytextproc/py-laserhammer2.4_1
FreeBSDtextproc/py-laserhammer2.4_1
HardenedBSDtextproc/py-laserhammer2.4_1
GhostBSDtextproc/py-laserhammer2.4_1

Install

Binary package:

pkg install py311-laserhammer

From DPorts:

cd /usr/dports/textproc/py-laserhammer && make install clean

Dependencies

Run dependencies 1

No port depends on this one.

Configuration

No options to configure.

Service scripts
none

Message after installing

===>   NOTICE:

The py311-laserhammer port currently does not have a maintainer. As a result, it is
more likely to have unresolved issues, not be up-to-date, or even be removed in
the future. To volunteer to maintain this port, please create an issue at:

https://bugs.freebsd.org/bugzilla

More information about port maintainership is available at:

https://docs.freebsd.org/en/articles/contributing/#ports-contributing