From owner-svn-ports-all@freebsd.org Thu Aug 23 10:01:55 2018 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 6BFA6108882D; Thu, 23 Aug 2018 10:01:55 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 21CEA8B381; Thu, 23 Aug 2018 10:01:55 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 02E77207EC; Thu, 23 Aug 2018 10:01:55 +0000 (UTC) (envelope-from trasz@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id w7NA1sAl013670; Thu, 23 Aug 2018 10:01:54 GMT (envelope-from trasz@FreeBSD.org) Received: (from trasz@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id w7NA1sem013667; Thu, 23 Aug 2018 10:01:54 GMT (envelope-from trasz@FreeBSD.org) Message-Id: <201808231001.w7NA1sem013667@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: trasz set sender to trasz@FreeBSD.org using -f From: Edward Tomasz Napierala Date: Thu, 23 Aug 2018 10:01:54 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r477865 - in head/textproc: . py-laserhammer X-SVN-Group: ports-head X-SVN-Commit-Author: trasz X-SVN-Commit-Paths: in head/textproc: . py-laserhammer X-SVN-Commit-Revision: 477865 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 23 Aug 2018 10:01:55 -0000 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 +# $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 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