freebsd-ports/textproc/py-wavedrom/Makefile
Kai Knoblich 451a4c9f7d textproc/py-wavedrom: New port
This is a Python module and command line fully compatible with WaveDrom,
which is originally implemented in JavaScript. It is useful if you want
to generate wavedrom diagrams from a Python environment or simply don't
want to install the Node.js environment just to use WaveDrom as simple
command line.

WaveDromPy is for example used in sphinxcontrib-wavedrom to render
wavedrom for Sphinx documentation. While the original project renders
the diagrams in JavaScript in the browser, WaveDromPy renders them to
SVG files.

This tool is a direct translation of original Javascript file
WaveDrom.js to Python. No extra feature added. We seek to have it fully
compatible.

The tool WaveDromPy directly converts WaveDrom compatible JSON files
into SVG format.
2023-09-02 08:59:20 +02:00

30 lines
1 KiB
Makefile

PORTNAME= wavedrom
DISTVERSION= 2.0.3.post3
CATEGORIES= textproc python
MASTER_SITES= PYPI
PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX}
MAINTAINER= kai@FreeBSD.org
COMMENT= WaveDrom compatible Python command line
WWW= https://github.com/wallento/wavedrompy
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
BUILD_DEPENDS= ${PYTHON_PKGNAMEPREFIX}setuptools_scm>0:devel/py-setuptools_scm@${PY_FLAVOR}
RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}six>0:devel/py-six@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}svgwrite>0:graphics/py-svgwrite@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}yaml>0:devel/py-yaml@${PY_FLAVOR}
TEST_DEPENDS= ${PYTHON_PKGNAMEPREFIX}cairosvg>0:graphics/py-cairosvg@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}pillow>0:graphics/py-pillow@${PY_FLAVOR} \
${PYTHON_PKGNAMEPREFIX}xmldiff>0:textproc/py-xmldiff@${PY_FLAVOR}
USES= python
USE_PYTHON= autoplist concurrent distutils pytest
PYTEST_IGNORED_TESTS= test_upstream # Requires git and an internet connection
TEST_ENV= PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR}
NO_ARCH= yes
.include <bsd.port.mk>