diff options
author | Zamarin Arthur <arthurzam@gmail.com> | 2021-05-23 13:17:50 +0300 |
---|---|---|
committer | Michał Górny <mgorny@gentoo.org> | 2021-05-23 18:34:16 +0200 |
commit | c595b712b14b98397c9bf159e0f232e682283f0f (patch) | |
tree | 21456f8d3978738df6331f109b1e64d01be358f4 /media-gfx | |
parent | dev-python/pdfrw: bump to python 3.9 (diff) | |
download | gentoo-c595b712b14b98397c9bf159e0f232e682283f0f.tar.gz gentoo-c595b712b14b98397c9bf159e0f232e682283f0f.tar.bz2 gentoo-c595b712b14b98397c9bf159e0f232e682283f0f.zip |
media-gfx/img2pdf: add 0.4.1, bump python 3.9
Signed-off-by: Zamarin Arthur <arthurzam@gmail.com>
Signed-off-by: Michał Górny <mgorny@gentoo.org>
Diffstat (limited to 'media-gfx')
-rw-r--r-- | media-gfx/img2pdf/Manifest | 1 | ||||
-rw-r--r-- | media-gfx/img2pdf/img2pdf-0.4.1.ebuild | 50 |
2 files changed, 51 insertions, 0 deletions
diff --git a/media-gfx/img2pdf/Manifest b/media-gfx/img2pdf/Manifest index cd9d747f4587..a3408876defc 100644 --- a/media-gfx/img2pdf/Manifest +++ b/media-gfx/img2pdf/Manifest @@ -1,2 +1,3 @@ DIST img2pdf-0.3.6.tar.gz 91006 BLAKE2B ad89b42be4613c30383770f336b07773bf13e87061fca61eb7d5e25d6489662fc2bae94d9a6d61d531a77f41b9e94492d0db1f32570f6d471fa9f8cb0816630d SHA512 2a9d31b9de52123941fd650123a483f4dc0757edda304da994353b5f3167bddbb25fa1ed8fededcf859c5d07b65b9c2d5185000949002a68dcae1e7bf0f1547d DIST img2pdf-0.4.0.tar.gz 107027 BLAKE2B 0bf13e2d4a5aff68779130bc14100a5c6d1ac4eaca9da28ceb50104550b6e4331f6a2202514bcdac0480c0148794d18e9f2dd46ded68bbaa301a207460f91c85 SHA512 bab9ee6ef5273a686cb10e52bdeb62b6df3c0da99d0f0558677e07dc7ad776c2d62829a2f5e9c5639acfb9fc6e9c5e3a81aed42dc288c2a39d245775f1d4391b +DIST img2pdf-0.4.1.tar.gz 96699 BLAKE2B f5a41a3a3d1b1ae7caadab4f37df644ad28a3ef4bd7a56a339253f0aead4d2427f05373dcfd16b10d82a6167243b3b03906e9f95b7ae0dcdbea6a666905c45a2 SHA512 e71833250509d52b8782a8bc9e12a8de6ab7ae06d5e6e235c0b3787bfad1070b5ed90934b21e4decc9b2c7008eeb0424f9df27e44ec66259916d3a2fdb73d1f1 diff --git a/media-gfx/img2pdf/img2pdf-0.4.1.ebuild b/media-gfx/img2pdf/img2pdf-0.4.1.ebuild new file mode 100644 index 000000000000..b4b9173611f3 --- /dev/null +++ b/media-gfx/img2pdf/img2pdf-0.4.1.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +PYTHON_COMPAT=( python3_{7..9} ) +DISTUTILS_USE_SETUPTOOLS=rdepend + +inherit distutils-r1 + +DESCRIPTION="Losslessly convert raster images to PDF" +HOMEPAGE="https://gitlab.mister-muffin.de/josch/img2pdf" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" + +LICENSE="LGPL-3+" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="gui" + +# missing dev-python/pdfrw dependency and +# require old version of imagemagick +# waiting new version +RESTRICT="test" + +#BDEPEND="test? ( +# dev-python/numpy[${PYTHON_USEDEP}] +# dev-python/pdfrw[${PYTHON_USEDEP}] +# dev-python/pikepdf[${PYTHON_USEDEP}] +# dev-python/pytest[${PYTHON_USEDEP}] +# dev-python/scipy[${PYTHON_USEDEP}] +# <media-gfx/imagemagick-7.0.0[jpeg,jpeg2k,png,q8,q32,tiff] +#)" +RDEPEND="dev-python/pikepdf[${PYTHON_USEDEP}] + dev-python/pillow[${PYTHON_USEDEP}] + gui? ( $(python_gen_impl_dep tk) )" + +distutils_enable_tests pytest + +src_prepare() { + distutils-r1_python_prepare_all + + # Remove gui executable if there's no demand/support for it. + if ! use gui; then + sed -i '/gui_scripts/d' setup.py || die + fi +} + +python_test() { + epytest src/img2pdf_test.py +} |