pentoo-overlay/dev-ruby/similar_text/similar_text-0.0.4.ebuild
2016-07-10 15:32:59 +08:00

26 lines
483 B
Bash

# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$
EAPI=5
USE_RUBY="ruby20 ruby21"
inherit ruby-fakegem
DESCRIPTION="Calculate the similarity between two strings"
HOMEPAGE="https://github.com/valcker/similar_text-ruby"
LICENSE="BSD"
SLOT="0"
KEYWORDS="~amd64 ~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/
}