From 180ba7f2b8602d4752040e9d333a4523a6068cb0 Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Sat, 4 Feb 2023 23:59:44 -0500 Subject: dev-python/python-gettext: new package, add 4.1 Signed-off-by: Julien Roy --- dev-python/python-gettext/Manifest | 1 + dev-python/python-gettext/metadata.xml | 19 +++++++++++++++++ .../python-gettext/python-gettext-4.1.ebuild | 24 ++++++++++++++++++++++ 3 files changed, 44 insertions(+) create mode 100644 dev-python/python-gettext/Manifest create mode 100644 dev-python/python-gettext/metadata.xml create mode 100644 dev-python/python-gettext/python-gettext-4.1.ebuild diff --git a/dev-python/python-gettext/Manifest b/dev-python/python-gettext/Manifest new file mode 100644 index 0000000..820514b --- /dev/null +++ b/dev-python/python-gettext/Manifest @@ -0,0 +1 @@ +DIST python-gettext-4.1.gh.tar.gz 11222 BLAKE2B 1b9530cc4c607627e3af54ae8f0f5c5b5a6b9fe4c64589f646746ffe48dad49304eefb46cb3530231bbe7e1a1e33bf1468acdeb387b05baee1de6958ee267362 SHA512 b79dc9d53c2ae94b025631d2e75939d50a60db9aa30289e9b75adbf3af4ca8d39e51dc391113bba10851919983b523bd69c8a5ee2b5808895a8efd1435016769 diff --git a/dev-python/python-gettext/metadata.xml b/dev-python/python-gettext/metadata.xml new file mode 100644 index 0000000..30e78fa --- /dev/null +++ b/dev-python/python-gettext/metadata.xml @@ -0,0 +1,19 @@ + + + + + Julien Roy + julien@jroy.ca + + + This implementation of Gettext for Python includes a Msgfmt class which can be used to generate compiled mo files from Gettext po files and includes support for the newer msgctxt keyword. + + + + Hanno Schlichting + hanno@hannosch.eu + + hanno@hannosch.eu + hanno@hannosch.eu + + diff --git a/dev-python/python-gettext/python-gettext-4.1.ebuild b/dev-python/python-gettext/python-gettext-4.1.ebuild new file mode 100644 index 0000000..c7f489d --- /dev/null +++ b/dev-python/python-gettext/python-gettext-4.1.ebuild @@ -0,0 +1,24 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{9..11} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Gettext for Python" +HOMEPAGE="https://github.com/hannosch/python-gettext" +SRC_URI="https://github.com/hannosch/python-gettext/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64" + +distutils_enable_tests unittest + +src_test() { + cd "${S}/src/pythongettext" || die + distutils-r1_src_test +} -- cgit v1.2.3