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
| System | Port | Version |
|---|---|---|
| DragonFly | textproc/py-laserhammer | 2.4_1 |
| FreeBSD | textproc/py-laserhammer | 2.4_1 |
| HardenedBSD | textproc/py-laserhammer | 2.4_1 |
| GhostBSD | textproc/py-laserhammer | 2.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