dev-jq/emojify: new package, add 0.0.1

Signed-off-by: Wu, Zhenyu <wuzhenyu@ustc.edu>
This commit is contained in:
Wu, Zhenyu
2024-11-05 10:09:53 +08:00
parent 9d3e08ca85
commit c4b0e2b6c0
3 changed files with 55 additions and 0 deletions

2
dev-jq/emojify/Manifest Normal file
View File

@@ -0,0 +1,2 @@
DIST gemoji-4.1.0.tar.gz 104847 BLAKE2B e5a59d69721891f7bab7d987dfb0fbd8fc4fd5b6d2660a7b47c1d116a5b24e4668e8fd66b4cc47ee3ba95702ab3ed9813efe6b3d7b5595f10d2086c778bee855 SHA512 13224d5bae5b736d9dd238992a1f2acd3d88adf08e765bf898944a673580bfef2448090e1dd8727875f2443c47cf53f6fa54ab156ac614c42ba61f291efc1cf5
DIST jq-emojify-0.0.1.tar.gz 15509 BLAKE2B 9dd132090d5f2fd7de19b9aeec65a79cbd3e37209a608b1fcad9eab63da97e94277103ca20651f072eec1aaccdf3d16eb52ae91c6a997f8eed20e05d88f6579d SHA512 573d2290c8248ec1f24b31150703f8ce4928af1496fee2683c1c911f92dc119f382ddde1aed274caa008c7ae81822bf240b019024b8d0459701d3038275d89b2

View File

@@ -0,0 +1,37 @@
# 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}"
KEYWORDS="~amd64 ~arm ~arm64 ~x86 ~arm64-macos ~x64-macos"
LICENSE="GPL-3"
SLOT="0"
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_install() {
install -d "$ED/usr/lib/jq"
scripts/generate-emoji.jq.jq ../gemoji-$_VERSION/db/emoji.json > "$ED/usr/lib/jq/emoji.jq"
install -D emojify -t "$ED/usr/bin"
}

View File

@@ -0,0 +1,16 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>grozin@gentoo.org</email>
<name>Andrey Grozin</name>
</maintainer>
<maintainer type="project">
<email>python@gentoo.org</email>
<name>Python</name>
</maintainer>
<upstream>
<remote-id type="pypi">pudb</remote-id>
<remote-id type="github">inducer/pudb</remote-id>
</upstream>
</pkgmetadata>