commit:     c501b129a6822e52fd8d2731aff263153c2dd270
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Aug  4 02:43:47 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Aug  4 02:48:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c501b129

dev-python/wcmatch: Bump to 9.0

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 dev-python/wcmatch/Manifest           |  1 +
 dev-python/wcmatch/wcmatch-9.0.ebuild | 61 +++++++++++++++++++++++++++++++++++
 2 files changed, 62 insertions(+)

diff --git a/dev-python/wcmatch/Manifest b/dev-python/wcmatch/Manifest
index a02f327fd7bb..577ddec60efd 100644
--- a/dev-python/wcmatch/Manifest
+++ b/dev-python/wcmatch/Manifest
@@ -1 +1,2 @@
 DIST wcmatch-8.5.2.gh.tar.gz 117532 BLAKE2B 
f01ce989d1580da6575535a3c025aa50defe779ca723359dab379dda1c4c98d812343773d0130c56f8ebf74dae4472caa188b4b7b323f2df09686ebba297fa9a
 SHA512 
1a79940bc54996f587dda6aacefee212adb4d527be68cc7b762e7e16c0796ebd833bdeb5abe6f48fa3d6d82f720ade054633ce28ee506b17c4d89cccffaa8e70
+DIST wcmatch-9.0.gh.tar.gz 116090 BLAKE2B 
6d33886a9f1f0f53c95dcd8adcebffcd50075c54f8a6398d22e372b811dab33a09152c98d982ed817c9230ae0f200e74dac209da785979365aa38a511b790965
 SHA512 
638a59b70729eeb39a9bc059d08271b8cfe924a9fce4317718b3cc38e057f1176ec87b033f9f30494fce5c1d24560ef22cd0d9e2a4df12c2b765c3e1358756d6

diff --git a/dev-python/wcmatch/wcmatch-9.0.ebuild 
b/dev-python/wcmatch/wcmatch-9.0.ebuild
new file mode 100644
index 000000000000..31f842037d84
--- /dev/null
+++ b/dev-python/wcmatch/wcmatch-9.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+PYTHON_COMPAT=( python3_{10..13} )
+DISTUTILS_USE_PEP517=hatchling
+
+DOCS_BUILDER="mkdocs"
+DOCS_DEPEND="
+       >=dev-python/mkdocs-pymdownx-material-extras-2.0
+       dev-python/mkdocs-material
+       dev-python/mkdocs-git-revision-date-localized-plugin
+       dev-python/mkdocs-minify-plugin
+       dev-python/pyspelling
+"
+
+inherit distutils-r1 docs
+
+DESCRIPTION="Wildcard/glob file name matcher"
+HOMEPAGE="
+       https://github.com/facelessuser/wcmatch/
+       https://pypi.org/project/wcmatch/
+"
+SRC_URI="
+       https://github.com/facelessuser/wcmatch/archive/${PV}.tar.gz
+               -> ${P}.gh.tar.gz
+"
+
+LICENSE="MIT"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~riscv ~x86"
+
+RDEPEND="
+       >=dev-python/bracex-2.1.1[${PYTHON_USEDEP}]
+"
+
+BDEPEND="
+       test? (
+               dev-vcs/git
+       )
+"
+
+distutils_enable_tests pytest
+
+python_prepare_all() {
+       # tests require some files in homedir
+       > "${HOME}"/test1.txt || die
+       > "${HOME}"/test2.txt || die
+
+       # mkdocs-git-revision-date-localized-plugin needs git repo
+       if use doc; then
+               git init || die
+               git config --global user.email "[email protected]" || die
+               git config --global user.name "Larry the Cow" || die
+               git add . || die
+               git commit -m 'init' || die
+       fi
+
+       distutils-r1_python_prepare_all
+}

Reply via email to