commit:     e93d1fee89b2276e74ab81d966651833a4a875e3
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Mon Jun 14 02:10:36 2021 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Mon Jun 14 02:31:30 2021 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e93d1fee

app-misc/jpipe: Initial import

Package-Manager: Portage-3.0.20, Repoman-3.0.3
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 app-misc/jpipe/Manifest           |  1 +
 app-misc/jpipe/jpipe-0.0.1.ebuild | 31 +++++++++++++++++++++++++++++++
 app-misc/jpipe/metadata.xml       | 16 ++++++++++++++++
 3 files changed, 48 insertions(+)

diff --git a/app-misc/jpipe/Manifest b/app-misc/jpipe/Manifest
new file mode 100644
index 00000000000..e44ddc0001d
--- /dev/null
+++ b/app-misc/jpipe/Manifest
@@ -0,0 +1 @@
+DIST jpipe-0.0.1.tar.gz 4567 BLAKE2B 
0c33e36ed03373ef2a030aa2ac0ecc6e05c0683f04bf4c96eeec0cc07b75a16e3c805bc9c59b6cf7fd6aa9e65dc639dbc1e496d4084bb4b74835ea0c3043c8be
 SHA512 
8cd7f9ff5138f55c13497a0059d32fdde6d6e698020e9ea231ed0431e76e97b2769f781e8a58ec636cadfe110f84f940161cbfa212cfa2f805e18e92a7e0d310

diff --git a/app-misc/jpipe/jpipe-0.0.1.ebuild 
b/app-misc/jpipe/jpipe-0.0.1.ebuild
new file mode 100644
index 00000000000..0ac556bbf2b
--- /dev/null
+++ b/app-misc/jpipe/jpipe-0.0.1.ebuild
@@ -0,0 +1,31 @@
+# Copyright 2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+DISTUTILS_USE_SETUPTOOLS=rdepend
+PYTHON_COMPAT=( python3_{7,8,9} )
+
+inherit distutils-r1
+
+DESCRIPTION="A python implementation of the jp CLI for JMESPath"
+HOMEPAGE="https://github.com/pipebus/jpipe";
+SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
+
+LICENSE="Apache-2.0"
+KEYWORDS="~amd64"
+SLOT="0"
+IUSE="jp-symlink test"
+RESTRICT="!test? ( test )"
+RDEPEND="
+       jp-symlink? ( !app-misc/jp )
+       dev-python/jmespath[${PYTHON_USEDEP}]
+"
+
+python_test() {
+       "${PYTHON}" test/test_jpipe.py || die "tests failed for ${EPYTHON}"
+}
+
+src_install() {
+       distutils-r1_src_install
+       use jp-symlink && dosym jpipe /usr/bin/jp
+}

diff --git a/app-misc/jpipe/metadata.xml b/app-misc/jpipe/metadata.xml
new file mode 100644
index 00000000000..0f6af2e7dae
--- /dev/null
+++ b/app-misc/jpipe/metadata.xml
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+       <upstream>
+               <remote-id type="github">pipebus/jpipe</remote-id>
+               <remote-id type="pypi">jpipe</remote-id>
+       </upstream>
+       <maintainer type="person">
+               <email>[email protected]</email>
+       </maintainer>
+       <use>
+               <flag name="jp-symlink">
+                       Install a jp symlink that points to jpipe.
+               </flag>
+       </use>
+</pkgmetadata>

Reply via email to