Date: Thu, 23 Aug 2018 10:01:54 +0000 (UTC) From: Edward Tomasz Napierala <trasz@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r477865 - in head/textproc: . py-laserhammer Message-ID: <201808231001.w7NA1sem013667@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: trasz Date: Thu Aug 23 10:01:54 2018 New Revision: 477865 URL: https://svnweb.freebsd.org/changeset/ports/477865 Log: 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) WWW: https://github.com/trasz/laserhammer Added: head/textproc/py-laserhammer/ head/textproc/py-laserhammer/Makefile (contents, props changed) head/textproc/py-laserhammer/distinfo (contents, props changed) head/textproc/py-laserhammer/pkg-descr (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Thu Aug 23 09:38:09 2018 (r477864) +++ head/textproc/Makefile Thu Aug 23 10:01:54 2018 (r477865) @@ -1316,6 +1316,7 @@ SUBDIR += py-jaxml SUBDIR += py-jtextfsm SUBDIR += py-junit-xml + SUBDIR += py-laserhammer SUBDIR += py-libtre SUBDIR += py-libxml2 SUBDIR += py-libxslt Added: head/textproc/py-laserhammer/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-laserhammer/Makefile Thu Aug 23 10:01:54 2018 (r477865) @@ -0,0 +1,18 @@ +# 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> Added: head/textproc/py-laserhammer/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-laserhammer/distinfo Thu Aug 23 10:01:54 2018 (r477865) @@ -0,0 +1,3 @@ +TIMESTAMP = 1534890456 +SHA256 (laserhammer-2.4.tar.gz) = 07650ab2d9e1cb7611e81734c0cea3db396a8b34e41e5d4ae209c6d596acbff3 +SIZE (laserhammer-2.4.tar.gz) = 4737 Added: head/textproc/py-laserhammer/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-laserhammer/pkg-descr Thu Aug 23 10:01:54 2018 (r477865) @@ -0,0 +1,19 @@ +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) + +WWW: https://github.com/trasz/laserhammer
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201808231001.w7NA1sem013667>