app-misc/ijq - 1.2.0 (jacksonchen666)

Search

Package Information

Description:
Interactive jq tool
Homepage:
https://codeberg.org/gpanders/ijq
License:
GPL-3+ BSD MIT Apache-2.0

Ebuild Details

Version EAPI Keywords Slot
1.2.0 8 ~amd64 ~arm64 0
View Raw Ebuild
# 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://git.sr.ht/~gpanders/ijq/archive/v${PV}.tar.gz -> ${P}.tar.gz
	https://files.jacksonchen666.com/gentoo/${P}-vendor.tar.xz
"
# vendor tarball creation: take into account src_unpack, where ijq-v1.1.2 is
# renamed to ijq-1.1.2, and the vendor's dir is ijq-v1.1.2 (i.e. before
# rename)
#
# note for that above: S var now includes the v in the dir, so uh
#
# 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
"
S="${WORKDIR}/${PN}-v${PV}"
# 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 .
}

Dependencies

RDEPEND

	${DEPEND}
	app-misc/jq

BDEPEND

	app-text/scdoc

Manifest for 1.2.0

Type File Size Source URLs
DIST ijq-1.2.0-vendor.tar.xz 2265208 bytes https://files.jacksonchen666.com/gentoo/ijq-1.2.0-vendor.tar.xz
DIST ijq-1.2.0.tar.gz 3332310 bytes https://git.sr.ht/~gpanders/ijq/archive/v1.2.0.tar.gz