diff options
| author | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
|---|---|---|
| committer | Palica <palica+gitlab@liguros.net> | 2020-06-23 22:35:08 +0200 |
| commit | ecdac123787b96ce6649f0f91da12ea6458cc2b1 (patch) | |
| tree | b89c74d9e6fe6e8aebc4c77bcbeb4ab73214127d /dev-python/polib | |
| parent | 1be72aa41cf41dedadeecf59dca9f01de6381f5e (diff) | |
| download | baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.gz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.tar.xz baldeagleos-repo-ecdac123787b96ce6649f0f91da12ea6458cc2b1.zip | |
Updating liguros repo
Diffstat (limited to 'dev-python/polib')
| -rw-r--r-- | dev-python/polib/Manifest | 1 | ||||
| -rw-r--r-- | dev-python/polib/files/polib-1.0.7-BE-test.patch | 11 | ||||
| -rw-r--r-- | dev-python/polib/metadata.xml | 10 | ||||
| -rw-r--r-- | dev-python/polib/polib-1.1.0-r1.ebuild | 37 |
4 files changed, 59 insertions, 0 deletions
diff --git a/dev-python/polib/Manifest b/dev-python/polib/Manifest new file mode 100644 index 000000000000..275b9a16cbf0 --- /dev/null +++ b/dev-python/polib/Manifest @@ -0,0 +1 @@ +DIST polib-1.1.0.tar.gz 158484 BLAKE2B 41766f00e3928eacf3c98406b6acce224f0d0cb44d79326c834db900ed8b91181911ab7e26845a737057dd07c067a784d0b06278952708c17888db42d8c1e303 SHA512 74681585b4d7252e107acd7d73f49f7e91c90adcd180722d39d35c40ec158434798af0124a16788cf564c73b84f52a040aefeb58355a1a3cd85848c3f6a5e67f diff --git a/dev-python/polib/files/polib-1.0.7-BE-test.patch b/dev-python/polib/files/polib-1.0.7-BE-test.patch new file mode 100644 index 000000000000..e2192bb7091b --- /dev/null +++ b/dev-python/polib/files/polib-1.0.7-BE-test.patch @@ -0,0 +1,11 @@ +https://bitbucket.org/izi/polib/pull-requests/24/tests-force-msgfmt-into-machines-byte/diff +https://bugs.gentoo.org/641464 +diff --git a/tests/tests.py b/tests/tests.py +index 50ad0c6..239ce88 100644 +--- a/tests/tests.py ++++ b/tests/tests.py +@@ -551,3 +551,3 @@ class TestPoFile(unittest.TestCase): + po.save_as_mofile(tmpfile1) +- subprocess.call([msgfmt, '--no-hash', '-o', tmpfile2, reffile]) ++ subprocess.call([msgfmt, '--no-hash', '--endianness=%s' % sys.byteorder, '-o', tmpfile2, reffile]) + try: diff --git a/dev-python/polib/metadata.xml b/dev-python/polib/metadata.xml new file mode 100644 index 000000000000..dd59eba0099a --- /dev/null +++ b/dev-python/polib/metadata.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <!-- maintainer-needed --> + <upstream> + <remote-id type="bitbucket">izi/polib</remote-id> + <remote-id type="pypi">polib</remote-id> + </upstream> + <origin>gentoo-staging</origin> +</pkgmetadata> diff --git a/dev-python/polib/polib-1.1.0-r1.ebuild b/dev-python/polib/polib-1.1.0-r1.ebuild new file mode 100644 index 000000000000..213c0a8cf06e --- /dev/null +++ b/dev-python/polib/polib-1.1.0-r1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python{2_7,3_{6,7,8}} ) + +inherit distutils-r1 + +DESCRIPTION="A library to manipulate gettext files (.po and .mo files)" +HOMEPAGE="https://bitbucket.org/izi/polib/wiki/Home" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 arm arm64 ~ia64 ~mips ppc ppc64 sparc x86" +IUSE="doc" + +DEPEND="doc? ( dev-python/sphinx )" + +PATCHES=( + "${FILESDIR}"/${PN}-1.0.7-BE-test.patch +) + +python_compile_all() { + use doc && emake -C docs html +} + +python_test() { + "${PYTHON}" tests/tests.py || die "Tests failed under ${EPYTHON}" +} + +python_install_all() { + local DOCS=( CHANGELOG README.rst ) + use doc && local HTML_DOCS=( docs/_build/html/. ) + distutils-r1_python_install_all +} |
