1 |
commit: 9b96d2dfc7572357be8dbd92fc9302660c196129 |
2 |
Author: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Nov 3 09:00:52 2021 +0000 |
4 |
Commit: Arthur Zamarin <arthurzam <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Nov 3 09:08:42 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9b96d2df |
7 |
|
8 |
dev-python/libpillowfight: add 0.3.0_p20210816, enable tests |
9 |
|
10 |
- Use new snapshot as the test suite was fixed to use correct images |
11 |
- Use tarball from upstream repo to include tests |
12 |
- enable tests |
13 |
- enable py3.10 |
14 |
|
15 |
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org> |
16 |
|
17 |
dev-python/libpillowfight/Manifest | 1 + |
18 |
.../libpillowfight-0.3.0_p20210816.ebuild | 38 ++++++++++++++++++++++ |
19 |
2 files changed, 39 insertions(+) |
20 |
|
21 |
diff --git a/dev-python/libpillowfight/Manifest b/dev-python/libpillowfight/Manifest |
22 |
index 0255937587a..b37ea940102 100644 |
23 |
--- a/dev-python/libpillowfight/Manifest |
24 |
+++ b/dev-python/libpillowfight/Manifest |
25 |
@@ -1 +1,2 @@ |
26 |
+DIST libpillowfight-0.3.0_p20210816.tar.gz 89491019 BLAKE2B 24a658ce461928750582560ef27fbc1ea233bb7c6290053bee7ab3437816fd0e9d7933e36a7a90c75706bdc17024200d16a17ec81c0c30563f043e6d15cc074e SHA512 a731a7d8c8492f5f6229315c8ff48bcdf215acd501d1a5f726f60d6417f77d04b702579d972aaa90f9d01d27b7b167b47f15f435c0fe79598aedb55ac397835b |
27 |
DIST pypillowfight-0.3.0.tar.gz 41065 BLAKE2B 8e945bb5a96d7ebd610435fd868d12df371c29fbc26a9c57152988a990ad83daf70382bb94e8b5591144e18d6c54702c0a578ea5f29044fcdadd169effcf933c SHA512 2782030eabb665d20cf49de584220fb65417616c3a0e2a0376c91dc2c228b571768ea3a248ebd5ec4d244a1b825e98609a35b736f7f2fdbb3f674b08e891d9a7 |
28 |
|
29 |
diff --git a/dev-python/libpillowfight/libpillowfight-0.3.0_p20210816.ebuild b/dev-python/libpillowfight/libpillowfight-0.3.0_p20210816.ebuild |
30 |
new file mode 100644 |
31 |
index 00000000000..5e1ace91926 |
32 |
--- /dev/null |
33 |
+++ b/dev-python/libpillowfight/libpillowfight-0.3.0_p20210816.ebuild |
34 |
@@ -0,0 +1,38 @@ |
35 |
+# Copyright 1999-2021 Gentoo Authors |
36 |
+# Distributed under the terms of the GNU General Public License v2 |
37 |
+ |
38 |
+EAPI=7 |
39 |
+ |
40 |
+PYTHON_COMPAT=( python3_{8..10} ) |
41 |
+ |
42 |
+inherit distutils-r1 |
43 |
+ |
44 |
+COMMIT="50d965879eb89fdef9be09d6e934329486ff585d" |
45 |
+ |
46 |
+DESCRIPTION="Small library containing various image processing algorithms" |
47 |
+HOMEPAGE="https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight" |
48 |
+SRC_URI="https://gitlab.gnome.org/World/OpenPaperwork/${PN}/-/archive/${COMMIT}/${P}.tar.gz" |
49 |
+S="${WORKDIR}/${PN}-${COMMIT}" |
50 |
+ |
51 |
+LICENSE="GPL-3" |
52 |
+SLOT="0" |
53 |
+KEYWORDS="~amd64 ~x86" |
54 |
+ |
55 |
+RDEPEND="dev-python/pillow[${PYTHON_USEDEP}]" |
56 |
+ |
57 |
+distutils_enable_tests nose |
58 |
+ |
59 |
+python_prepare_all() { |
60 |
+ sed -e "/'nose>=1.0'/d" -i setup.py || die |
61 |
+ cat > src/pillowfight/_version.h <<- EOF || die |
62 |
+ #define INTERNAL_PILLOWFIGHT_VERSION "$(ver_cut 1-3)" |
63 |
+ EOF |
64 |
+ distutils-r1_python_prepare_all |
65 |
+} |
66 |
+ |
67 |
+python_test() { |
68 |
+ cp -r -l -n tests "${BUILD_DIR}/lib" || die |
69 |
+ cd "${BUILD_DIR}/lib" || die |
70 |
+ distutils-r1_python_test |
71 |
+ rm -r tests || die |
72 |
+} |