aboutsummaryrefslogtreecommitdiff
blob: 1fcf4327f8a9b63b05a8376358685389edd6cb36 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
# Copyright 1999-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8

DESCRIPTION="A jq implementation for emojify"
HOMEPAGE="https://github.com/Freed-Wu/jq-emojify"

_VERSION=4.1.0
SRC_URI="
	$HOMEPAGE/archive/${PV}.tar.gz -> jq-$P.tar.gz
	https://github.com/github/gemoji/archive/v$_VERSION.tar.gz -> gemoji-$_VERSION.tar.gz
"
S="${WORKDIR}/jq-${P}"

LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64 ~arm64"

RDEPEND="
	app-misc/jq
"

BDEPEND="
	app-misc/jq
"

src_prepare() {
	default
	sed -i "s=/usr=$EPREFIX/usr=g" emojify scripts/generate-emoji.jq.jq
}

src_compile() {
	scripts/generate-emoji.jq.jq "../gemoji-$_VERSION/db/emoji.json" > emoji.jq
}

src_install() {
	insinto /usr/lib/jq
	doins emoji.jq
	dobin emojify
}