From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/jp/
Date: Tue, 15 Jun 2021 05:55:36 +0000 (UTC) [thread overview]
Message-ID: <1623736439.373d4d774e238deb76a0c9552065f6b12d225dbb.zmedico@gentoo> (raw)
commit: 373d4d774e238deb76a0c9552065f6b12d225dbb
Author: Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Tue Jun 15 05:31:33 2021 +0000
Commit: Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Tue Jun 15 05:53:59 2021 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=373d4d77
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 <AT> gentoo.org>
app-misc/jp/Manifest | 2 +-
app-misc/jp/{jp-0.1.3.ebuild => jp-0.1.3.1.ebuild} | 22 +++++++++++++++++-----
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 d2350ffe51f..4cbdc511c69 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
similarity index 54%
rename from app-misc/jp/jp-0.1.3.ebuild
rename to app-misc/jp/jp-0.1.3.1.ebuild
index 9370bd2d418..2d61bd19fce 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 ef594962c7b..8a062311429 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>
next reply other threads:[~2021-06-15 5:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-06-15 5:55 Zac Medico [this message]
-- strict thread matches above, loose matches on Subject: below --
2022-05-16 2:07 [gentoo-commits] repo/gentoo:master commit in: app-misc/jp/ Zac Medico
2022-03-04 23:23 Zac Medico
2021-10-03 20:21 Zac Medico
2021-10-01 4:37 Zac Medico
2021-06-17 22:00 Zac Medico
2021-06-17 8:47 Zac Medico
2021-06-17 7:25 Zac Medico
2021-06-17 5:02 Zac Medico
2021-06-16 19:21 Zac Medico
2021-06-15 22:02 Zac Medico
2021-06-15 19:36 Zac Medico
2021-06-12 22:20 Zac Medico
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1623736439.373d4d774e238deb76a0c9552065f6b12d225dbb.zmedico@gentoo \
--to=zmedico@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox