# Copyright 2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 # 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 SRC_URI=" https://codeberg.org/gpanders/ijq/archive/v${PV}.tar.gz -> ${P}.tar.gz https://files.jacksonchen666.com/gentoo/${PF}-vendor.tar.xz " # TODO: remove revisions from vendor after 1.3.0-r1 # TODO: unbundling? (3 occurrences of #cgo but build success) inherit go-module 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 " S="${WORKDIR}/${PN}" # no mirrors anyways RESTRICT="mirror" src_compile() { emake VERSION="${PVR}" ijq emake docs } src_install() { dodoc README.md dobin ijq doman ijq.1 } src_test() { ego test -v . }