Date: Fri, 6 Sep 2019 11:55:57 +0000 (UTC) From: Kubilay Kocak <koobs@FreeBSD.org> To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r511307 - in head/textproc: . py-misaka py-misaka/files Message-ID: <201909061155.x86BtvbL089042@repo.freebsd.org>
next in thread | raw e-mail | index | archive | help
Author: koobs Date: Fri Sep 6 11:55:56 2019 New Revision: 511307 URL: https://svnweb.freebsd.org/changeset/ports/511307 Log: [NEW] textproc/misaka: CFFI binding for Hoedown, a markdown parsing library Misaka is a CFFI-based binding for Hoedown, a fast markdown processing library written in C. It features a fast HTML renderer and functionality to make custom renderers (e.g. man pages or LaTeX). WWW: https://github.com/FSX/misaka Added: head/textproc/py-misaka/ head/textproc/py-misaka/Makefile (contents, props changed) head/textproc/py-misaka/distinfo (contents, props changed) head/textproc/py-misaka/files/ head/textproc/py-misaka/files/patch-tests_utils.py (contents, props changed) head/textproc/py-misaka/pkg-descr (contents, props changed) Modified: head/textproc/Makefile Modified: head/textproc/Makefile ============================================================================== --- head/textproc/Makefile Fri Sep 6 11:54:16 2019 (r511306) +++ head/textproc/Makefile Fri Sep 6 11:55:56 2019 (r511307) @@ -1299,6 +1299,7 @@ SUBDIR += py-markdown-math SUBDIR += py-markdown2 SUBDIR += py-markups + SUBDIR += py-misaka SUBDIR += py-mistune SUBDIR += py-mkdocs SUBDIR += py-mkdocs-nature Added: head/textproc/py-misaka/Makefile ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-misaka/Makefile Fri Sep 6 11:55:56 2019 (r511307) @@ -0,0 +1,31 @@ +# $FreeBSD$ + +PORTNAME= misaka +PORTVERSION= 2.1.1 +CATEGORIES= textproc python +MASTER_SITES= CHEESESHOP +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= koobs@FreeBSD.org +COMMENT= CFFI binding for Hoedown, a markdown parsing library + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE.txt + +BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cffi>=1.0.0:devel/py-cffi@${PY_FLAVOR} +TEST_DEPENDS= tidy5:www/tidy-html5 + +# Actually 2.7,3.4+ +USES= python +USE_PYTHON= autoplist concurrent distutils + +PYDISTUTILS_BUILDARGS= build_ext -i + +post-install: + ${STRIP_CMD} ${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}/misaka/*.so + +do-test: + @cd ${WRKSRC} && ${PYTHON_CMD} tests/run_tests.py + +.include <bsd.port.mk> Added: head/textproc/py-misaka/distinfo ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-misaka/distinfo Fri Sep 6 11:55:56 2019 (r511307) @@ -0,0 +1,3 @@ +TIMESTAMP = 1567764366 +SHA256 (misaka-2.1.1.tar.gz) = 62f35254550095d899fc2ab8b33e156fc5e674176f074959cbca43cf7912ecd7 +SIZE (misaka-2.1.1.tar.gz) = 125187 Added: head/textproc/py-misaka/files/patch-tests_utils.py ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-misaka/files/patch-tests_utils.py Fri Sep 6 11:55:56 2019 (r511307) @@ -0,0 +1,15 @@ +# textproc/html5-tidy doesn't provide a 'tidy' binary +# and BINARY_ALIAS doesn't work at test: time +# TODO: Ask upstream to support a TIDY_BIN variable + +--- tests/utils.py.orig 2019-09-06 11:18:46 UTC ++++ tests/utils.py +@@ -5,7 +5,7 @@ from subprocess import Popen, PIPE, STDOUT + + def clean_html(dirty_html): + input_html = dirty_html.encode('utf-8') +- p = Popen(['tidy', '--show-body-only', '1', '--quiet', '1', '--show-warnings', '0', '-utf8'], ++ p = Popen(['tidy5', '--show-body-only', '1', '--quiet', '1', '--show-warnings', '0', '-utf8'], + stdout=PIPE, stdin=PIPE, stderr=STDOUT) + stdout, stderr = p.communicate(input=input_html) + Added: head/textproc/py-misaka/pkg-descr ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ head/textproc/py-misaka/pkg-descr Fri Sep 6 11:55:56 2019 (r511307) @@ -0,0 +1,5 @@ +Misaka is a CFFI-based binding for Hoedown, a fast markdown processing +library written in C. It features a fast HTML renderer and functionality +to make custom renderers (e.g. man pages or LaTeX). + +WWW: https://github.com/FSX/misaka
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201909061155.x86BtvbL089042>