diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-06-09 00:08:14 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-06-09 00:08:14 +0100 |
commit | 4fe228ee9aa3b9b825d54ace549a5517e153e8bd (patch) | |
tree | 90a261e3ea59b80722d70d3c42f3e40d16c9f8dd /app-misc/gojq | |
parent | adc09cc4e6ebf7931735c02c0c272b4b885c2b30 (diff) |
gentoo auto-resync : 09:06:2024 - 00:08:13
Diffstat (limited to 'app-misc/gojq')
-rw-r--r-- | app-misc/gojq/Manifest | 4 | ||||
-rw-r--r-- | app-misc/gojq/gojq-0.12.16.ebuild | 43 | ||||
-rw-r--r-- | app-misc/gojq/metadata.xml | 11 |
3 files changed, 58 insertions, 0 deletions
diff --git a/app-misc/gojq/Manifest b/app-misc/gojq/Manifest new file mode 100644 index 000000000000..4a2b43d4e7e7 --- /dev/null +++ b/app-misc/gojq/Manifest @@ -0,0 +1,4 @@ +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 +EBUILD gojq-0.12.16.ebuild 930 BLAKE2B 08b12d7ae532736a099bf5b3dc5a87046dcc998471c207c0688a890aa01fc36faa9b26ada068d2ae94d1b42265ecf65c2ed5df41bdfd68a35f61320fd3638068 SHA512 2b8e67771d01772a0a5339e4bee9597c31138227d690a9075804ca01defc1d979e09c8327c278a0f8c2ebc121bb0f441c6b9eadf15b3c36fb5e70b4c3cde1607 +MISC metadata.xml 322 BLAKE2B b2a239b43a2a08d967fc9412698042445d5033a5bc3c5d64f69288587e69842627dc12a9d2730435f6356e4202f119078c0bcf626dc81b4e7f3bedb28ef289f6 SHA512 fe8afbb9a28a4d65c20478a95e7ddf75023b1730c1e5ab9d2814b3db37e104bebca2462f9989dab007faec34a87aaa6f82551bbf6ab554928d2a7b0450b16fe8 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 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zmedico@gentoo.org</email> + <name>Zac Medico</name> + </maintainer> + <upstream> + <remote-id type="github">itchyny/gojq</remote-id> + </upstream> +</pkgmetadata> |