dev-ruby/unicode-emoji: new package, add 4.0.4

Signed-off-by: Hans de Graaff <graaff@gentoo.org>
This commit is contained in:
Hans de Graaff
2025-02-22 10:20:46 +01:00
parent 5297774725
commit c77de3dfd3
3 changed files with 46 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
DIST unicode-emoji-4.0.4-emoji-test.txt 640215 BLAKE2B e53aa1dc44ec9352ec2d4fb9fd846c4c804a8f4351497202f6ac8787b9da1317f8d1b1358f601f62a942f2b8428b41fe475b9eb0ad9a42200d8c88166d29ed30 SHA512 f755d40a35a005bad13bdd4a1a9ea801724c488cb4f56d7fdb8b33b35cd7c6527d14f208ef4b4d545343a62a12baeed480cad18995ebb12e37112f072184435d
DIST unicode-emoji-4.0.4.tar.gz 163589 BLAKE2B 3db4e3054318670c7dda911d4c6904cc50dc02fe11741ebcfe33b9bde4c38a16d00a672c44027684c38f7cebf44deaba696a86910f8f4afa306f5769cc9a6c35 SHA512 ab6da34dd87bc9732f6429d3296a3e208446578e31fe30777bc1c152ff5c46afd53c2606d651c58168ec434bbec48a676ae17557ae29b9bc62b6618675874444

View File

@@ -0,0 +1,12 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="project">
<email>ruby@gentoo.org</email>
<name>Gentoo Ruby Project</name>
</maintainer>
<upstream>
<remote-id type="github">janlelis/unicode-emoji</remote-id>
<remote-id type="rubygems">unicode-emoji</remote-id>
</upstream>
</pkgmetadata>

View File

@@ -0,0 +1,32 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby31 ruby32 ruby33 ruby34"
RUBY_FAKEGEM_EXTRAINSTALL="data"
RUBY_FAKEGEM_GEMSPEC="unicode-emoji.gemspec"
inherit ruby-fakegem
EMOJI_VERSION=16.0
DESCRIPTION="Up-to-date Emoji Regex and Data in Ruby"
HOMEPAGE="https://github.com/janlelis/unicode-emoji"
SRC_URI="https://github.com/janlelis/unicode-emoji/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz
test? ( https://www.unicode.org/Public/emoji/${EMOJI_VERSION}/emoji-test.txt -> ${P}-emoji-test.txt )"
LICENSE="MIT"
SLOT="$(ver_cut 1)"
KEYWORDS="~amd64"
all_ruby_prepare() {
cp "${DISTDIR}/${P}-emoji-test.txt" spec/data/emoji-test.txt || die
}
each_ruby_test() {
for spec in spec/*_spec.rb; do
${RUBY} ${spec} || die
done
}