Gentoo Archives: gentoo-commits

From: "Gábor Oszkár Dénes" <gaboroszkar@××××××××××.com>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/proj/guru:dev commit in: dev-python/pylatexenc/
Date: Wed, 30 Mar 2022 17:06:51
Message-Id: 1648659673.ce2693bc87dd7b0e2f7cc98ddae9fe6c08d4087f.gaboroszkar@gentoo
1 commit: ce2693bc87dd7b0e2f7cc98ddae9fe6c08d4087f
2 Author: Gábor Oszkár Dénes <gaboroszkar <AT> protonmail <DOT> com>
3 AuthorDate: Wed Mar 30 17:01:13 2022 +0000
4 Commit: Gábor Oszkár Dénes <gaboroszkar <AT> protonmail <DOT> com>
5 CommitDate: Wed Mar 30 17:01:13 2022 +0000
6 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ce2693bc
7
8 dev-python/pylatexenc: new package
9
10 Package-Manager: Portage-3.0.30, Repoman-3.0.3
11 Signed-off-by: Gábor Oszkár Dénes <gaboroszkar <AT> protonmail.com>
12
13 dev-python/pylatexenc/Manifest | 1 +
14 dev-python/pylatexenc/metadata.xml | 14 ++++++++++++++
15 dev-python/pylatexenc/pylatexenc-2.10.ebuild | 19 +++++++++++++++++++
16 3 files changed, 34 insertions(+)
17
18 diff --git a/dev-python/pylatexenc/Manifest b/dev-python/pylatexenc/Manifest
19 new file mode 100644
20 index 000000000..a340c67f9
21 --- /dev/null
22 +++ b/dev-python/pylatexenc/Manifest
23 @@ -0,0 +1 @@
24 +DIST pylatexenc-2.10.tar.gz 721836 BLAKE2B 8512e052271c127809105280360706217f5134b2349d4b21dcec720addb4cff4157173f8350115de4142aea491da2efb1a2854b4310c48ec98061470be21654e SHA512 9728731e0c84324685b77ce17fae0bea445815e2c54394d2722c4412bbd914da49280ef36b5f3a0a0346e5d2129ca2d8d3b3b92356de3c6af9eed4247cf8bd43
25
26 diff --git a/dev-python/pylatexenc/metadata.xml b/dev-python/pylatexenc/metadata.xml
27 new file mode 100644
28 index 000000000..4bb5426ae
29 --- /dev/null
30 +++ b/dev-python/pylatexenc/metadata.xml
31 @@ -0,0 +1,14 @@
32 +<?xml version="1.0" encoding="UTF-8"?>
33 +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
34 +<pkgmetadata>
35 + <!-- comaintainers-welcomed -->
36 + <maintainer type="person">
37 + <email>gaboroszkar@××××××××××.com</email>
38 + <name>Gábor Oszkár Dénes</name>
39 + </maintainer>
40 + <longdescription>
41 + Simple LaTeX parser providing latex-to-unicode and unicode-to-latex conversion.
42 + The pylatexenc.latexencode module provides a function unicode_to_latex() which converts a unicode string into LaTeX text and escape sequences. It should recognize accented characters and most math symbols. A couple of switches allow you to alter how this function behaves.
43 + You can also run latexencode in command-line to convert plain unicode text (from the standard input or from files given on the command line) into LaTeX code, written on to the standard output.
44 + </longdescription>
45 +</pkgmetadata>
46
47 diff --git a/dev-python/pylatexenc/pylatexenc-2.10.ebuild b/dev-python/pylatexenc/pylatexenc-2.10.ebuild
48 new file mode 100644
49 index 000000000..dcf1d618c
50 --- /dev/null
51 +++ b/dev-python/pylatexenc/pylatexenc-2.10.ebuild
52 @@ -0,0 +1,19 @@
53 +# Copyright 2022 Gentoo Authors
54 +# Distributed under the terms of the GNU General Public License v2
55 +
56 +EAPI=8
57 +
58 +DISTUTILS_USE_PEP517=setuptools
59 +PYTHON_COMPAT=( python3_{8..10} )
60 +
61 +inherit distutils-r1
62 +
63 +DESCRIPTION="Simple LaTeX parser providing latex-to-unicode and unicode-to-latex conversion"
64 +HOMEPAGE="https://github.com/phfaist/pylatexenc"
65 +SRC_URI="https://github.com/phfaist/pylatexenc/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
66 +
67 +LICENSE="MIT"
68 +SLOT="0"
69 +KEYWORDS="~amd64"
70 +
71 +distutils_enable_tests pytest