# Copyright 2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 inherit go-module # bumping: watch Makefile for changes, and update src_install, src_test, and # maybe src_compile accordingly DESCRIPTION="Interactive jq tool" HOMEPAGE="https://codeberg.org/gpanders/ijq" # TODO: 9999 # TODO: upstream tar: revert to ${P} after 1.3.0-r2 (codeberg changed gzip # implementations and their checksums) # TODO: vendor: revert to ${P} after 1.3.0-r2 (uses 1.3.0-r1 because only # diff is codeberg) SRC_URI=" https://codeberg.org/gpanders/ijq/archive/v${PV}.tar.gz -> ${PF}.tar.gz mirror://jacksonchen666/ijq-1.3.0-r1-vendor.tar.xz " # TODO: unbundling? (3 occurrences of #cgo but build success) S="${WORKDIR}/${PN}" LICENSE="GPL-3+" # go deps, checked ijq 1.1.2 LICENSE+=" BSD MIT Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~arm64" #DEPEND="" RDEPEND=" ${DEPEND} app-misc/jq " BDEPEND=" app-text/scdoc >=dev-lang/go-1.26 " src_compile() { emake VERSION="${PVR}" ijq emake docs } src_install() { dodoc README.md dobin ijq doman ijq.1 } src_test() { ego test -v . }