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/jp/
Date: Sat, 12 Jun 2021 22:20:33
Message-Id: 1623536383.a5194528ae6801ef6e77d38621660588ac8588ca.zmedico@gentoo
1 commit: a5194528ae6801ef6e77d38621660588ac8588ca
2 Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
3 AuthorDate: Sat Jun 12 22:16:04 2021 +0000
4 Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 12 22:19:43 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5194528
7
8 app-misc/jp: Initial import
9
10 Package-Manager: Portage-3.0.19, Repoman-3.0.3
11 Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>
12
13 app-misc/jp/Manifest | 1 +
14 app-misc/jp/jp-0.1.3.ebuild | 38 ++++++++++++++++++++++++++++++++++++++
15 app-misc/jp/metadata.xml | 13 +++++++++++++
16 3 files changed, 52 insertions(+)
17
18 diff --git a/app-misc/jp/Manifest b/app-misc/jp/Manifest
19 new file mode 100644
20 index 00000000000..d2350ffe51f
21 --- /dev/null
22 +++ b/app-misc/jp/Manifest
23 @@ -0,0 +1 @@
24 +DIST jp-0.1.3.tar.gz 62719 BLAKE2B cb7783cc5e23c279237a12284e7be2e6af25477d89a087dc5b5717e3aece7325fd7f056310ed79dead578425177df96911df092ecf82e3e75c935db1137a0341 SHA512 bf7c5ad2889404145b2e5e9e3e30f7e136fc81b7026114801bdd8ea65b78609d91c20f35c4717aff1bfb9750cdf5a8d9f405177ac8716851cbf391ee8c7e1e04
25
26 diff --git a/app-misc/jp/jp-0.1.3.ebuild b/app-misc/jp/jp-0.1.3.ebuild
27 new file mode 100644
28 index 00000000000..9370bd2d418
29 --- /dev/null
30 +++ b/app-misc/jp/jp-0.1.3.ebuild
31 @@ -0,0 +1,38 @@
32 +# Copyright 2021 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +inherit go-module
37 +
38 +DESCRIPTION="Command line interface to JMESPath"
39 +HOMEPAGE="https://github.com/jmespath/jp http://jmespath.org"
40 +SRC_URI="https://github.com/jmespath/jp/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz"
41 +
42 +LICENSE="Apache-2.0 MIT"
43 +SLOT="0"
44 +KEYWORDS="~amd64"
45 +IUSE=""
46 +RESTRICT+=" test"
47 +
48 +src_prepare() {
49 + if [[ -e $S/go.mod ]]; then
50 + die "found unexpected $S/go.mod"
51 + fi
52 + cat <<-EOF > "$S/go.mod"
53 + module github.com/jmespath/jp
54 + replace github.com/jmespath/jp => ./
55 + EOF
56 +
57 + sed -e 's|except Exception, e|except Exception as e|' -i test/jp-compliance || die
58 +
59 + default
60 +}
61 +
62 +src_compile() {
63 + go build -mod=readonly -o ./jp ./jp.go || die
64 +}
65 +
66 +src_install() {
67 + dobin "./jp"
68 + dodoc README.md
69 +}
70
71 diff --git a/app-misc/jp/metadata.xml b/app-misc/jp/metadata.xml
72 new file mode 100644
73 index 00000000000..ef594962c7b
74 --- /dev/null
75 +++ b/app-misc/jp/metadata.xml
76 @@ -0,0 +1,13 @@
77 +<?xml version="1.0" encoding="UTF-8"?>
78 +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
79 +<pkgmetadata>
80 + <maintainer type="person">
81 + <email>zmedico@g.o</email>
82 + <name>Zac Medico</name>
83 + </maintainer>
84 + <upstream>
85 + <bugs-to>https://github.com/jmespath/jp/issues</bugs-to>
86 + <changelog>https://github.com/jmespath/jp/commits/master</changelog>
87 + <remote-id type="github">jmespath/jp</remote-id>
88 + </upstream>
89 +</pkgmetadata>