summaryrefslogtreecommitdiff
path: root/app-text/xml2rfc
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-08-13 18:10:57 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-08-13 18:10:57 +0100
commit40c113c340752d507394d37cd6b60abb741daed0 (patch)
tree27156f8941e9311cbff3d2b4277ba98bf1eb9b7d /app-text/xml2rfc
parent9574298151cf44a3b410bdb7a7076e7bed72570d (diff)
gentoo auto-resync : 13:08:2023 - 18:10:57
Diffstat (limited to 'app-text/xml2rfc')
-rw-r--r--app-text/xml2rfc/Manifest1
-rw-r--r--app-text/xml2rfc/files/xml2rfc-Remove-broken-test.patch79
2 files changed, 0 insertions, 80 deletions
diff --git a/app-text/xml2rfc/Manifest b/app-text/xml2rfc/Manifest
index ca8d59420348..17f74e1aeeb0 100644
--- a/app-text/xml2rfc/Manifest
+++ b/app-text/xml2rfc/Manifest
@@ -1,4 +1,3 @@
-AUX xml2rfc-Remove-broken-test.patch 3455 BLAKE2B a5faf688b52a7dc34a99e096a56433103e01f28f8c4b4cf75b4816683b1e7fcd60131d2170f5fdf65fc1c4621099694de682e5b017d6d045bc795bf3f8ecbd31 SHA512 9f54ef323f7f89f89b847fc00731115d2ee8302b7352c43549176cbdcafd79edd8a91dcf2e329e690833bb19f0f6ed0fd8ca5ee22e92299df54b505f2af0aaa7
DIST xml2rfc-3.17.1.gh.tar.gz 2856471 BLAKE2B 81c0ba0788e6a7e5211186f87d06bf76622fae57557e62bfe3a9fbb9c3aa31de0e1e99302b28b81d4e7280a2f29704389c6a0936b20b0aee219576eff9bfc803 SHA512 d502afc37e350dfd4c578d160e3942c3a33ebf45941db1478cd8e88b3f00470ab457a44667dd0eb955a270e31ae528a73d3625f1a61aabb166705b3d367df62a
DIST xml2rfc-3.17.4.gh.tar.gz 2858770 BLAKE2B b29b8a102668a5aa943a32b28a9d1669e2a6b0af03085a550c21a08e5bfb5ff3ee8979b03a3d7ae8e820ac8bf60455682914fd06a882e17183ca51aaf1dedf86 SHA512 3fc620eed12fc2a7f6015df8b6a5b1aa422cd8c26807e01d75498aee9257faad1bca68606f77598fb040a8dae074e35ffa0e2994a1ae8d59ee27d25fc6a755e5
EBUILD xml2rfc-3.17.1.ebuild 1441 BLAKE2B 9ddcc426bce06b6f16130f9ad07386e245b1fb5edd563727a0a40190998b74965b35279b5b3db3ea09f0f31a0b4b3d883152951b95dba22adfbf333fc6a61cdb SHA512 ab21a0dbbaaae09f66e1d91308ada52e64faa9c9029a474c8ae5c158d253b55a6a1570d6ccbd0e72ad4c9f28b048c8884597dd9e7701281534918dda6e471118
diff --git a/app-text/xml2rfc/files/xml2rfc-Remove-broken-test.patch b/app-text/xml2rfc/files/xml2rfc-Remove-broken-test.patch
deleted file mode 100644
index d7d027962c24..000000000000
--- a/app-text/xml2rfc/files/xml2rfc-Remove-broken-test.patch
+++ /dev/null
@@ -1,79 +0,0 @@
-From ed27e2983c27065bd88ac82cd26a5b9128544b45 Mon Sep 17 00:00:00 2001
-From: Florian Schmaus <flo@geekplace.eu>
-Date: Fri, 28 Oct 2022 20:18:10 +0200
-Subject: [PATCH] Remove broken test
-
---- a/test.py
-+++ b/test.py
-@@ -466,71 +466,6 @@ class WriterRfcTest(WriterRootTest):
- return self.status_test()
-
-
--class PdfWriterTests(unittest.TestCase):
-- elements_root = None
-- elements_pdfxml = None
--
-- @classmethod
-- def setUpClass(cls) -> None:
-- # Putting this in setUpClass() allows this module to be imported even if this
-- # procedure will fail. This improves some error messages and makes debugging
-- # a little bit easier. The setUpClass() method is run by unittest during init.
-- # This happens only once, avoiding repeated execution of slow operations.
-- def _pdfwriter(path):
-- """ Parse a minimal RFC tree and instantiate a writer """
-- parser = xml2rfc.XmlRfcParser(path, quiet=True, **options_for_xmlrfcparser)
-- xmlrfc = parser.parse()
-- writer = xml2rfc.writers.pdf.PdfWriter(xmlrfc, quiet=True, )
-- return writer
--
-- elements_writer = _pdfwriter('tests/input/elements.xml')
-- try:
-- elements_pdfdoc = elements_writer.pdf() # has side effects on .root
-- except Exception as e:
-- print(e)
-- raise
-- cls.pdf_writer = elements_writer
-- cls.elements_root = elements_writer.root
-- cls.elements_pdfxml = xmldoc(None, bytes=elements_pdfdoc)
--
-- def setUp(self):
-- xml2rfc.log.quiet = True
-- self.pdfxml = copy.deepcopy(self.elements_pdfxml)
-- self.root = copy.deepcopy(self.elements_root)
--
-- def test_text_content(self):
-- def norm(t):
-- return re.sub(r'\s+', ' ', t).strip()
-- #
-- text = norm('\n'.join( p.text for p in self.pdfxml.xpath('.//Page/text') ))
-- for e in self.root.xpath('./middle//*'):
-- if e.text and e.text.strip() and e.tag not in xml2rfc.util.unicode.unicode_content_tags and not xml2rfc.util.unicode.is_svg(e):
-- t = norm(e.text.split(None, 1)[0])
-- self.assertIn(t, text)
--
-- def test_included_fonts(self):
-- if xml2rfc.HAVE_WEASYPRINT and xml2rfc.HAVE_PANGO:
-- font_families = set([ f.text for f in self.pdfxml.xpath('.//FontFamily') ])
-- for script in self.root.get('scripts').split(','):
-- family = xml2rfc.util.fonts.get_noto_serif_family_for_script(script)
-- self.assertIn(family, font_families, 'Missing font match for %s' % script)
--
-- def test_flatten_unicode_spans(self):
-- input_html = '<body><p>f<span class="unicode">o</span>o<span class="unicode">ba</span>r</p></body>'
-- output_html = self.pdf_writer.flatten_unicode_spans(input_html)
-- self.assertEqual(output_html, '<body><p>foobar</p></body>')
--
-- def test_get_serif_fonts(self):
-- fonts = self.pdf_writer.get_serif_fonts()
-- for font in ['Noto Serif', 'Noto Sans Cherokee', 'Noto Serif CJK SC', 'Noto Serif Hebrew']:
-- self.assertIn(font, fonts)
--
-- def test_get_mono_fonts(self):
-- fonts = self.pdf_writer.get_mono_fonts()
-- for font in ['Roboto Mono', 'Noto Sans Cherokee', 'Noto Serif CJK SC', 'Noto Serif Hebrew']:
-- self.assertIn(font, fonts)
--
--
- class HtmlWriterTest(unittest.TestCase):
- '''HtmlWriter tests'''
-