textproc/py-laserhammer 2.4_1 FreeBSD
Docbook to mdoc(7) converter
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- BSD2CLAUSE
- Categories
- textproc, python
- Package size
- 9.8 KiB, 29.1 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 |
|---|---|---|
| FreeBSD | textproc/py-laserhammer | 2.4_1 |
| DragonFly | textproc/py-laserhammer | 2.4_1 |
Install
Binary package:
pkg install py312-laserhammer
From the ports tree:
cd /usr/ports/textproc/py-laserhammer/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= py312-laserhammer>0:textproc/py-laserhammer
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 2.4_1 | 2.4_1 | 2.4 | 2.4_1 | 2.4_1 |
| FreeBSD:14:quarterly | 2.4_1 | 2.4_1 | n/a | 2.4_1 | 2.4_1 |
| FreeBSD:15:latest | 2.4_1 | 2.4_1 | n/a | 2.4_1 | 2.4_1 |
| FreeBSD:15:quarterly | 2.4_1 | 2.4_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 2.4_1 | 2.4_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
The Makefile names none itself; they come from USES and USE_*.
The full lists below include those, and their dependencies in turn.
Build dependencies 11
Run dependencies 7
No port depends on this one.
Configuration
No options to configure.
- USES
- python
- Service scripts
- none
Message after installing
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| laserhammer-2.4.tar.gz | 4737 | 07650ab2d9e1cb7611e81734c0cea3db396a8b34e41e5d4ae209c6d596acbff3 |
Master sites 1
- PYPI
Commit history 0
No commits in the history this site was built from.