Gentoo Archives: gentoo-commits

From: "Hans de Graaff (graaff)" <graaff@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in www-servers/thin: ChangeLog thin-1.6.2.ebuild
Date: Tue, 08 Jul 2014 05:32:57
Message-Id: 20140708053251.D147B2004E@flycatcher.gentoo.org
1 graaff 14/07/08 05:32:51
2
3 Modified: ChangeLog
4 Added: thin-1.6.2.ebuild
5 Log:
6 Version bump.
7
8 (Portage version: 2.2.8-r1/cvs/Linux x86_64, signed Manifest commit with key 0x8883FA56A308A8D7!)
9
10 Revision Changes Path
11 1.30 www-servers/thin/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thin/ChangeLog?rev=1.30&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thin/ChangeLog?rev=1.30&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thin/ChangeLog?r1=1.29&r2=1.30
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/www-servers/thin/ChangeLog,v
20 retrieving revision 1.29
21 retrieving revision 1.30
22 diff -u -r1.29 -r1.30
23 --- ChangeLog 1 Jan 2014 14:30:31 -0000 1.29
24 +++ ChangeLog 8 Jul 2014 05:32:51 -0000 1.30
25 @@ -1,6 +1,11 @@
26 # ChangeLog for www-servers/thin
27 # Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/www-servers/thin/ChangeLog,v 1.29 2014/01/01 14:30:31 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/www-servers/thin/ChangeLog,v 1.30 2014/07/08 05:32:51 graaff Exp $
30 +
31 +*thin-1.6.2 (08 Jul 2014)
32 +
33 + 08 Jul 2014; Hans de Graaff <graaff@g.o> +thin-1.6.2.ebuild:
34 + Version bump.
35
36 01 Jan 2014; Patrick Lauer <patrick@g.o> thin-1.5.1-r1.ebuild,
37 thin-1.5.1-r2.ebuild, thin-1.5.1-r3.ebuild:
38
39
40
41 1.1 www-servers/thin/thin-1.6.2.ebuild
42
43 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thin/thin-1.6.2.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/www-servers/thin/thin-1.6.2.ebuild?rev=1.1&content-type=text/plain
45
46 Index: thin-1.6.2.ebuild
47 ===================================================================
48 # Copyright 1999-2014 Gentoo Foundation
49 # Distributed under the terms of the GNU General Public License v2
50 # $Header: /var/cvsroot/gentoo-x86/www-servers/thin/thin-1.6.2.ebuild,v 1.1 2014/07/08 05:32:51 graaff Exp $
51
52 EAPI=5
53
54 USE_RUBY="ruby19"
55
56 RUBY_FAKEGEM_TASK_TEST="spec:main spec:group:0 spec:group:1 spec:group:2"
57
58 RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
59
60 inherit ruby-fakegem
61
62 DESCRIPTION="A fast and very simple Ruby web server"
63 HOMEPAGE="http://code.macournoyer.com/thin/"
64 SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> ${P}.tar.gz"
65
66 LICENSE="Ruby"
67 SLOT="0"
68 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
69 IUSE=""
70
71 DEPEND="${DEPEND}
72 dev-util/ragel"
73 RDEPEND="${RDEPEND}"
74
75 # The runtime dependencies are used at build-time as well since the
76 # Rakefile loads thin!
77 mydeps=">=dev-ruby/daemons-1.0.9
78 >=dev-ruby/rack-1.0.0
79 >=dev-ruby/eventmachine-1.0.0
80 virtual/ruby-ssl"
81
82 ruby_add_rdepend "${mydeps}"
83 ruby_add_bdepend "${mydeps}
84 dev-ruby/rake-compiler
85 test? ( dev-ruby/rspec:0 )"
86
87 all_ruby_prepare() {
88 # Fix Ragel-based parser generation (uses a *very* old syntax that
89 # is not supported in Gentoo)
90 sed -i -e 's: | rlgen-cd::' Rakefile || die
91
92 # Fix specs' dependencies so that the extension is not rebuilt
93 # when running tests
94 sed -i -e '/:spec =>/s:^:#:' tasks/spec.rake || die
95
96 # Fix rspec version to allow newer 1.x versions
97 sed -i -e '/gem "rspec"/ s/1.2.9/1.0/' tasks/spec.rake spec/spec_helper.rb || die
98
99 # Avoid CLEAN since it may not be available and we don't need it.
100 sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
101
102 # Disable a test that is known for freezing the testsuite,
103 # reported upstream. In thin 1.5.1 this just fails.
104 sed -i \
105 -e '/should force kill process in pid file/,/^ end/ s:^:#:' \
106 spec/daemonizing_spec.rb || die
107
108 # nasty but too complex to fix up for now :(
109 use test || rm tasks/spec.rake
110 }
111
112 each_ruby_compile() {
113 ${RUBY} -S rake compile || die "rake compile failed"
114 }
115
116 all_ruby_install() {
117 all_fakegem_install
118
119 keepdir /etc/thin
120 newinitd "${FILESDIR}"/${PN}.initd-2 ${PN}
121 newconfd "${FILESDIR}"/${PN}.confd-2 ${PN}
122
123 einfo
124 elog "Thin is now shipped with init scripts."
125 elog "The default script (/etc/init.d/thin) will start all servers that have"
126 elog "configuration files in /etc/thin/. You can symlink the init script to"
127 elog "files of the format 'thin.SERVER' to be able to start individual servers."
128 elog "See /etc/conf.d/thin for more configuration options."
129 einfo
130 }