commit: b84bc79ccfc6e835f6fbc220550acc58218c2dbd
Author: Mazunki Hoksaas <rolferen <AT> gmail <DOT> com>
AuthorDate: Tue May 14 11:00:21 2024 +0000
Commit: Mazunki Hoksaas <rolferen <AT> gmail <DOT> com>
CommitDate: Tue May 14 11:00:21 2024 +0000
URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b84bc79c
dev-python/*: rename latexify to latexify-py
also addressed some QA issues
Signed-off-by: Mazunki Hoksaas <rolferen <AT> gmail.com>
dev-python/latexify-py/Manifest | 1 +
.../latexify-py-0.4.3.1.ebuild} | 13 +++++++------
dev-python/latexify-py/metadata.xml | 12 ++++++++++++
dev-python/latexify/Manifest | 1 -
4 files changed, 20 insertions(+), 7 deletions(-)
diff --git a/dev-python/latexify-py/Manifest b/dev-python/latexify-py/Manifest
new file mode 100644
index 0000000000..a570fb8038
--- /dev/null
+++ b/dev-python/latexify-py/Manifest
@@ -0,0 +1 @@
+DIST latexify_py-0.4.3-post1.gh.tar.gz 78199 BLAKE2B
2292131c5f9eec51c8cf16812d72823076e61ac66320688ba891dea822bcad240a69e932aa7f6f5af54508b1e770a12bf19ac01c29ccee930e1b976670500ef5
SHA512
0c534368827b9776132a6ff7e2bedd6ca70a097ff6abbb22b87399ae17b3b2f04c171e9fae8ecc00103e0f90e367b57c4e832ecbeffad44a9e82a09495ffbaaa
diff --git a/dev-python/latexify/latexify-0.4.3.1.ebuild
b/dev-python/latexify-py/latexify-py-0.4.3.1.ebuild
similarity index 53%
rename from dev-python/latexify/latexify-0.4.3.1.ebuild
rename to dev-python/latexify-py/latexify-py-0.4.3.1.ebuild
index df29aa3cd8..0233d970c2 100644
--- a/dev-python/latexify/latexify-0.4.3.1.ebuild
+++ b/dev-python/latexify-py/latexify-py-0.4.3.1.ebuild
@@ -3,19 +3,21 @@
EAPI=8
-PYTHON_COMPAT=( python3_{10..11} pypy3 )
+PYTHON_COMPAT=( python3_{10..11} pypy3 ) # upstream supports >=3.7 to <3.12
DISTUTILS_USE_PEP517=hatchling
inherit distutils-r1
-DESCRIPTION="Package to compile a fragment of Python source code to a
corresponding LaTeX expression"
+DESCRIPTION="Annotate Python source code to get LaTeX expressions"
HOMEPAGE="
https://pypi.org/project/latexify-py/
https://github.com/google/latexify_py
"
-# not really sure how -post1 should be handled
-SRC_URI="https://github.com/google/latexify_py/archive/refs/tags/v0.4.3-post1.tar.gz
-> ${P}.tar.gz"
-S="${WORKDIR}/latexify_py-0.4.3-post1"
+
+# upstream package is called latexify-py (on pypi), but their filename is
called latexify_py
+# we're using $(ver_cut 1-3) because of this specific postfix version, akin to
-r1. remove in next versions
+SRC_URI="https://github.com/google/latexify_py/archive/refs/tags/v$(ver_cut
1-3)-post1.tar.gz -> ${PN/-/_}-$(ver_cut 1-3)-post1.gh.tar.gz"
+S="${WORKDIR}/${PN/-/_}-$(ver_cut 1-3)-post1"
LICENSE="Apache-2.0"
SLOT=0
@@ -32,4 +34,3 @@ distutils_enable_tests pytest
src_prepare() {
distutils-r1_src_prepare
}
-
diff --git a/dev-python/latexify-py/metadata.xml
b/dev-python/latexify-py/metadata.xml
new file mode 100644
index 0000000000..47da14ac9e
--- /dev/null
+++ b/dev-python/latexify-py/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>[email protected]</email>
+ <name>Mazunki Hoksaas</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">google/latexify_py</remote-id>
+ <remote-id type="pypi">latexify-py</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/latexify/Manifest b/dev-python/latexify/Manifest
deleted file mode 100644
index 61100004a3..0000000000
--- a/dev-python/latexify/Manifest
+++ /dev/null
@@ -1 +0,0 @@
-DIST latexify-0.4.3.1.tar.gz 78199 BLAKE2B
2292131c5f9eec51c8cf16812d72823076e61ac66320688ba891dea822bcad240a69e932aa7f6f5af54508b1e770a12bf19ac01c29ccee930e1b976670500ef5
SHA512
0c534368827b9776132a6ff7e2bedd6ca70a097ff6abbb22b87399ae17b3b2f04c171e9fae8ecc00103e0f90e367b57c4e832ecbeffad44a9e82a09495ffbaaa