1 |
commit: 4c50583af170c51dd23102b9d83a3196776289a3 |
2 |
Author: Marco Genasci <fedeliallalinea <AT> gmail <DOT> com> |
3 |
AuthorDate: Wed Jan 27 13:11:46 2021 +0000 |
4 |
Commit: Joonas Niilola <juippis <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jan 28 06:41:41 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4c50583a |
7 |
|
8 |
media-gfx/img2pdf: version bump to 0.4.0 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/759184 |
11 |
Package-Manager: Portage-3.0.13, Repoman-3.0.2 |
12 |
Signed-off-by: Marco Genasci <fedeliallalinea <AT> gmail.com> |
13 |
Closes: https://github.com/gentoo/gentoo/pull/18577 |
14 |
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org> |
15 |
|
16 |
media-gfx/img2pdf/Manifest | 1 + |
17 |
media-gfx/img2pdf/img2pdf-0.4.0.ebuild | 46 ++++++++++++++++++++++++++++++++++ |
18 |
2 files changed, 47 insertions(+) |
19 |
|
20 |
diff --git a/media-gfx/img2pdf/Manifest b/media-gfx/img2pdf/Manifest |
21 |
index acbe9c1cbde..cd9d747f458 100644 |
22 |
--- a/media-gfx/img2pdf/Manifest |
23 |
+++ b/media-gfx/img2pdf/Manifest |
24 |
@@ -1 +1,2 @@ |
25 |
DIST img2pdf-0.3.6.tar.gz 91006 BLAKE2B ad89b42be4613c30383770f336b07773bf13e87061fca61eb7d5e25d6489662fc2bae94d9a6d61d531a77f41b9e94492d0db1f32570f6d471fa9f8cb0816630d SHA512 2a9d31b9de52123941fd650123a483f4dc0757edda304da994353b5f3167bddbb25fa1ed8fededcf859c5d07b65b9c2d5185000949002a68dcae1e7bf0f1547d |
26 |
+DIST img2pdf-0.4.0.tar.gz 107027 BLAKE2B 0bf13e2d4a5aff68779130bc14100a5c6d1ac4eaca9da28ceb50104550b6e4331f6a2202514bcdac0480c0148794d18e9f2dd46ded68bbaa301a207460f91c85 SHA512 bab9ee6ef5273a686cb10e52bdeb62b6df3c0da99d0f0558677e07dc7ad776c2d62829a2f5e9c5639acfb9fc6e9c5e3a81aed42dc288c2a39d245775f1d4391b |
27 |
|
28 |
diff --git a/media-gfx/img2pdf/img2pdf-0.4.0.ebuild b/media-gfx/img2pdf/img2pdf-0.4.0.ebuild |
29 |
new file mode 100644 |
30 |
index 00000000000..eb01f7ad312 |
31 |
--- /dev/null |
32 |
+++ b/media-gfx/img2pdf/img2pdf-0.4.0.ebuild |
33 |
@@ -0,0 +1,46 @@ |
34 |
+# Copyright 1999-2021 Gentoo Authors |
35 |
+# Distributed under the terms of the GNU General Public License v2 |
36 |
+ |
37 |
+EAPI=7 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python3_{7,8} ) |
40 |
+DISTUTILS_USE_SETUPTOOLS=rdepend |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+DESCRIPTION="Losslessly convert raster images to PDF" |
45 |
+HOMEPAGE="https://gitlab.mister-muffin.de/josch/img2pdf" |
46 |
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" |
47 |
+ |
48 |
+LICENSE="LGPL-3+" |
49 |
+SLOT="0" |
50 |
+KEYWORDS="~amd64" |
51 |
+IUSE="gui" |
52 |
+ |
53 |
+# missing dev-python/pdfrw dependency and |
54 |
+# require old version of imagemagick |
55 |
+# waiting new version |
56 |
+RESTRICT="test" |
57 |
+ |
58 |
+#BDEPEND="test? ( |
59 |
+# dev-python/numpy[${PYTHON_USEDEP}] |
60 |
+# dev-python/pdfrw[${PYTHON_USEDEP}] |
61 |
+# dev-python/pikepdf[${PYTHON_USEDEP}] |
62 |
+# dev-python/pytest[${PYTHON_USEDEP}] |
63 |
+# dev-python/scipy[${PYTHON_USEDEP}] |
64 |
+# <media-gfx/imagemagick-7.0.0[jpeg,jpeg2k,png,q8,q32,tiff] |
65 |
+#)" |
66 |
+RDEPEND="dev-python/pikepdf[${PYTHON_USEDEP}] |
67 |
+ dev-python/pillow[${PYTHON_USEDEP}] |
68 |
+ gui? ( $(python_gen_impl_dep tk) )" |
69 |
+ |
70 |
+distutils_enable_tests pytest |
71 |
+ |
72 |
+src_prepare() { |
73 |
+ default |
74 |
+ use !gui && sed -i '/gui_scripts/d' setup.py |
75 |
+} |
76 |
+ |
77 |
+python_test() { |
78 |
+ pytest -vv src/img2pdf_test.py || die "Tests fail with ${EPYTHON}" |
79 |
+} |