From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 83E531382C5 for ; Fri, 22 Jan 2021 21:39:02 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 7CEF4E0BD9; Fri, 22 Jan 2021 21:39:01 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 62535E0BD9 for ; Fri, 22 Jan 2021 21:39:01 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0E567340E57 for ; Fri, 22 Jan 2021 21:39:00 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 90B1953 for ; Fri, 22 Jan 2021 21:38:58 +0000 (UTC) From: "Steve Arnold" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Steve Arnold" Message-ID: <1611351447.68492f535ce82d95fe43ea7855234f77a704baee.nerdboy@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/svg2rlg/ X-VCS-Repository: repo/gentoo X-VCS-Files: media-gfx/svg2rlg/Manifest media-gfx/svg2rlg/metadata.xml media-gfx/svg2rlg/svg2rlg-0.4.0.ebuild X-VCS-Directories: media-gfx/svg2rlg/ X-VCS-Committer: nerdboy X-VCS-Committer-Name: Steve Arnold X-VCS-Revision: 68492f535ce82d95fe43ea7855234f77a704baee X-VCS-Branch: master Date: Fri, 22 Jan 2021 21:38:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: fb67f172-dda7-46b5-9b5d-b6c107fd071b X-Archives-Hash: 68e342ab383de9ec88b3bc2b4aaa52a3 commit: 68492f535ce82d95fe43ea7855234f77a704baee Author: Steve Arnold gentoo org> AuthorDate: Fri Jan 22 21:36:34 2021 +0000 Commit: Steve Arnold gentoo org> CommitDate: Fri Jan 22 21:37:27 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=68492f53 media-gfx/svg2rlg: new (revived) ebuild, dep for rst2pdf Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Steve Arnold gentoo.org> media-gfx/svg2rlg/Manifest | 1 + media-gfx/svg2rlg/metadata.xml | 14 ++++++++++++ media-gfx/svg2rlg/svg2rlg-0.4.0.ebuild | 40 ++++++++++++++++++++++++++++++++++ 3 files changed, 55 insertions(+) diff --git a/media-gfx/svg2rlg/Manifest b/media-gfx/svg2rlg/Manifest new file mode 100644 index 00000000000..90d6bb2a434 --- /dev/null +++ b/media-gfx/svg2rlg/Manifest @@ -0,0 +1 @@ +DIST svg2rlg-0.4.0.tar.gz 504861 BLAKE2B bfd147d824d5a49f8621e705f6bdeefdaa571918db94afea8e839d048d2089a8c8ebf8e2763caa9866f55a7142e1bb3522b01f53eaf5b8343164a08ee0983ef3 SHA512 e3813a22784c2199a1df69574c64093347a153fa2b7a40e2f38f52e5d46d7ca8d6e8e3bbe54ab59381f6c7246352c016ff3e19b1278c6f2c8dcfbe8bd7017b12 diff --git a/media-gfx/svg2rlg/metadata.xml b/media-gfx/svg2rlg/metadata.xml new file mode 100644 index 00000000000..6ca26678762 --- /dev/null +++ b/media-gfx/svg2rlg/metadata.xml @@ -0,0 +1,14 @@ + + + + + nerdboy@gentoo.org + Steve Arnold + + + A tool to convert from SVG to reportlab graphics objects. + + + sarnold/svg2rlg + + diff --git a/media-gfx/svg2rlg/svg2rlg-0.4.0.ebuild b/media-gfx/svg2rlg/svg2rlg-0.4.0.ebuild new file mode 100644 index 00000000000..dd314bc752d --- /dev/null +++ b/media-gfx/svg2rlg/svg2rlg-0.4.0.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python3_{6,7,8,9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Converts SVG files to PDFs or reportlab graphics" +HOMEPAGE="https://github.com/sarnold/svg2rlg https://pypi.python.org/pypi/svg2rlg/" + +if [[ ${PV} = 9999* ]]; then + EGIT_REPO_URI="https://github.com/sarnold/svg2rlg.git" + EGIT_BRANCH="master" + inherit git-r3 + KEYWORDS="" +else + SRC_URI="https://github.com/sarnold/${PN}/archive/${PV}.tar.gz -> ${PN}-${PV}.tar.gz" + KEYWORDS="~amd64 ~arm ~arm64 ~x86" +fi + +LICENSE="BSD" +SLOT="0" +IUSE="test" + +RDEPEND="${PYTHON_DEPS}" + +DEPEND="${PYTHON_DEPS} + dev-python/reportlab[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + test? ( + dev-python/nose[${PYTHON_USEDEP}] ) +" + +RESTRICT="!test? ( test )" + +python_test() { + nosetests -sx test_svg2rlg.py || die "Test failed with ${EPYTHON}" +}