From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id 0616459CA3 for ; Sun, 13 Mar 2016 07:48:11 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D2BFA21C007; Sun, 13 Mar 2016 07:48:08 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 48F3021C007 for ; Sun, 13 Mar 2016 07:48:08 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D20DE340B51 for ; Sun, 13 Mar 2016 07:48:06 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 2E0AB8F6 for ; Sun, 13 Mar 2016 07:48:00 +0000 (UTC) From: "Hans de Graaff" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Hans de Graaff" Message-ID: <1457855274.7dd76decb913489ddb4186b1e384dfaadb5b2b6e.graaff@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/puma/ X-VCS-Repository: repo/gentoo X-VCS-Files: www-servers/puma/Manifest www-servers/puma/metadata.xml www-servers/puma/puma-3.1.0.ebuild X-VCS-Directories: www-servers/puma/ X-VCS-Committer: graaff X-VCS-Committer-Name: Hans de Graaff X-VCS-Revision: 7dd76decb913489ddb4186b1e384dfaadb5b2b6e X-VCS-Branch: master Date: Sun, 13 Mar 2016 07:48:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 021fcad7-a433-44cb-95f6-c874fa3c8b2c X-Archives-Hash: 71a29deebe588431d294d381ce8e4fda commit: 7dd76decb913489ddb4186b1e384dfaadb5b2b6e Author: Hans de Graaff gentoo org> AuthorDate: Sun Mar 13 07:47:23 2016 +0000 Commit: Hans de Graaff gentoo org> CommitDate: Sun Mar 13 07:47:54 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7dd76dec www-servers/puma: initial import Package-Manager: portage-2.2.26 www-servers/puma/Manifest | 1 + www-servers/puma/metadata.xml | 18 +++++++++++++ www-servers/puma/puma-3.1.0.ebuild | 54 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 73 insertions(+) diff --git a/www-servers/puma/Manifest b/www-servers/puma/Manifest new file mode 100644 index 0000000..24f040b --- /dev/null +++ b/www-servers/puma/Manifest @@ -0,0 +1 @@ +DIST puma-3.1.0.tar.gz 145272 SHA256 b0d7c342ebd398d5cdebb25923ecb8b3f100ff2f4e92fe60218968b9ed5834ff SHA512 b91446ce001107cfda689e4e7af3dbfb10bac9943ec3260c8830c1c4f962552c73113ba0f1aac453066716a84febb442908b5ffcd4f6fda1ecff7c9022898c12 WHIRLPOOL 266fadcbbe86cf94b792a86326e73f79266832c0d7cc2f03ceaab6cdaa87d7702723127dd14688cd1d00c516ac818229e72adbe42533ee61182b92eb0369e87a diff --git a/www-servers/puma/metadata.xml b/www-servers/puma/metadata.xml new file mode 100644 index 0000000..aa7df35 --- /dev/null +++ b/www-servers/puma/metadata.xml @@ -0,0 +1,18 @@ + + + + + ruby@gentoo.org + Gentoo Ruby Project + + + Puma is a simple, fast, threaded, and highly concurrent HTTP 1.1 + server for Ruby/Rack applications. Puma is intended for use in + both development and production environments. In order to get the + best throughput, it is highly recommended that you use a Ruby + implementation with real threads like Rubinius or JRuby. + + + puma/puma + + diff --git a/www-servers/puma/puma-3.1.0.ebuild b/www-servers/puma/puma-3.1.0.ebuild new file mode 100644 index 0000000..95a646c --- /dev/null +++ b/www-servers/puma/puma-3.1.0.ebuild @@ -0,0 +1,54 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=5 + +USE_RUBY="ruby20 ruby21 ruby22 ruby23" + +RUBY_FAKEGEM_RECIPE_DOC="rdoc" + +inherit multilib ruby-fakegem + +DESCRIPTION="a simple, fast, threaded, and highly concurrent HTTP 1.1 server for Ruby/Rack" +HOMEPAGE="http://puma.io/" +SRC_URI="https://github.com/puma/puma/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="3" +KEYWORDS="~amd64" +IUSE="" + +DEPEND+=" dev-libs/openssl:0" +RDEPEND+=" dev-libs/openssl:0" + +ruby_add_bdepend "virtual/ruby-ssl + test? ( dev-ruby/rack )" + +all_ruby_prepare() { + # Avoid test failing inconsistently + sed -i -e '/phased_restart_via_pumactl/,/^ end/ s:^:#:' test/test_integration.rb || die +} + +each_ruby_prepare() { + sed -i -e 's:ruby:'${RUBY}':' test/shell/run.sh || die +} + +each_ruby_configure() { + ${RUBY} -Cext/puma_http11 extconf.rb || die +} + +each_ruby_compile() { + emake -Cext/puma_http11 + cp ext/puma_http11/puma_http11$(get_modname) lib/puma/ || die +} + +each_ruby_test() { + einfo "Running test suite" + ${RUBY} -Ilib:.:test -e "Dir['test/**/*test_*.rb'].each{|f| require f}" || die + + einfo "Running integration tests" + pushd test/shell + sh run.sh + popd +}