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