Files
gentoo/dev-ruby/unicode-emoji/unicode-emoji-4.0.4.ebuild
Alfred Wingate ec5180c099 dev-ruby/unicode-emoji: enable ruby40
Signed-off-by: Alfred Wingate <parona@protonmail.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/1478
Signed-off-by: Sam James <sam@gentoo.org>
2026-07-20 18:12:40 +01:00

35 lines
845 B
Bash

# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
USE_RUBY="ruby32 ruby33 ruby34 ruby40"
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 ~arm64"
all_ruby_prepare() {
if use test; then
cp "${DISTDIR}/${P}-emoji-test.txt" spec/data/emoji-test.txt || die
fi
}
each_ruby_test() {
for spec in spec/*_spec.rb; do
${RUBY} ${spec} || die
done
}