From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 8C0C815808F for ; Sat, 26 Feb 2022 08:34:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BDB36E07EA; Sat, 26 Feb 2022 08:34:58 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 9CE7BE07EA for ; Sat, 26 Feb 2022 08:34:58 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id C3938343097 for ; Sat, 26 Feb 2022 08:34:57 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1EB8C30C for ; Sat, 26 Feb 2022 08:34:55 +0000 (UTC) From: "Michał Górny" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michał Górny" Message-ID: <1645864489.7a2e07f63c56781322778dbf08d1895a67df113c.mgorny@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-python/python-xmp-toolkit/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-python/python-xmp-toolkit/python-xmp-toolkit-2.0.1-r2.ebuild X-VCS-Directories: dev-python/python-xmp-toolkit/ X-VCS-Committer: mgorny X-VCS-Committer-Name: Michał Górny X-VCS-Revision: 7a2e07f63c56781322778dbf08d1895a67df113c X-VCS-Branch: master Date: Sat, 26 Feb 2022 08:34:55 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 8609bcfd-110a-4fa3-8116-ad48c9b4c076 X-Archives-Hash: b7389239ae896c5ee928a4fc08450ec2 commit: 7a2e07f63c56781322778dbf08d1895a67df113c Author: Michał Górny gentoo org> AuthorDate: Sat Feb 26 08:31:06 2022 +0000 Commit: Michał Górny gentoo org> CommitDate: Sat Feb 26 08:34:49 2022 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a2e07f6 dev-python/python-xmp-toolkit: EAPI 8, PEP517 Signed-off-by: Michał Górny gentoo.org> .../python-xmp-toolkit-2.0.1-r2.ebuild | 46 ++++++++++++++++++++++ 1 file changed, 46 insertions(+) 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 new file mode 100644 index 000000000000..721ab686b127 --- /dev/null +++ b/dev-python/python-xmp-toolkit/python-xmp-toolkit-2.0.1-r2.ebuild @@ -0,0 +1,46 @@ +# Copyright 2020-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DISTUTILS_USE_PEP517=setuptools +PYTHON_COMPAT=( python3_{8..10} ) + +inherit distutils-r1 + +if [[ ${PV} == "9999" ]] ; then + inherit git-r3 + EGIT_REPO_URI="https://github.com/python-xmp-toolkit/${PN}.git" +else + 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" +RESTRICT="!test? ( test )" + +DEPEND=" + doc? ( dev-python/sphinx[${PYTHON_USEDEP}] ) + test? ( media-libs/exempi ) +" +RDEPEND=" + dev-python/pytz[${PYTHON_USEDEP}] +" + +PATCHES=( "${FILESDIR}"/${P}-test.patch ) + +distutils_enable_tests unittest + +python_compile_all() { + use doc && emake -C docs html +} + +python_install_all() { + use doc && local HTML_DOCS=( docs/.build/html/. ) + distutils-r1_python_install_all +}