mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-07-13 00:53:02 -04:00
Package-Manager: Portage-3.0.12, Repoman-3.0.2 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@riseup.net>
38 lines
760 B
Bash
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
|
|
}
|