Files
guru/dev-ruby/thin/thin-1.8.0.ebuild
Andrew Ammerlaan bb6e66c395 dev-ruby/thin: use ruby_add_depend for deps
Package-Manager: Portage-3.0.12, Repoman-3.0.2
Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
2020-12-07 15:01:39 +01:00

38 lines
760 B
Bash

# Copyright 2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
USE_RUBY="ruby24 ruby25 ruby26"
inherit ruby-fakegem
DESCRIPTION="This a Ruby gem that delivers a thin and fast web server"
HOMEPAGE="https://github.com/macournoyer/thin"
SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="Ruby"
SLOT="0"
KEYWORDS="~amd64 ~x86"
ruby_add_depend "
dev-ruby/eventmachine
dev-ruby/daemons
dev-ruby/rack
"
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
each_ruby_configure() {
${RUBY} -Cext/thin_parser extconf.rb || die
}
each_ruby_compile() {
emake V=1 -Cext/thin_parser
cp ext/thin_parser/thin_parser.so lib/ || die
}
all_ruby_install() {
ruby_fakegem_binwrapper thin
}