mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-14 00:16:59 +02:00
dev-python/jaraco-text: Sync with Gentoo
It's from Gentoo commit 710dfbbfb19eacd489afba80faf047f64fea5946.
This commit is contained in:
parent
4af5183d5b
commit
e42ebd6735
@ -1 +1,2 @@
|
|||||||
DIST jaraco.text-3.7.0.tar.gz 12054 BLAKE2B 54528808695e2f1f04165e3de42d1715bb3e3ee1450ee8d8759814d209ba98c181d1746a916816dd50703e5a4e26ad7986f389619324ffbabaa89be90fd3908c SHA512 559dc5ed0f2c0b46dd0cbbc112ab01bbdb68bc12923cff8f745a5e233696ca9f50cef6dbf60116df5121f4761457574deebea142c2a23ca6c4664d7395b5607e
|
DIST jaraco.text-3.11.0.tar.gz 15883 BLAKE2B f0f3fe33901a68741cb26270384750f070476ef921bf2822f81dddfc1c66e41016757579e310bd20fc8a7f02b188de96f07bf58db41cca51252e46ebbbddcff9 SHA512 ad3ac412df5e21cef86dc56cdc869a93a660a103a676c1d187e5ea762690b89d61c8f68994e6a891e3d98071b440a052fad60a37f71066e4e11a2cfaf45ae009
|
||||||
|
DIST jaraco.text-3.11.1.tar.gz 16083 BLAKE2B f7268128209fbdc849a745595339f4dc9a097f3f4f8f0cdcb05ca3106ed5a45460126fbb2b7d9c3b01b63aa3f750175e8cd366034183b7d8804a1650fe493e4b SHA512 b4066589e9d4c9a2a82ae2b0825d34b22b93ee179d29c3666e9b978390121520afcb8fc5ffa6457022d2e8477f4cf2b76485d9896438ee46275326577609f201
|
||||||
|
@ -1,35 +1,50 @@
|
|||||||
# Copyright 1999-2022 Gentoo Authors
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
# Distributed under the terms of the GNU General Public License v2
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
|
# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
|
||||||
EAPI=7
|
EAPI=7
|
||||||
|
|
||||||
DISTUTILS_USE_PEP517=flit
|
DISTUTILS_USE_PEP517=flit
|
||||||
PYTHON_COMPAT=( python3_{8..11} pypy3 )
|
PYTHON_COMPAT=( python3_{9..11} pypy3 )
|
||||||
|
|
||||||
inherit distutils-r1
|
inherit distutils-r1
|
||||||
|
|
||||||
MY_P=${P/-/.}
|
MY_P=${P/-/.}
|
||||||
DESCRIPTION="Text utilities used by other projects by developer jaraco"
|
DESCRIPTION="Text utilities used by other projects by developer jaraco"
|
||||||
HOMEPAGE="https://github.com/jaraco/jaraco.text"
|
HOMEPAGE="
|
||||||
|
https://github.com/jaraco/jaraco.text/
|
||||||
|
https://pypi.org/project/jaraco.text/
|
||||||
|
"
|
||||||
SRC_URI="mirror://pypi/${PN:0:1}/${PN/-/.}/${MY_P}.tar.gz"
|
SRC_URI="mirror://pypi/${PN:0:1}/${PN/-/.}/${MY_P}.tar.gz"
|
||||||
S=${WORKDIR}/${MY_P}
|
S=${WORKDIR}/${MY_P}
|
||||||
|
|
||||||
LICENSE="MIT"
|
LICENSE="MIT"
|
||||||
SLOT="0"
|
SLOT="0"
|
||||||
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris"
|
KEYWORDS="~alpha amd64 arm arm64 hppa ~ia64 ~loong ~m68k ~mips ppc ppc64 ~riscv ~s390 sparc x86"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
>=dev-python/jaraco-context-4.1.1-r1[${PYTHON_USEDEP}]
|
>=dev-python/jaraco-context-4.1.1-r1[${PYTHON_USEDEP}]
|
||||||
>=dev-python/jaraco-functools-3.5.0-r1[${PYTHON_USEDEP}]
|
>=dev-python/jaraco-functools-3.5.0-r1[${PYTHON_USEDEP}]
|
||||||
$(python_gen_cond_dep '
|
$(python_gen_cond_dep '
|
||||||
>=dev-python/importlib_resources-5.4.0-r3[${PYTHON_USEDEP}]
|
>=dev-python/importlib_resources-5.4.0-r3[${PYTHON_USEDEP}]
|
||||||
' python3_8 pypy3)
|
' 3.8)
|
||||||
|
"
|
||||||
|
# needed only for CLI tool, make it PDEPEND to reduce pain in setuptools
|
||||||
|
# bootstrap
|
||||||
|
PDEPEND="
|
||||||
|
dev-python/autocommand[${PYTHON_USEDEP}]
|
||||||
|
dev-python/inflect[${PYTHON_USEDEP}]
|
||||||
|
dev-python/more-itertools[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
${PDEPEND}
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/pathlib2[${PYTHON_USEDEP}]
|
||||||
|
' 3.8 3.9)
|
||||||
|
)
|
||||||
"
|
"
|
||||||
|
|
||||||
distutils_enable_sphinx docs \
|
|
||||||
">=dev-python/jaraco-packaging-3.2" \
|
|
||||||
">=dev-python/rst-linker-1.9"
|
|
||||||
distutils_enable_tests pytest
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
src_configure() {
|
src_configure() {
|
70
sdk_container/src/third_party/portage-stable/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild
vendored
Normal file
70
sdk_container/src/third_party/portage-stable/dev-python/jaraco-text/jaraco-text-3.11.1.ebuild
vendored
Normal file
@ -0,0 +1,70 @@
|
|||||||
|
# Copyright 1999-2023 Gentoo Authors
|
||||||
|
# Distributed under the terms of the GNU General Public License v2
|
||||||
|
|
||||||
|
# please keep this ebuild at EAPI 7 -- sys-apps/portage dep
|
||||||
|
EAPI=7
|
||||||
|
|
||||||
|
DISTUTILS_USE_PEP517=flit
|
||||||
|
PYTHON_COMPAT=( python3_{9..11} pypy3 )
|
||||||
|
|
||||||
|
inherit distutils-r1 pypi
|
||||||
|
|
||||||
|
DESCRIPTION="Text utilities used by other projects by developer jaraco"
|
||||||
|
HOMEPAGE="
|
||||||
|
https://github.com/jaraco/jaraco.text/
|
||||||
|
https://pypi.org/project/jaraco.text/
|
||||||
|
"
|
||||||
|
SRC_URI="$(pypi_sdist_url --no-normalize "${PN/-/.}")"
|
||||||
|
S=${WORKDIR}/${P/-/.}
|
||||||
|
|
||||||
|
LICENSE="MIT"
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
|
||||||
|
|
||||||
|
RDEPEND="
|
||||||
|
>=dev-python/jaraco-context-4.1.1-r1[${PYTHON_USEDEP}]
|
||||||
|
>=dev-python/jaraco-functools-3.5.0-r1[${PYTHON_USEDEP}]
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
>=dev-python/importlib_resources-5.4.0-r3[${PYTHON_USEDEP}]
|
||||||
|
' 3.8)
|
||||||
|
"
|
||||||
|
# needed only for CLI tool, make it PDEPEND to reduce pain in setuptools
|
||||||
|
# bootstrap
|
||||||
|
PDEPEND="
|
||||||
|
dev-python/autocommand[${PYTHON_USEDEP}]
|
||||||
|
dev-python/inflect[${PYTHON_USEDEP}]
|
||||||
|
dev-python/more-itertools[${PYTHON_USEDEP}]
|
||||||
|
"
|
||||||
|
BDEPEND="
|
||||||
|
test? (
|
||||||
|
${PDEPEND}
|
||||||
|
$(python_gen_cond_dep '
|
||||||
|
dev-python/pathlib2[${PYTHON_USEDEP}]
|
||||||
|
' 3.8 3.9)
|
||||||
|
)
|
||||||
|
"
|
||||||
|
|
||||||
|
distutils_enable_tests pytest
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
grep -q 'build-backend = "setuptools' pyproject.toml ||
|
||||||
|
die "Upstream changed build-backend, recheck"
|
||||||
|
# write a custom pyproject.toml to ease setuptools bootstrap
|
||||||
|
cat > pyproject.toml <<-EOF || die
|
||||||
|
[build-system]
|
||||||
|
requires = ["flit_core >=3.2,<4"]
|
||||||
|
build-backend = "flit_core.buildapi"
|
||||||
|
|
||||||
|
[project]
|
||||||
|
name = "jaraco.text"
|
||||||
|
version = "${PV}"
|
||||||
|
description = "Module for text manipulation"
|
||||||
|
EOF
|
||||||
|
}
|
||||||
|
|
||||||
|
python_install() {
|
||||||
|
distutils-r1_python_install
|
||||||
|
# rename to workaround a bug in pkg_resources
|
||||||
|
# https://bugs.gentoo.org/834522
|
||||||
|
mv "${D}$(python_get_sitedir)"/jaraco{_,.}text-${PV}.dist-info || die
|
||||||
|
}
|
@ -1,10 +1,6 @@
|
|||||||
<?xml version="1.0" encoding="UTF-8"?>
|
<?xml version="1.0" encoding="UTF-8"?>
|
||||||
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
|
||||||
<pkgmetadata>
|
<pkgmetadata>
|
||||||
<maintainer type="person">
|
|
||||||
<email>sbraz@gentoo.org</email>
|
|
||||||
<name>Louis Sautier</name>
|
|
||||||
</maintainer>
|
|
||||||
<maintainer type="project">
|
<maintainer type="project">
|
||||||
<email>python@gentoo.org</email>
|
<email>python@gentoo.org</email>
|
||||||
<name>Python</name>
|
<name>Python</name>
|
||||||
|
Loading…
Reference in New Issue
Block a user