diff options
Diffstat (limited to 'dev-python/pyyaml')
-rw-r--r-- | dev-python/pyyaml/Manifest | 2 | ||||
-rw-r--r-- | dev-python/pyyaml/pyyaml-5.4.1.ebuild | 49 |
2 files changed, 51 insertions, 0 deletions
diff --git a/dev-python/pyyaml/Manifest b/dev-python/pyyaml/Manifest index 4eb5b417b054..c74131779ecb 100644 --- a/dev-python/pyyaml/Manifest +++ b/dev-python/pyyaml/Manifest @@ -1,4 +1,6 @@ AUX pyyaml-5.1-cve-2017-18342.patch 1420 BLAKE2B bf053ed121355aea1e44f9bd29b22c9afbca7b99b68e59a6e213d2723531044049964dcb20dbc036ee27ae8bcc2c26e317cf080637e611fa0105a9d451496125 SHA512 8e7737761555d851b21ca61128d2ced4163d446acb87510b6962a20dc217923bcf835d70224c9e721486351e0aeb57f9f3c570b57086a0a00c3e8ac656a458c5 DIST pyyaml-5.3.1.gh.tar.gz 168044 BLAKE2B 2acc62ecc7448925eb340c2555001c8a74bd883d720b992d6deaea890b4eac435e4ae02eb129db3a6778c0be21a231fa9d96ee8ae59a4a39bc49961e5fb0d6ab SHA512 27d97e8493c7660c7c0c471e20a8aa46c85431e4559a98bcbdafc2bd89a67fd04c6f2090e54ff6b206c868b33635ef8be68070a4c25d17a25c97fd5ad3549556 +DIST pyyaml-5.4.1.gh.tar.gz 173319 BLAKE2B b81cdec32588a419840dd536a2d8addb41eec3e20897f6c464a00a5badb4d6eed9b34b4f95146695187e7d9bcf2d03b81e884290c6dc47927be6192dfdb21eab SHA512 691e54fd9ca01fdc0dcb7de03ddd1970614d92a716c2437032999f9001f90a2ebbcc195a49bfdbe54da0f7a63178c83b02b05b18b5b1024127013f004d1f5997 EBUILD pyyaml-5.3.1-r1.ebuild 1140 BLAKE2B d640408407aba0bb7341bb16971fc395b689182f5259e8fca6a85894dddae7b735fdf1f06e7d4bd7a3ce486da13ee55a74af8f68d40de023c43f87558e8e3d98 SHA512 dd3d98e0679413a19ae9e175fba56d70fb31438a15057a2edfdf4b3d49a41e18299ac2ce23b924350782d15df706320a9085ef64cc19796e368164df3f397372 +EBUILD pyyaml-5.4.1.ebuild 1160 BLAKE2B 9bf10945763ad9197da61b3c7bf75869dcc7f6967136b44c5b06ba9b31a90442407870685a6a9ef32e7095ed58da5c45c3616987ada518e4c1b78d57b5bed272 SHA512 1e01a1eecfd7af07293b131d639e6473543e771e21b96efd9d9cc5c97a2ddab6c8f64e4bff5628c813fdc325aba257091817f66ecbca672ae7615a5bf372f348 MISC metadata.xml 520 BLAKE2B 8f0f43fa8b2f79c8970f287ab37db254adf15c48374e2edf0a707bd56e39748cb9930b011bba934eb6d5a5d56b7869430ccfd39d876b3889ea7ec48e6acc3ea8 SHA512 48a55e071474d74f27f50f2928b2f1fe3c12848ddb2c32de2339396db3355805938ae0b01487328210262f0a309996172301cdc6c80d925e33765e98240ffd7c diff --git a/dev-python/pyyaml/pyyaml-5.4.1.ebuild b/dev-python/pyyaml/pyyaml-5.4.1.ebuild new file mode 100644 index 000000000000..b742a2bbf6a4 --- /dev/null +++ b/dev-python/pyyaml/pyyaml-5.4.1.ebuild @@ -0,0 +1,49 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DISTUTILS_USE_SETUPTOOLS=no +PYTHON_COMPAT=( python3_{7..9} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="YAML parser and emitter for Python" +HOMEPAGE="https://pyyaml.org/wiki/PyYAML + https://pypi.org/project/PyYAML/ + https://github.com/yaml/pyyaml" +SRC_URI="https://github.com/yaml/pyyaml/archive/${PV}.tar.gz -> ${P}.gh.tar.gz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~alpha amd64 ~arm ~arm64 ~hppa ~ia64 ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86 ~x64-cygwin ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x64-solaris ~x86-solaris" +IUSE="examples +libyaml" + +BDEPEND=" + libyaml? ( + $(python_gen_cond_dep ' + dev-python/cython[${PYTHON_USEDEP}] + ' 'python*') + ) +" +RDEPEND="libyaml? ( dev-libs/libyaml:= )" +DEPEND="${RDEPEND}" + +PATCHES=( + # bug #659348 + "${FILESDIR}/pyyaml-5.1-cve-2017-18342.patch" +) + +distutils_enable_tests setup.py + +python_configure_all() { + mydistutilsargs=( $(use_with libyaml) ) +} + +python_install_all() { + distutils-r1_python_install_all + if use examples; then + dodoc -r examples + docompress -x /usr/share/doc/${PF} + fi +} |