media-gfx/cairosvg: Remove old

Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2023-03-20 06:36:18 +01:00
parent 13bf20fa96
commit ffefcdce48
3 changed files with 0 additions and 76 deletions
-1
View File
@@ -1,2 +1 @@
DIST CairoSVG-2.5.2.tar.gz 8397659 BLAKE2B f2f45aa01015f5ccebe3dede303b6a701c0183b7b53f0d69c8756d5f0e6c0898826939f0b5bcc9e00e4185c83ff507d6fa886a020ad0b63c80a565a181807f58 SHA512 070fbb549614401a7d8290497b0eb7702330ee264c5f625cd1e7aac4aea7d71ee7d2d8899297212e1a3c11c93903b191c0c699336d9000796318b11f4e075576
DIST CairoSVG-2.6.0.tar.gz 8398114 BLAKE2B d4aca284fe3756c40c62dfb2b29e4670c947df13dd76e5104a13cb963bbdf6aa1f7fd242748d6fd0ca524aa03578c3449fa8ea6d86b9a8ce4a64976c32e96627 SHA512 dc504233a8f3fccfc8d4082328bfc0f06a4ebe0249801f764b9aed6b3bad5f953786352930ab199b10b301d0f44a8c2ef2e79eeea198c9094e697fdaa4db48d5
-45
View File
@@ -1,45 +0,0 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
PYTHON_COMPAT=( python3_{9..10} )
inherit distutils-r1
MY_PN="CairoSVG"
MY_P="${MY_PN}-${PV}"
DESCRIPTION="CLI and library to export SVG to PDF, PostScript, and PNG"
HOMEPAGE="https://cairosvg.org/"
SRC_URI="mirror://pypi/${MY_PN:0:1}/${MY_PN}/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="LGPL-3"
SLOT="0"
KEYWORDS="amd64 ~riscv x86"
RDEPEND="
dev-python/cairocffi[${PYTHON_USEDEP}]
dev-python/cssselect2[${PYTHON_USEDEP}]
dev-python/defusedxml[${PYTHON_USEDEP}]
dev-python/pillow[${PYTHON_USEDEP}]
dev-python/tinycss2[${PYTHON_USEDEP}]
"
distutils_enable_tests pytest
src_prepare() {
# junk deps
sed -e '/pytest-runner/d' \
-e '/--flake8/d' \
-e '/--isort/d' \
-i setup.cfg || die
# this test compares output against old version; this makes little
# sense for us and requires both distfiles around
rm test_non_regression/test_non_regression.py || die
eapply "${FILESDIR}"/cairosvg-2.5.1-no-ref.patch
distutils-r1_src_prepare
}
@@ -1,30 +0,0 @@
From f79fce1d3703f2985c543575d5eb15ffb0eb7bb6 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= <mgorny@gentoo.org>
Date: Thu, 7 Jan 2021 00:31:52 +0100
Subject: [PATCH] Do not use reference_cairosvg
---
test_non_regression/__init__.py | 7 +------
1 file changed, 1 insertion(+), 6 deletions(-)
diff --git a/test_non_regression/__init__.py b/test_non_regression/__init__.py
index 8876e11..4b2e29b 100644
--- a/test_non_regression/__init__.py
+++ b/test_non_regression/__init__.py
@@ -8,12 +8,7 @@ import os
import cairosvg
-reference_cairosvg = imp.load_source(
- 'cairosvg_reference', pathname=os.path.join(
- os.path.dirname(__file__), 'cairosvg_reference', 'cairosvg',
- '__init__.py'))
-
-cairosvg.features.LOCALE = reference_cairosvg.features.LOCALE = 'en_US'
+cairosvg.features.LOCALE = 'en_US'
TEST_FOLDER = os.path.join(os.path.dirname(__file__), 'svg')
--
2.30.0