similar_text: handle ext properly

This commit is contained in:
Anton Bolshakov 2023-05-16 15:56:51 +08:00
parent f6e410805a
commit 6f7c5b44bb
No known key found for this signature in database
GPG key ID: 32BDCED870788F04

View file

@ -1,10 +1,11 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EAPI=8
USE_RUBY="ruby30 ruby31 ruby32"
RUBY_FAKEGEM_EXTENSIONS=(ext/similar_text/extconf.rb)
inherit ruby-fakegem
DESCRIPTION="Calculate the similarity between two strings"
@ -14,12 +15,3 @@ LICENSE="BSD"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
IUSE=""
each_ruby_configure() {
${RUBY} -Cext/${PN} extconf.rb || die
}
each_ruby_compile() {
emake -Cext/${PN} V=1
cp ext/${PN}/${PN}.so lib/
}