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