summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrey Grozin <grozin@gentoo.org>2020-01-13 21:40:27 +0700
committerAndrey Grozin <grozin@gentoo.org>2020-01-13 21:41:22 +0700
commit9426de1601dd831fa8abe4d2ca7569ac7d0af216 (patch)
tree01b305ddd9e623189d0508a1ab6209a0fc1830fd /dev-python/python-xmp-toolkit
parentdev-util/indent: Fix USE=-nls (diff)
downloadgentoo-9426de1601dd831fa8abe4d2ca7569ac7d0af216.tar.gz
gentoo-9426de1601dd831fa8abe4d2ca7569ac7d0af216.tar.bz2
gentoo-9426de1601dd831fa8abe4d2ca7569ac7d0af216.zip
dev-python/python-xmp-toolkit: initial import
Suggested-by: <fedeliallalinea@gmail.com> Package-Manager: Portage-2.3.84, Repoman-2.3.20 Signed-off-by: Andrey Grozin <grozin@gentoo.org>
Diffstat (limited to 'dev-python/python-xmp-toolkit')
-rw-r--r--dev-python/python-xmp-toolkit/Manifest1
-rw-r--r--dev-python/python-xmp-toolkit/metadata.xml12
-rw-r--r--dev-python/python-xmp-toolkit/python-xmp-toolkit-2.0.1.ebuild41
3 files changed, 54 insertions, 0 deletions
diff --git a/dev-python/python-xmp-toolkit/Manifest b/dev-python/python-xmp-toolkit/Manifest
new file mode 100644
index 000000000000..e0364abfab3b
--- /dev/null
+++ b/dev-python/python-xmp-toolkit/Manifest
@@ -0,0 +1 @@
+DIST python-xmp-toolkit-2.0.1.tar.gz 3576384 BLAKE2B cbe73d08d101d0d44c368fd1f1c6f1c8308ece5ca26f164f78312d901fb5d0387a5d2a6519d527b3625d11e338df5c366bed8a7361ac822ac887ef8be3a74948 SHA512 46f83b03574b2d742f6c6efb5b94a549068557ad6338e74fc62368c265d05f0b66a4dd36b17cd51b39f7b6cfbfb1210d54cc44c69e9a9e3da3392ee5f11de3bd
diff --git a/dev-python/python-xmp-toolkit/metadata.xml b/dev-python/python-xmp-toolkit/metadata.xml
new file mode 100644
index 000000000000..b8fb5e9d7f1c
--- /dev/null
+++ b/dev-python/python-xmp-toolkit/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>grozin@gentoo.org</email>
+ <name>Andrey Grozin</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="pypi">python-xmp-toolkit</remote-id>
+ <remote-id type="github">python-xmp-toolkit/python-xmp-toolkit</remote-id>
+ </upstream>
+</pkgmetadata>
diff --git a/dev-python/python-xmp-toolkit/python-xmp-toolkit-2.0.1.ebuild b/dev-python/python-xmp-toolkit/python-xmp-toolkit-2.0.1.ebuild
new file mode 100644
index 000000000000..7676128f1302
--- /dev/null
+++ b/dev-python/python-xmp-toolkit/python-xmp-toolkit-2.0.1.ebuild
@@ -0,0 +1,41 @@
+# Copyright 2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+PYTHON_COMPAT=( python3_{6,7,8} )
+
+if [[ ${PV} == "9999" ]] ; then
+ inherit git-r3 distutils-r1
+ EGIT_REPO_URI="https://github.com/python-xmp-toolkit/${PN}.git"
+else
+ inherit distutils-r1
+ SRC_URI="https://github.com/python-xmp-toolkit/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="~amd64 ~x86"
+fi
+
+DESCRIPTION="Library for working with XMP metadata"
+HOMEPAGE="https://github.com/python-xmp-toolkit/python-xmp-toolkit/ https://pypi.org/project/python-xmp-toolkit/"
+
+LICENSE="BSD"
+SLOT="0"
+IUSE="doc test"
+
+DEPEND="doc? ( dev-python/sphinx[${PYTHON_USEDEP}] )
+ test? ( dev-python/unittest2[${PYTHON_USEDEP}]
+ dev-python/mock[${PYTHON_USEDEP}]
+ media-libs/exempi )"
+RDEPEND="dev-python/pytz[${PYTHON_USEDEP}]"
+
+python_compile_all() {
+ use doc && emake -C docs html
+}
+
+python_test() {
+ esetup.py test
+}
+
+python_install_all() {
+ use doc && local HTML_DOCS=( docs/.build/html/. )
+ distutils-r1_python_install_all
+}