From nobody Sat Sep 02 06:59:40 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4Rd5P92RbBz4s6VQ; Sat, 2 Sep 2023 06:59:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Rd5P91DYvz3H8X; Sat, 2 Sep 2023 06:59:41 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693637981; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RpknKMu0l5l/H6qipTK6JRDHqMfXCO2sO5Av5PVNFQc=; b=FPjtJfC+J1laFjRn4THCUaBP26zoDAhIRK7JYvvwmUkkg6KtlwOC7hdN+yY8PzloBNiklt lym28aL4yCntCPeqK5a7eb/IKlinBuaiECgMryYZ4iBPq/ZayA/BuMMZ8iVR43C2mFu6uV yhkDk5LZISOkna/L8IaaZiuqpy3iS7bNKBUJY/82UEyG88wD2bQ1KDauJx66HXjRrJ92Ok m25EkLLGBs2lfyoyWGnCORwLw2rKlrNs2I9z21p6+F6IReawyaYP7+MM7rPLz7TZPBGbb5 pw+MNmVo0i9S0ov5deN4nqG/A55vzV1N3wn2hTcgtYP0EDKTVtGzZPkwFoa+iA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693637981; a=rsa-sha256; cv=none; b=ZRO5iz0h4fi497OGK5Tz4mdVdobWywypXb7Ul4M/J7IKn3JId9vWy6T2ytHQP3jf9IgnKB E020gpK8ZkMisCNWPke/jwElijy0hjnqgeUcKGHWftE+lFVsnFHBPOBZzOyInhcSRgtFvw +ik9BV2LNIL5bpUWUR5uF1gjedCaxNFotqRZKBoCmQKB3kDsMHN6040JOatdaVYqZBvfTu w6ds1M7ESUNAS7Nz0tGQoE7/JtkHp9vX3yTdwsB1RMe/tHaM2N8Rd3Cj8eFRWwLCQU8shc XhE9Q05aQeWWlcmollqxVfXCQJru7SOVKo71+rgD8tAntUn+z4QnErUIhoPCGg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693637981; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RpknKMu0l5l/H6qipTK6JRDHqMfXCO2sO5Av5PVNFQc=; b=Q2ZmzJ5ek+b7AryFPqQgzGpbWZKpmpJtcxFOlbTPBy/O1sh9LaU5fiAdnxohvhxDrtpS1p JaEskpTq5xAgqjpPUa2Dh2WL8MWkJbUFq1Jxu0WCpHYMxqE6AHFlpr1pV8nGCnQFTPb/cF nfElP7aZ7wPqXQN+rez5eJdBCLZrh9F6DxHkpnBZosCljWHlZRaVevPWGF0YUuAZAFKCG8 fMUaqhzyF1cL+5h5vfLl9nltLmA9QZs4ldTBzBA/9a7DzpCqPr2vlbwpxWMWQOGfTPzjTF Qp3F4aso98hLS3zeV1Ta3DYlho/z+OPnD3sHR8ymUEaRapzQQ2BDlc5d6TC1lA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4Rd5P90LZBzYTN; Sat, 2 Sep 2023 06:59:41 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 3826xe0f065351; Sat, 2 Sep 2023 06:59:40 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 3826xec8065349; Sat, 2 Sep 2023 06:59:40 GMT (envelope-from git) Date: Sat, 2 Sep 2023 06:59:40 GMT Message-Id: <202309020659.3826xec8065349@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Kai Knoblich Subject: git: 451a4c9f7df8 - main - textproc/py-wavedrom: New port List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: kai X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 451a4c9f7df8b4297b87919479744d8abeddd3a6 Auto-Submitted: auto-generated The branch main has been updated by kai: URL: https://cgit.FreeBSD.org/ports/commit/?id=451a4c9f7df8b4297b87919479744d8abeddd3a6 commit 451a4c9f7df8b4297b87919479744d8abeddd3a6 Author: Kai Knoblich AuthorDate: 2023-09-02 06:44:16 +0000 Commit: Kai Knoblich CommitDate: 2023-09-02 06:59:20 +0000 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. --- textproc/Makefile | 1 + textproc/py-wavedrom/Makefile | 30 ++++++++++++++++++++++++++++++ textproc/py-wavedrom/distinfo | 3 +++ textproc/py-wavedrom/pkg-descr | 14 ++++++++++++++ 4 files changed, 48 insertions(+) diff --git a/textproc/Makefile b/textproc/Makefile index 99e073a5aa17..3bd507ddd7f5 100644 --- a/textproc/Makefile +++ b/textproc/Makefile @@ -1621,6 +1621,7 @@ SUBDIR += py-ufal.udpipe SUBDIR += py-unicodeitplus SUBDIR += py-untangle + SUBDIR += py-wavedrom SUBDIR += py-wcmatch SUBDIR += py-whatthepatch SUBDIR += py-whoosh diff --git a/textproc/py-wavedrom/Makefile b/textproc/py-wavedrom/Makefile new file mode 100644 index 000000000000..2cc4a8b9cef3 --- /dev/null +++ b/textproc/py-wavedrom/Makefile @@ -0,0 +1,30 @@ +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 diff --git a/textproc/py-wavedrom/distinfo b/textproc/py-wavedrom/distinfo new file mode 100644 index 000000000000..0a2704b3dacc --- /dev/null +++ b/textproc/py-wavedrom/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1693574032 +SHA256 (wavedrom-2.0.3.post3.tar.gz) = 327b4d5dca593c81257c202fea516f7a908747fb11527c359f034f5b7af7f47b +SIZE (wavedrom-2.0.3.post3.tar.gz) = 137737 diff --git a/textproc/py-wavedrom/pkg-descr b/textproc/py-wavedrom/pkg-descr new file mode 100644 index 000000000000..3a9d187ad5db --- /dev/null +++ b/textproc/py-wavedrom/pkg-descr @@ -0,0 +1,14 @@ +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.