1 |
commit: 7a2e07f63c56781322778dbf08d1895a67df113c |
2 |
Author: Michał Górny <mgorny <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 26 08:31:06 2022 +0000 |
4 |
Commit: Michał Górny <mgorny <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 08:34:49 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a2e07f6 |
7 |
|
8 |
dev-python/python-xmp-toolkit: EAPI 8, PEP517 |
9 |
|
10 |
Signed-off-by: Michał Górny <mgorny <AT> gentoo.org> |
11 |
|
12 |
.../python-xmp-toolkit-2.0.1-r2.ebuild | 46 ++++++++++++++++++++++ |
13 |
1 file changed, 46 insertions(+) |
14 |
|
15 |
diff --git a/dev-python/python-xmp-toolkit/python-xmp-toolkit-2.0.1-r2.ebuild b/dev-python/python-xmp-toolkit/python-xmp-toolkit-2.0.1-r2.ebuild |
16 |
new file mode 100644 |
17 |
index 000000000000..721ab686b127 |
18 |
--- /dev/null |
19 |
+++ b/dev-python/python-xmp-toolkit/python-xmp-toolkit-2.0.1-r2.ebuild |
20 |
@@ -0,0 +1,46 @@ |
21 |
+# Copyright 2020-2022 Gentoo Authors |
22 |
+# Distributed under the terms of the GNU General Public License v2 |
23 |
+ |
24 |
+EAPI=8 |
25 |
+ |
26 |
+DISTUTILS_USE_PEP517=setuptools |
27 |
+PYTHON_COMPAT=( python3_{8..10} ) |
28 |
+ |
29 |
+inherit distutils-r1 |
30 |
+ |
31 |
+if [[ ${PV} == "9999" ]] ; then |
32 |
+ inherit git-r3 |
33 |
+ EGIT_REPO_URI="https://github.com/python-xmp-toolkit/${PN}.git" |
34 |
+else |
35 |
+ SRC_URI="https://github.com/python-xmp-toolkit/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" |
36 |
+ KEYWORDS="~amd64 ~x86" |
37 |
+fi |
38 |
+ |
39 |
+DESCRIPTION="Library for working with XMP metadata" |
40 |
+HOMEPAGE="https://github.com/python-xmp-toolkit/python-xmp-toolkit/ https://pypi.org/project/python-xmp-toolkit/" |
41 |
+ |
42 |
+LICENSE="BSD" |
43 |
+SLOT="0" |
44 |
+IUSE="doc test" |
45 |
+RESTRICT="!test? ( test )" |
46 |
+ |
47 |
+DEPEND=" |
48 |
+ doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) |
49 |
+ test? ( media-libs/exempi ) |
50 |
+" |
51 |
+RDEPEND=" |
52 |
+ dev-python/pytz[${PYTHON_USEDEP}] |
53 |
+" |
54 |
+ |
55 |
+PATCHES=( "${FILESDIR}"/${P}-test.patch ) |
56 |
+ |
57 |
+distutils_enable_tests unittest |
58 |
+ |
59 |
+python_compile_all() { |
60 |
+ use doc && emake -C docs html |
61 |
+} |
62 |
+ |
63 |
+python_install_all() { |
64 |
+ use doc && local HTML_DOCS=( docs/.build/html/. ) |
65 |
+ distutils-r1_python_install_all |
66 |
+} |