summaryrefslogtreecommitdiff
path: root/dev-ruby/unicode-emoji/unicode-emoji-4.0.4.ebuild
blob: 331dea1629c0bc968d986b055226b4aeff06215a (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
# 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
}