Gentoo Archives: gentoo-commits

From: Zac Medico <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/jpipe/
Date: Mon, 14 Jun 2021 02:34:42
Message-Id: 1623637890.e93d1fee89b2276e74ab81d966651833a4a875e3.zmedico@gentoo
1 commit: e93d1fee89b2276e74ab81d966651833a4a875e3
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 14 02:10:36 2021 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Mon Jun 14 02:31:30 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e93d1fee
7
8 app-misc/jpipe: Initial import
9
10 Package-Manager: Portage-3.0.20, Repoman-3.0.3
11 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
12
13 app-misc/jpipe/Manifest | 1 +
14 app-misc/jpipe/jpipe-0.0.1.ebuild | 31 +++++++++++++++++++++++++++++++
15 app-misc/jpipe/metadata.xml | 16 ++++++++++++++++
16 3 files changed, 48 insertions(+)
17
18 diff --git a/app-misc/jpipe/Manifest b/app-misc/jpipe/Manifest
19 new file mode 100644
20 index 00000000000..e44ddc0001d
21 --- /dev/null
22 +++ b/app-misc/jpipe/Manifest
23 @@ -0,0 +1 @@
24 +DIST jpipe-0.0.1.tar.gz 4567 BLAKE2B 0c33e36ed03373ef2a030aa2ac0ecc6e05c0683f04bf4c96eeec0cc07b75a16e3c805bc9c59b6cf7fd6aa9e65dc639dbc1e496d4084bb4b74835ea0c3043c8be SHA512 8cd7f9ff5138f55c13497a0059d32fdde6d6e698020e9ea231ed0431e76e97b2769f781e8a58ec636cadfe110f84f940161cbfa212cfa2f805e18e92a7e0d310
25
26 diff --git a/app-misc/jpipe/jpipe-0.0.1.ebuild b/app-misc/jpipe/jpipe-0.0.1.ebuild
27 new file mode 100644
28 index 00000000000..0ac556bbf2b
29 --- /dev/null
30 +++ b/app-misc/jpipe/jpipe-0.0.1.ebuild
31 @@ -0,0 +1,31 @@
32 +# Copyright 2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +DISTUTILS_USE_SETUPTOOLS=rdepend
37 +PYTHON_COMPAT=( python3_{7,8,9} )
38 +
39 +inherit distutils-r1
40 +
41 +DESCRIPTION="A python implementation of the jp CLI for JMESPath"
42 +HOMEPAGE="https://github.com/pipebus/jpipe"
43 +SRC_URI="mirror://pypi/${PN:0:1}/${PN}/${P}.tar.gz"
44 +
45 +LICENSE="Apache-2.0"
46 +KEYWORDS="~amd64"
47 +SLOT="0"
48 +IUSE="jp-symlink test"
49 +RESTRICT="!test? ( test )"
50 +RDEPEND="
51 + jp-symlink? ( !app-misc/jp )
52 + dev-python/jmespath[${PYTHON_USEDEP}]
53 +"
54 +
55 +python_test() {
56 + "${PYTHON}" test/test_jpipe.py || die "tests failed for ${EPYTHON}"
57 +}
58 +
59 +src_install() {
60 + distutils-r1_src_install
61 + use jp-symlink && dosym jpipe /usr/bin/jp
62 +}
63
64 diff --git a/app-misc/jpipe/metadata.xml b/app-misc/jpipe/metadata.xml
65 new file mode 100644
66 index 00000000000..0f6af2e7dae
67 --- /dev/null
68 +++ b/app-misc/jpipe/metadata.xml
69 @@ -0,0 +1,16 @@
70 +<?xml version="1.0" encoding="UTF-8"?>
71 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
72 +<pkgmetadata>
73 + <upstream>
74 + <remote-id type="github">pipebus/jpipe</remote-id>
75 + <remote-id type="pypi">jpipe</remote-id>
76 + </upstream>
77 + <maintainer type="person">
78 + <email>zmedico@g.o</email>
79 + </maintainer>
80 + <use>
81 + <flag name="jp-symlink">
82 + Install a jp symlink that points to jpipe.
83 + </flag>
84 + </use>
85 +</pkgmetadata>