diff options
author | Zac Medico <zmedico@gentoo.org> | 2021-06-12 15:16:04 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2021-06-12 15:19:43 -0700 |
commit | a5194528ae6801ef6e77d38621660588ac8588ca (patch) | |
tree | c076c9add249e6d3a8fa937824dd250947950fe1 /app-misc/jp | |
parent | games-puzzle/pingus: update live ebuild (diff) | |
download | gentoo-a5194528ae6801ef6e77d38621660588ac8588ca.tar.gz gentoo-a5194528ae6801ef6e77d38621660588ac8588ca.tar.bz2 gentoo-a5194528ae6801ef6e77d38621660588ac8588ca.zip |
app-misc/jp: Initial import
Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Zac Medico <zmedico@gentoo.org>
Diffstat (limited to 'app-misc/jp')
-rw-r--r-- | app-misc/jp/Manifest | 1 | ||||
-rw-r--r-- | app-misc/jp/jp-0.1.3.ebuild | 38 | ||||
-rw-r--r-- | app-misc/jp/metadata.xml | 13 |
3 files changed, 52 insertions, 0 deletions
diff --git a/app-misc/jp/Manifest b/app-misc/jp/Manifest new file mode 100644 index 000000000000..d2350ffe51fc --- /dev/null +++ b/app-misc/jp/Manifest @@ -0,0 +1 @@ +DIST jp-0.1.3.tar.gz 62719 BLAKE2B cb7783cc5e23c279237a12284e7be2e6af25477d89a087dc5b5717e3aece7325fd7f056310ed79dead578425177df96911df092ecf82e3e75c935db1137a0341 SHA512 bf7c5ad2889404145b2e5e9e3e30f7e136fc81b7026114801bdd8ea65b78609d91c20f35c4717aff1bfb9750cdf5a8d9f405177ac8716851cbf391ee8c7e1e04 diff --git a/app-misc/jp/jp-0.1.3.ebuild b/app-misc/jp/jp-0.1.3.ebuild new file mode 100644 index 000000000000..9370bd2d418f --- /dev/null +++ b/app-misc/jp/jp-0.1.3.ebuild @@ -0,0 +1,38 @@ +# Copyright 2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +inherit go-module + +DESCRIPTION="Command line interface to JMESPath" +HOMEPAGE="https://github.com/jmespath/jp http://jmespath.org" +SRC_URI="https://github.com/jmespath/jp/archive/refs/tags/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="Apache-2.0 MIT" +SLOT="0" +KEYWORDS="~amd64" +IUSE="" +RESTRICT+=" test" + +src_prepare() { + if [[ -e $S/go.mod ]]; then + die "found unexpected $S/go.mod" + fi + cat <<-EOF > "$S/go.mod" + module github.com/jmespath/jp + replace github.com/jmespath/jp => ./ + EOF + + sed -e 's|except Exception, e|except Exception as e|' -i test/jp-compliance || die + + default +} + +src_compile() { + go build -mod=readonly -o ./jp ./jp.go || die +} + +src_install() { + dobin "./jp" + dodoc README.md +} diff --git a/app-misc/jp/metadata.xml b/app-misc/jp/metadata.xml new file mode 100644 index 000000000000..ef594962c7b6 --- /dev/null +++ b/app-misc/jp/metadata.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + <name>Zac Medico</name> + </maintainer> + <upstream> + <bugs-to>https://github.com/jmespath/jp/issues</bugs-to> + <changelog>https://github.com/jmespath/jp/commits/master</changelog> + <remote-id type="github">jmespath/jp</remote-id> + </upstream> +</pkgmetadata> |