diff options
Diffstat (limited to 'app-misc/yq')
-rw-r--r-- | app-misc/yq/Manifest | 1 | ||||
-rw-r--r-- | app-misc/yq/yq-2.9.2-r1.ebuild | 40 |
2 files changed, 41 insertions, 0 deletions
diff --git a/app-misc/yq/Manifest b/app-misc/yq/Manifest index a0b0a370c900..22741a16367b 100644 --- a/app-misc/yq/Manifest +++ b/app-misc/yq/Manifest @@ -5,5 +5,6 @@ DIST yq-2.9.2.tar.gz 19177 BLAKE2B 038d813679d3583eb863577f317d834f78f614d6be595 EBUILD yq-2.7.1-r1.ebuild 1040 BLAKE2B 80231ec21baf9658fe95f86480247de9e52d593f0feff7293527579660c2e4058c273705c7f208536d53eb1ad1233caafc48ccad6a16dc8c9631b0567fc7003b SHA512 dd87aefcabf4e64e8422031c12faa8d32777f54f96354cff6f637d14636809884109797c04ed2753a9ecfacbe77509a8dcc1abef5b53ee582f02b7f0cbb425cc EBUILD yq-2.7.2.ebuild 1042 BLAKE2B 05dec9e4403dca31150a0139557e51d724219f79e7bc5f70ec3063aebc58ec3476bb10cc43ce9f4ea605f626d2b96ee4749b7c6cf924ee36f9f9ff40a38df761 SHA512 36862a0d905d67f5fd3efe001e993d27d95cf5ee630a549049318f36aec3e32e2f4e60c7d4ecc0800bb08a05d77ff9c23e19188a427384236cdf7d5b0c5c7428 EBUILD yq-2.8.0.ebuild 1042 BLAKE2B 05dec9e4403dca31150a0139557e51d724219f79e7bc5f70ec3063aebc58ec3476bb10cc43ce9f4ea605f626d2b96ee4749b7c6cf924ee36f9f9ff40a38df761 SHA512 36862a0d905d67f5fd3efe001e993d27d95cf5ee630a549049318f36aec3e32e2f4e60c7d4ecc0800bb08a05d77ff9c23e19188a427384236cdf7d5b0c5c7428 +EBUILD yq-2.9.2-r1.ebuild 1077 BLAKE2B 14ceac5acdca2c7816ae1c0d11d4be974e26430ae71b1daff5099bb529aa4bf9fabac42e956854abece6c804d8d9945978c31f241bbc00e847996586587d4e51 SHA512 e8748cb120758b074bdb9d798e4e5860d2f538ea8370a7fa6f23f380b0809317713083f0e65b30f4c54b6fbc8f819074d539dc02de4efeb06497c217adedbc06 EBUILD yq-2.9.2.ebuild 1042 BLAKE2B 05dec9e4403dca31150a0139557e51d724219f79e7bc5f70ec3063aebc58ec3476bb10cc43ce9f4ea605f626d2b96ee4749b7c6cf924ee36f9f9ff40a38df761 SHA512 36862a0d905d67f5fd3efe001e993d27d95cf5ee630a549049318f36aec3e32e2f4e60c7d4ecc0800bb08a05d77ff9c23e19188a427384236cdf7d5b0c5c7428 MISC metadata.xml 333 BLAKE2B 25cb1f46ef4320b5b01b23bec540f623f53be1ee4b0a1d3d9c20cdd90185b88d8f9d5fecefbd15abeca1a861e2863123d15e89e40aa3cdbbd1c56fefa71105f4 SHA512 2cb6c56e50e0d436f37c090549cdeb0c4b1fba34b8049c90ccf24f44aaefddd87bd8e6260a8e645df2c8e2bb1f28c305ae353f1a86e2992a2c987936c4caa416 diff --git a/app-misc/yq/yq-2.9.2-r1.ebuild b/app-misc/yq/yq-2.9.2-r1.ebuild new file mode 100644 index 000000000000..b365f59085cb --- /dev/null +++ b/app-misc/yq/yq-2.9.2-r1.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +PYTHON_COMPAT=( python2_7 python3_{5,6,7,8} pypy{,3} ) + +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/pyyaml-3.11[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}] + dev-python/xmltodict[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( + dev-python/toml[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + )" + +python_prepare_all() { + sed -e 's:unittest.main():unittest.main(verbosity=2):' \ + -i test/test.py || die + + sed -r -i 's:[[:space:]]*"coverage",:: ; s:[[:space:]]*"flake8",::' \ + setup.py || die + + distutils-r1_python_prepare_all +} + +python_test() { + "${EPYTHON}" test/test.py || die "tests failed under ${EPYTHON}" +} |