Gentoo Archives: gentoo-commits

From: Hans de Graaff <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: www-servers/thin/
Date: Tue, 20 Jun 2017 05:00:19
Message-Id: 1497934730.2ebd61e87a0391f2c21128dc39b8787a5cadb4fe.graaff@gentoo
1 commit: 2ebd61e87a0391f2c21128dc39b8787a5cadb4fe
2 Author: Hans de Graaff <graaff <AT> gentoo <DOT> org>
3 AuthorDate: Tue Jun 20 04:58:13 2017 +0000
4 Commit: Hans de Graaff <graaff <AT> gentoo <DOT> org>
5 CommitDate: Tue Jun 20 04:58:50 2017 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ebd61e8
7
8 www-servers/thin: add 1.7.1
9
10 Package-Manager: Portage-2.3.5, Repoman-2.3.1
11
12 www-servers/thin/Manifest | 1 +
13 www-servers/thin/thin-1.7.1.ebuild | 88 ++++++++++++++++++++++++++++++++++++++
14 2 files changed, 89 insertions(+)
15
16 diff --git a/www-servers/thin/Manifest b/www-servers/thin/Manifest
17 index 1371f52b94f..c88bc9460bb 100644
18 --- a/www-servers/thin/Manifest
19 +++ b/www-servers/thin/Manifest
20 @@ -1 +1,2 @@
21 DIST thin-1.7.0.tar.gz 180791 SHA256 8574ea81e50fc6b46bf48c147cce26eb698f60b554228498daba88f65b043927 SHA512 a41ffb8792f5dbc732696af4914e5121e83f21d18e5aae64676dc5d035f84c0e13d352565c5004ba7ac2e42c701522a6aa6a9250303877c3ac566c30336df2c3 WHIRLPOOL 029fde0ec69b4c1bbd57cd98e483c6fa8ec2ae82e4e80c43b0d328a8c424867737b9d8db7a5f642e70b6946092c26b6594d06d884efd2a5efe98b1f387ff9fec
22 +DIST thin-1.7.1.tar.gz 179998 SHA256 2b9dbf80d7e2982ed166582af04b0a60dce176461a2547617839610630428120 SHA512 7a5e3ccef263e5ba15cf53f38d7a8ae6ff974a4cfee2844cc15f9e6afb155b73b43e8c2ba49e177cad20eb9a728f4ddbe0d88417ad7f1c11ca2a535745da73ef WHIRLPOOL ad60616ed1d0d3ef162e63baf187b13757197022ef4646c8a9cfabcfff750cf325511f2153404dd1e92b4a35bde4aac3f5a6b80ab0eb142a9915508b195cd401
23
24 diff --git a/www-servers/thin/thin-1.7.1.ebuild b/www-servers/thin/thin-1.7.1.ebuild
25 new file mode 100644
26 index 00000000000..b57be6e1536
27 --- /dev/null
28 +++ b/www-servers/thin/thin-1.7.1.ebuild
29 @@ -0,0 +1,88 @@
30 +# Copyright 1999-2017 Gentoo Foundation
31 +# Distributed under the terms of the GNU General Public License v2
32 +
33 +EAPI=6
34 +
35 +USE_RUBY="ruby21 ruby22 ruby23"
36 +
37 +RUBY_FAKEGEM_RECIPE_TEST="rspec"
38 +RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
39 +
40 +inherit ruby-fakegem
41 +
42 +DESCRIPTION="A fast and very simple Ruby web server"
43 +HOMEPAGE="http://code.macournoyer.com/thin/"
44 +SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> ${P}.tar.gz"
45 +
46 +LICENSE="Ruby"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~ppc64 ~x86"
49 +IUSE="doc test"
50 +
51 +DEPEND="${DEPEND}
52 + dev-util/ragel"
53 +RDEPEND="${RDEPEND}"
54 +
55 +# The runtime dependencies are used at build-time as well since the
56 +# Rakefile loads thin!
57 +mydeps=">=dev-ruby/daemons-1.0.9
58 + >=dev-ruby/rack-1.0.0:* <dev-ruby/rack-3:*
59 + >=dev-ruby/eventmachine-1.0.4:0
60 + virtual/ruby-ssl"
61 +
62 +ruby_add_rdepend "${mydeps}"
63 +ruby_add_bdepend "${mydeps}
64 + dev-ruby/rake-compiler"
65 +
66 +all_ruby_prepare() {
67 + # Fix Ragel-based parser generation (uses a *very* old syntax that
68 + # is not supported in Gentoo)
69 + sed -i -e 's: | rlgen-cd::' Rakefile || die
70 +
71 + # Fix specs' dependencies so that the extension is not rebuilt
72 + # when running tests
73 + rm tasks/spec.rake || die
74 +
75 + # Fix rspec version to allow newer 2.x versions
76 + sed -i -e '/gem "rspec"/ s/1.2.9/2.0/' spec/spec_helper.rb || die
77 +
78 + # Avoid CLEAN since it may not be available and we don't need it.
79 + sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
80 +
81 + # Disable a test that is known for freezing the testsuite,
82 + # reported upstream. In thin 1.5.1 this just fails.
83 + sed -i \
84 + -e '/should force kill process in pid file/,/^ end/ s:^:#:' \
85 + spec/daemonizing_spec.rb || die
86 +
87 + sed -i \
88 + -e '/tracing routines (with NO custom logger)/,/^ end/ s:^:#:'\
89 + spec/logging_spec.rb || die
90 +
91 + find spec/perf -name "*_spec.rb" -exec \
92 + sed -i '/be_faster_then/ i \ pending' {} \;
93 +
94 + sed -i -e "s/Spec::Runner/Rspec/" spec/spec_helper.rb || die
95 + # nasty but too complex to fix up for now :(
96 + use doc || rm tasks/rdoc.rake
97 +}
98 +
99 +each_ruby_compile() {
100 + ${RUBY} -S rake compile || die "rake compile failed"
101 +}
102 +
103 +all_ruby_install() {
104 + all_fakegem_install
105 +
106 + keepdir /etc/thin
107 + newinitd "${FILESDIR}"/${PN}.initd-r4 ${PN}
108 + newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
109 +
110 + einfo
111 + elog "Thin is now shipped with init scripts."
112 + elog "The default script (/etc/init.d/thin) will start all servers that have"
113 + elog "configuration files in /etc/thin/. You can symlink the init script to"
114 + elog "files of the format 'thin.SERVER' to be able to start individual servers."
115 + elog "See /etc/conf.d/thin for more configuration options."
116 + einfo
117 +}