From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id A6EE615817D for ; Sat, 8 Jun 2024 18:30:01 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F1B7EE2B02; Sat, 8 Jun 2024 18:30:00 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D5AFBE2B02 for ; Sat, 8 Jun 2024 18:30:00 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id DA326340BDE for ; Sat, 8 Jun 2024 18:29:59 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 3CE851610 for ; Sat, 8 Jun 2024 18:29:58 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1717871394.d97dc17bf25d0a2dcd5dc4ba3cdeeda6a18f543c.zmedico@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-misc/gojq/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-misc/gojq/Manifest app-misc/gojq/gojq-0.12.16.ebuild app-misc/gojq/metadata.xml X-VCS-Directories: app-misc/gojq/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: d97dc17bf25d0a2dcd5dc4ba3cdeeda6a18f543c X-VCS-Branch: master Date: Sat, 8 Jun 2024 18:29:58 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 4e6e97d1-464e-4c32-b1d7-2f692cc0e478 X-Archives-Hash: c6692b001d15ec6570a80bb408ff1280 commit: d97dc17bf25d0a2dcd5dc4ba3cdeeda6a18f543c Author: Zac Medico gentoo org> AuthorDate: Sat Jun 8 18:27:25 2024 +0000 Commit: Zac Medico gentoo org> CommitDate: Sat Jun 8 18:29:54 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d97dc17b app-misc/gojq: new package, add 0.12.16 Signed-off-by: Zac Medico gentoo.org> app-misc/gojq/Manifest | 2 ++ app-misc/gojq/gojq-0.12.16.ebuild | 43 +++++++++++++++++++++++++++++++++++++++ app-misc/gojq/metadata.xml | 11 ++++++++++ 3 files changed, 56 insertions(+) diff --git a/app-misc/gojq/Manifest b/app-misc/gojq/Manifest new file mode 100644 index 000000000000..8e9820659bd0 --- /dev/null +++ b/app-misc/gojq/Manifest @@ -0,0 +1,2 @@ +DIST gojq-0.12.16-deps.tar.xz 537848 BLAKE2B 11e0a6a03cb88eac6345b4cb02b0a2132b08d0d3198e8d12a7e7cd4d51c0ee4bf6fc0222de9aa1bca75a1a55fef1f60567bb7aaf52a86ea4c09b83d3210fb135 SHA512 b68c7d4401880f8ef232fe2880b9439b9198fd17dd356f95680195a30f8833a80b896e1ab27a075b2aa495657a1cb91ecd48bece5b3db6c6d9d20441af36f617 +DIST gojq-0.12.16.tar.gz 131894 BLAKE2B 094b51e9200ce9cda01b67e68be362ac111418f67e2ef9d96ede1a3da0c9469bde76bd958152b15f9231d84f8d2e6200ea10d1cad9102f2f1ef51c2623af159a SHA512 08129dac68e280b4a7c2d64ea3da4cf8a00ab0ba8431e76468cb9d4b52e052eb5f2b92d1dc8545c3a5e08e354b0d4ec60c39137a13b4df6ea9027f0278e148c5 diff --git a/app-misc/gojq/gojq-0.12.16.ebuild b/app-misc/gojq/gojq-0.12.16.ebuild new file mode 100644 index 000000000000..4aee21687e7a --- /dev/null +++ b/app-misc/gojq/gojq-0.12.16.ebuild @@ -0,0 +1,43 @@ +# Copyright 2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +EGIT_COMMIT=0607aa5 +DESCRIPTION="Pure Go implementation of jq with yaml support" +HOMEPAGE="https://github.com/itchyny/gojq" +SRC_URI="https://github.com/itchyny/gojq/archive/refs/tags/v${PV}.tar.gz -> ${P/-go/}.tar.gz + https://dev.gentoo.org/~zmedico/dist/${P/-go/}-deps.tar.xz" + +LICENSE="MIT" +LICENSE+=" Apache-2.0 BSD" +SLOT="0" +KEYWORDS="~amd64" +DOCS=(README.md) + +src_prepare() { + default + local -a sed_args=( + -e "s/^VERSION := .*/VERSION := ${PV}/" + -e "s/^CURRENT_REVISION = .*/CURRENT_REVISION = ${EGIT_COMMIT}/" + ) + # -buildmode=pie not supported when -race is enabled + [[ ${GOFLAGS} == *buildmode=pie* ]] && sed_args+=( + -e 's/ -race / /' + ) + sed "${sed_args[@]}" -i Makefile || die +} + +src_compile() { + emake build +} + +src_install() { + einstalldocs + dobin "${PN}" +} + +src_test() { + emake test +} diff --git a/app-misc/gojq/metadata.xml b/app-misc/gojq/metadata.xml new file mode 100644 index 000000000000..c333e701aa29 --- /dev/null +++ b/app-misc/gojq/metadata.xml @@ -0,0 +1,11 @@ + + + + + zmedico@gentoo.org + Zac Medico + + + itchyny/gojq + +