commit: c77de3dfd3aba979b8aec71e7e6f23b416575705 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org> AuthorDate: Sat Feb 22 09:20:46 2025 +0000 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org> CommitDate: Sat Feb 22 10:25:33 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c77de3df
dev-ruby/unicode-emoji: new package, add 4.0.4 Signed-off-by: Hans de Graaff <graaff <AT> gentoo.org> dev-ruby/unicode-emoji/Manifest | 2 ++ dev-ruby/unicode-emoji/metadata.xml | 12 +++++++++ dev-ruby/unicode-emoji/unicode-emoji-4.0.4.ebuild | 32 +++++++++++++++++++++++ 3 files changed, 46 insertions(+) diff --git a/dev-ruby/unicode-emoji/Manifest b/dev-ruby/unicode-emoji/Manifest new file mode 100644 index 000000000000..5d5fa21d2446 --- /dev/null +++ b/dev-ruby/unicode-emoji/Manifest @@ -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 diff --git a/dev-ruby/unicode-emoji/metadata.xml b/dev-ruby/unicode-emoji/metadata.xml new file mode 100644 index 000000000000..ef37d69244fc --- /dev/null +++ b/dev-ruby/unicode-emoji/metadata.xml @@ -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>[email protected]</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> diff --git a/dev-ruby/unicode-emoji/unicode-emoji-4.0.4.ebuild b/dev-ruby/unicode-emoji/unicode-emoji-4.0.4.ebuild new file mode 100644 index 000000000000..331dea1629c0 --- /dev/null +++ b/dev-ruby/unicode-emoji/unicode-emoji-4.0.4.ebuild @@ -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 +}
