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>
This commit is contained in:
Andrey Grozin
2020-01-13 21:40:27 +07:00
parent 98924e4fe0
commit 9426de1601
3 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST python-xmp-toolkit-2.0.1.tar.gz 3576384 BLAKE2B cbe73d08d101d0d44c368fd1f1c6f1c8308ece5ca26f164f78312d901fb5d0387a5d2a6519d527b3625d11e338df5c366bed8a7361ac822ac887ef8be3a74948 SHA512 46f83b03574b2d742f6c6efb5b94a549068557ad6338e74fc62368c265d05f0b66a4dd36b17cd51b39f7b6cfbfb1210d54cc44c69e9a9e3da3392ee5f11de3bd

View File

@@ -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>

View File

@@ -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
}