diff options
author | Zac Medico <zmedico@gentoo.org> | 2018-12-06 13:17:32 -0800 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2018-12-06 13:21:05 -0800 |
commit | 1643225e64ae10aa27a893f69aa987de080d976f (patch) | |
tree | fa65e397808f4e940782828ea7d73c0e1301e63e /app-misc/yq | |
parent | sci-misc/boinc: Add -9999 live version (diff) | |
download | gentoo-1643225e64ae10aa27a893f69aa987de080d976f.tar.gz gentoo-1643225e64ae10aa27a893f69aa987de080d976f.tar.bz2 gentoo-1643225e64ae10aa27a893f69aa987de080d976f.zip |
app-misc/yq: version bump to 2.7.1
Reported-by: Fabio Coatti <fabio.coatti@gmail.com>
Closes: https://bugs.gentoo.org/672630
Package-Manager: Portage-2.3.52, Repoman-2.3.12
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-misc/yq')
-rw-r--r-- | app-misc/yq/Manifest | 1 | ||||
-rw-r--r-- | app-misc/yq/yq-2.7.1.ebuild | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/app-misc/yq/Manifest b/app-misc/yq/Manifest index 2b126905f9c9..35ca0305c426 100644 --- a/app-misc/yq/Manifest +++ b/app-misc/yq/Manifest @@ -1 +1,2 @@ DIST yq-2.3.4.tar.gz 5657 BLAKE2B d7e6a37ed157ff2a23b648a54cf729cda1413a627f1169ba938ae89d4bd175270cdc5fa39ca5ea3c31d55d562439296bcce391cb22cd2faccc5f545f2577a12d SHA512 ea530d3f501a8697474b1b77644fdf439326e49fbae158a862e58fba6f939ee5f3ba50f82cc5e990b1ed05c4e7aa9c205635290e6d2507d46e53b68ee467d5e1 +DIST yq-2.7.1.tar.gz 13794 BLAKE2B 87fe4961974ab41fc14efb7b85c3db5c13577593253eb236c445f59e4034ce5211173cbdd1680e8b83394068ebcc99962f9f3b7c1cd36a4554aa2769b0a5ce66 SHA512 ad76f6102cdb7b0cc82d57c8120dfe10221b7d7456c4c3dd6e5ed0630d9ab178099f4ee8bfc075f15eb4b35aaef4237fcb0ef01a769a612632b4ef774da2b50a diff --git a/app-misc/yq/yq-2.7.1.ebuild b/app-misc/yq/yq-2.7.1.ebuild new file mode 100644 index 000000000000..f9e810469206 --- /dev/null +++ b/app-misc/yq/yq-2.7.1.ebuild @@ -0,0 +1,37 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 +PYTHON_COMPAT=( python2_7 python3_{4,5,6} ) + +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" + +RDEPEND="app-misc/jq + >=dev-python/pyyaml-3.11[${PYTHON_USEDEP}] + dev-python/setuptools[${PYTHON_USEDEP}]" +DEPEND="${RDEPEND} + test? ( + dev-python/coverage[${PYTHON_USEDEP}] + dev-python/flake8[${PYTHON_USEDEP}] + dev-python/toml[${PYTHON_USEDEP}] + dev-python/wheel[${PYTHON_USEDEP}] + dev-python/xmltodict[${PYTHON_USEDEP}] + )" + +python_prepare_all() { + distutils-r1_python_prepare_all + sed -e 's:unittest.main():unittest.main(verbosity=2):' \ + -i test/test.py || die +} + +python_test() { + ./test/test.py || die "tests failed under ${EPYTHON}" +} |