diff options
author | Zac Medico <zmedico@gentoo.org> | 2021-06-14 22:31:33 -0700 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2021-06-14 22:53:59 -0700 |
commit | 373d4d774e238deb76a0c9552065f6b12d225dbb (patch) | |
tree | 47a239c51aa4496857d52d566a30329330c153dc /app-misc | |
parent | dev-python/xlsxwriter: Remove old (diff) | |
download | gentoo-373d4d774e238deb76a0c9552065f6b12d225dbb.tar.gz gentoo-373d4d774e238deb76a0c9552065f6b12d225dbb.tar.bz2 gentoo-373d4d774e238deb76a0c9552065f6b12d225dbb.zip |
app-misc/jp: Bump to version 0.1.3.1 and switch to my jpp "fork"
I've forked the package since upstream has been unresponsive
to jp merge requests for some time, though JMESPath lives on.
I intend to keep the original jp command as-is, while adding
extensions to the new jpp command.
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/jp/Manifest | 2 | ||||
-rw-r--r-- | app-misc/jp/jp-0.1.3.1.ebuild (renamed from app-misc/jp/jp-0.1.3.ebuild) | 22 | ||||
-rw-r--r-- | app-misc/jp/metadata.xml | 14 |
3 files changed, 29 insertions, 9 deletions
diff --git a/app-misc/jp/Manifest b/app-misc/jp/Manifest index d2350ffe51fc..4cbdc511c695 100644 --- a/app-misc/jp/Manifest +++ b/app-misc/jp/Manifest @@ -1 +1 @@ -DIST jp-0.1.3.tar.gz 62719 BLAKE2B cb7783cc5e23c279237a12284e7be2e6af25477d89a087dc5b5717e3aece7325fd7f056310ed79dead578425177df96911df092ecf82e3e75c935db1137a0341 SHA512 bf7c5ad2889404145b2e5e9e3e30f7e136fc81b7026114801bdd8ea65b78609d91c20f35c4717aff1bfb9750cdf5a8d9f405177ac8716851cbf391ee8c7e1e04 +DIST jpp-0.1.3.1.tar.gz 64129 BLAKE2B a3663ee0a6b212a455dbe4c01f83fb450a5d17ff8f2173becc970133ed9a29b102280fbeb13730eebe69ebf481703e382df8456d030abbff695a5cc72a0faa36 SHA512 65844497d988645717363f812c14886e1a5befa925085527029145c4b5c7a3466c193bb6a8f1bc47c66e5cd616ae87eee25077278a48abcc4980dda08d3fc6bb diff --git a/app-misc/jp/jp-0.1.3.ebuild b/app-misc/jp/jp-0.1.3.1.ebuild index 9370bd2d418f..2d61bd19fce0 100644 --- a/app-misc/jp/jp-0.1.3.ebuild +++ b/app-misc/jp/jp-0.1.3.1.ebuild @@ -4,15 +4,21 @@ EAPI=7 inherit go-module +MY_PN=jpp +MY_P=${MY_PN}-${PV} + 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" +HOMEPAGE="https://github.com/pipebus/jpp https://github.com/jmespath/jp http://jmespath.org" +SRC_URI="https://github.com/pipebus/jpp/archive/refs/tags/v${PV}.tar.gz -> ${MY_P}.tar.gz" LICENSE="Apache-2.0 MIT" SLOT="0" KEYWORDS="~amd64" -IUSE="" +IUSE="+jp +jpp" RESTRICT+=" test" +REQUIRED_USE="|| ( jp jpp )" + +S=${WORKDIR}/${MY_P} src_prepare() { if [[ -e $S/go.mod ]]; then @@ -29,10 +35,16 @@ src_prepare() { } src_compile() { - go build -mod=readonly -o ./jp ./jp.go || die + if use jp; then + go build -mod=readonly -o ./jp ./jp.go || die + fi + if use jpp; then + go build -mod=readonly -o ./jpp ./cmd/jpp/main.go || die + fi } src_install() { - dobin "./jp" + use jp && dobin "./jp" + use jpp && dobin "./jpp" dodoc README.md } diff --git a/app-misc/jp/metadata.xml b/app-misc/jp/metadata.xml index ef594962c7b6..8a0623114292 100644 --- a/app-misc/jp/metadata.xml +++ b/app-misc/jp/metadata.xml @@ -6,8 +6,16 @@ <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> + <bugs-to>https://github.com/pipebus/jpp/issues</bugs-to> + <changelog>https://github.com/pipebus/jpp/commits/master</changelog> + <remote-id type="github">pipebus/jpp</remote-id> </upstream> + <use> + <flag name="jp"> + Install jp which is the official jp CLI for JMESPath + </flag> + <flag name="jpp"> + Install jpp which is an extended superset of the jp CLI for JMESPath + </flag> + </use> </pkgmetadata> |