summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2021-06-13 19:10:36 -0700
committerZac Medico <zmedico@gentoo.org>2021-06-13 19:31:30 -0700
commite93d1fee89b2276e74ab81d966651833a4a875e3 (patch)
tree46ca5bd029a7a0d7bc0ac8089687ae357124e3ae /app-misc
parentx11-misc/xscreensaver: Drop unused patch (diff)
downloadgentoo-e93d1fee89b2276e74ab81d966651833a4a875e3.tar.gz
gentoo-e93d1fee89b2276e74ab81d966651833a4a875e3.tar.bz2
gentoo-e93d1fee89b2276e74ab81d966651833a4a875e3.zip
app-misc/jpipe: Initial import
Package-Manager: Portage-3.0.20, Repoman-3.0.3 Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-misc')
-rw-r--r--app-misc/jpipe/Manifest1
-rw-r--r--app-misc/jpipe/jpipe-0.0.1.ebuild31
-rw-r--r--app-misc/jpipe/metadata.xml16
3 files changed, 48 insertions, 0 deletions
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>zmedico@gentoo.org</email>
+ </maintainer>
+ <use>
+ <flag name="jp-symlink">
+ Install a jp symlink that points to jpipe.
+ </flag>
+ </use>
+</pkgmetadata>