commit:     b8dac7fd3a15669bb9d816c2b55bbb0a84f5080c
Author:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
AuthorDate: Thu Mar 17 01:33:16 2022 +0000
Commit:     Alessandro Barbieri <lssndrbarbieri <AT> gmail <DOT> com>
CommitDate: Thu Mar 17 01:33:16 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=b8dac7fd

dev-python/font-v: add 2.1.0

Signed-off-by: Alessandro Barbieri <lssndrbarbieri <AT> gmail.com>

 dev-python/font-v/Manifest            |  1 +
 dev-python/font-v/font-v-2.1.0.ebuild | 39 +++++++++++++++++++++++++++++++++++
 2 files changed, 40 insertions(+)

diff --git a/dev-python/font-v/Manifest b/dev-python/font-v/Manifest
index e06e1db13..3fea12de9 100644
--- a/dev-python/font-v/Manifest
+++ b/dev-python/font-v/Manifest
@@ -1 +1,2 @@
 DIST font-v-1.0.5.tar.gz 4270200 BLAKE2B 
b94c4e0bff4c07efd50803068e0fc061c910b24f8ed2e70ae1b92d06d69db9d707b6665fdc2179eb80ae814c3b2ad913f58b1c5d4a7b9f81b40269cbb505cfb7
 SHA512 
070415a72deb8a35804ee548f745edf399fe01ae279ea9ca88f0d1231af77a37f38456726db73e8df26d324bd8e0159b2978a668984d9f8cc24794e2a045cb73
+DIST font-v-2.1.0.tar.gz 4268916 BLAKE2B 
596673c62cd29d8428f97d6c6e7cbd9591e9f4f94cc719ee438f59bfeaa81adae4dc2ebb04464cfa42ec4ff71019cf658acbfe05d748f6b98383484d1aaaba4e
 SHA512 
a619971b32828eb026499a8fed67e2c8eca063d1a868be7586f4b8b2802ede5740bef009bf8f4e9891793bf78239d1c0329ebc3bc96cecef59666fe9635ce978

diff --git a/dev-python/font-v/font-v-2.1.0.ebuild 
b/dev-python/font-v/font-v-2.1.0.ebuild
new file mode 100644
index 000000000..5d0df4791
--- /dev/null
+++ b/dev-python/font-v/font-v-2.1.0.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2022 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{8..9} )
+
+inherit distutils-r1
+
+DESCRIPTION="Font version string reporting and modification library"
+HOMEPAGE="https://github.com/source-foundry/font-v";
+SRC_URI="https://github.com/source-foundry/font-v/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
+KEYWORDS="~amd64"
+LICENSE="MIT"
+SLOT="0"
+
+RDEPEND="
+       dev-python/fonttools[${PYTHON_USEDEP}]
+       dev-python/GitPython[${PYTHON_USEDEP}]
+"
+DEPEND="${RDEPEND}"
+BDEPEND="test? ( dev-vcs/git )"
+
+distutils_enable_tests pytest
+distutils_enable_sphinx docs dev-python/sphinx_rtd_theme
+
+python_test() {
+       #it want a git repo
+       git init || die
+       git config --global user.email "[email protected]" || die
+       git config --global user.name "Your Name" || die
+       git add . || die
+       git commit -m 'init' || die
+
+       #pure madness
+       
#https://github.com/source-foundry/font-v/blob/e6746e4a045c99e56af661918c96259b1f444ed4/tests/test_utilities.py#L34
+       sed -e "s|\"font-v\"|\"${PWD##*/}\"|g" -i "tests/test_utilities.py" || 
die
+       epytest -vv
+}

Reply via email to