diff options
Diffstat (limited to 'app-misc/yq')
-rw-r--r-- | app-misc/yq/Manifest | 2 | ||||
-rw-r--r-- | app-misc/yq/yq-3.1.0.ebuild | 50 |
2 files changed, 52 insertions, 0 deletions
diff --git a/app-misc/yq/Manifest b/app-misc/yq/Manifest index 7d04eb015a96..6b49aee46b3b 100644 --- a/app-misc/yq/Manifest +++ b/app-misc/yq/Manifest @@ -2,7 +2,9 @@ AUX yq-2.13.0-tests.patch 746 BLAKE2B 0d769a32a3e80cdc8a49e0f3575ab9da880bb0a916 DIST yq-2.13.0.tar.gz 21695 BLAKE2B e6d75cde2c298c19616647aeb14f1e34b1a68bb4db1b7e6f4e2619166ef10142ebd405d3c21492e4f5880c46a8d42222ce22b08afec492e97102923e6b838e2d SHA512 fd2722450606175b7d6674407c992f1f542b8b2309fcb33d4eb7d6e3dbc6dbc9e04b3dae7c4c649d814fdffaa18cbd50472672f1d1357fc58c5306de082b353a DIST yq-2.14.0.tar.gz 28030 BLAKE2B 07e200524390e938705854c5d1ac4921fbc8f165cdbf8152e36124e52a1c51c70d6d711b67a3dac8c2bbf1f75040466e8d94505aa5f19e388a31bbcdc92e91bd SHA512 77d5d9cefc70fae9f2606434e11c3b14facb68113f6f99017f87acc860684a1b7a94ecf01514e8fa85a6d9cc860df926e13d1ac5bec160e7d057074d758d1d34 DIST yq-3.0.2.tar.gz 28939 BLAKE2B 146fe302064db21ae3d93224875bb49a49a3392e4be3acb9265c6bac98b754f5e75910e03b9ce0c3f5eaa19dbf959144d9443f24ecb5ecec9382cd85d7d03e8f SHA512 228b8390c6429381cefed32327e502d0f975cd4c3bf7918efad7e8119b5a93b4ff1216fd35117eed46b8282ec6a7314ae1a15028deab45aa3fc2cb5b6d86a777 +DIST yq-3.1.0.tar.gz 29627 BLAKE2B 9ebeec400462788613b256a29c9706f4d6a06ced8a86b72ce6128cea6bdf258a62ff18b643cea00d5170f68af798d28af324b3908fc3fdea83329bc5feaa5539 SHA512 bb55a9fde5c072d2341faacd76c54d7374fcc70789ddae4d06e36fd48d7ebd6462c8bff13042c39c3fedf191d70752fa2f94af3c69f52f754bca83c3f1f89004 EBUILD yq-2.13.0.ebuild 1130 BLAKE2B 0fb7c0e006fce21126bb1316691dd56b5421cdd43f0224ce6f1372d4e1b23b541b6a6d9efee718bb63ce5fd48dbf9a089a68320316b05ed8cf1136cde409e57f SHA512 a46165b9afb3934b7039fe60dcf2d0fbd1120c3874213c01fc0ad9cf79c0814bd64b22e8efd4ae654e9ad1e6ed623c0ba69084276c9c740bceb8318faa3ddcd0 EBUILD yq-2.14.0.ebuild 1130 BLAKE2B d67a0d8e1d1c2eab79cd6cad599268229d046a3618b8e85976dca3ecfc06c04259dbcd477352d23e32a48bb719ed79a2c9496169431b50d8a68bc3e7306300df SHA512 6777aef91d79de4c235517d6826bf938be679fe5c1c9a1a04e4c95763ec1928b8201c6048612f7389af35a7aa4b1bb00441fbe89eea57248ae4985a8e64cd22c EBUILD yq-3.0.2.ebuild 1181 BLAKE2B 9ef937bfb82a7ea017c4ee067fd56b779372003045cad9360f43a48dd8ba0ea749ec9861a8e7ccbc8641e6c764d74310ceeeb66c28f10ac84613c85ffa7667d3 SHA512 73547c8667e68c0cee6411dac892fbfe68921b2b67742c1ca9c710dcf9a910f348b8063e6c7fb87a4c9944e37c12b5b4e3519176ea2772056f77c1bbd39df63d +EBUILD yq-3.1.0.ebuild 1181 BLAKE2B 9ef937bfb82a7ea017c4ee067fd56b779372003045cad9360f43a48dd8ba0ea749ec9861a8e7ccbc8641e6c764d74310ceeeb66c28f10ac84613c85ffa7667d3 SHA512 73547c8667e68c0cee6411dac892fbfe68921b2b67742c1ca9c710dcf9a910f348b8063e6c7fb87a4c9944e37c12b5b4e3519176ea2772056f77c1bbd39df63d MISC metadata.xml 444 BLAKE2B 43250e8368905e7c7613ef6d9555abe4ee58c5d88f1d94dc2fc6d26c99cc71e0253ed830e82356a7cae131c0d8d70397da5e5c6fac41a11a4ed5f18879a4aaba SHA512 f14ad6182b3a82311473ff28308f9f435c2a9ecbf2f1fae996f82366d7547421923c2cebfe255574c3bc57b3d3774ed19bd896b6dda5be1d919d372e1428a143 diff --git a/app-misc/yq/yq-3.1.0.ebuild b/app-misc/yq/yq-3.1.0.ebuild new file mode 100644 index 000000000000..1a8f2da5f32d --- /dev/null +++ b/app-misc/yq/yq-3.1.0.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +PYTHON_COMPAT=( python3_{9..11} pypy3 ) + +inherit distutils-r1 + +DESCRIPTION="Command-line YAML processor - jq wrapper for YAML documents" +HOMEPAGE="https://yq.readthedocs.io/ https://github.com/kislyuk/yq/ https://pypi.org/project/yq/" +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz" +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" +IUSE="test" +RESTRICT="!test? ( test )" + +RDEPEND=" + app-misc/jq + dev-python/argcomplete[${PYTHON_USEDEP}] + >=dev-python/pyyaml-5.3.1[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + dev-python/xmltodict[${PYTHON_USEDEP}] +" +DEPEND=" + ${RDEPEND} + test? ( + dev-python/wheel[${PYTHON_USEDEP}] + ) +" + +PATCHES=( + "${FILESDIR}/yq-2.13.0-tests.patch" +) + +python_prepare_all() { + sed -e 's:unittest.main():unittest.main(verbosity=2):' \ + -i test/test.py || die + + sed -r -e 's:[[:space:]]*"coverage",:: ; s:[[:space:]]*"flake8",::' \ + -i setup.py || die + + sed -e '/license_file/ d' -i setup.cfg || die + + distutils-r1_python_prepare_all +} + +python_test() { + "${EPYTHON}" test/test.py </dev/null || die "tests failed under ${EPYTHON}" +} |