app-misc/yq: add package
authorZac Medico <zmedico@gentoo.org>
Tue, 27 Jun 2017 20:25:07 +0000 (13:25 -0700)
committerZac Medico <zmedico@gentoo.org>
Tue, 27 Jun 2017 20:27:41 +0000 (13:27 -0700)
Package-Manager: Portage-2.3.6, Repoman-2.3.2

app-misc/yq/Manifest [new file with mode: 0644]
app-misc/yq/metadata.xml [new file with mode: 0644]
app-misc/yq/yq-2.1.2.ebuild [new file with mode: 0644]

diff --git a/app-misc/yq/Manifest b/app-misc/yq/Manifest
new file mode 100644 (file)
index 0000000..0e2c8a0
--- /dev/null
@@ -0,0 +1 @@
+DIST yq-2.1.2.tar.gz 4704 SHA256 daa2fcde26220382527c68bac353a7d972d81ea4f348d20eea3ffa981991f8dc SHA512 88f32e58aacd82deb06deee6910f5a145e54d20829f438cd47248d560119dd8112e0813ea8d55708664ac29ef011bbc3fd6b882e1c538ef44aaa9aa119584e99 WHIRLPOOL 5fd88627fafdd03318baab0b99aae4c980e8b1517808aa700c0be60e6bda61d655072bf60ce01435b5299108ae253f76b68858a9f990bb144616c4efae7e3a41
diff --git a/app-misc/yq/metadata.xml b/app-misc/yq/metadata.xml
new file mode 100644 (file)
index 0000000..37885ef
--- /dev/null
@@ -0,0 +1,11 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+       <upstream>
+               <remote-id type="pypi">yq</remote-id>
+               <remote-id type="github">kislyuk/yq</remote-id>
+       </upstream>
+       <maintainer type="person">
+               <email>zmedico@gentoo.org</email>
+       </maintainer>
+</pkgmetadata>
diff --git a/app-misc/yq/yq-2.1.2.ebuild b/app-misc/yq/yq-2.1.2.ebuild
new file mode 100644 (file)
index 0000000..d8a9cfb
--- /dev/null
@@ -0,0 +1,24 @@
+# Copyright 1999-2017 Gentoo Foundation
+# 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://${PN}.readthedocs.io/ https://github.com/kislyuk/${PN}/ https://pypi.python.org/pypi/${PN}"
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+LICENSE="Apache-2.0"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE=""
+
+RDEPEND="app-misc/jq
+       >=dev-python/pyyaml-3.11[${PYTHON_USEDEP}]"
+DEPEND="${RDEPEND}
+       dev-python/setuptools[${PYTHON_USEDEP}]"
+
+python_test() {
+       ./test/test.py || die
+}