Diff thin-1.8.2 with a thin-2.0.1

/usr/portage/www-servers/thin/thin-2.0.1.ebuild 2026-07-24 20:03:04.375125550 +0300
1
# Copyright 1999-2023 Gentoo Authors
1
# Copyright 1999-2026 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4 4
EAPI=8
5 5

  
6
USE_RUBY="ruby27 ruby30 ruby31 ruby32"
6
USE_RUBY="ruby32 ruby33 ruby34 ruby40"
7 7

  
8 8
RUBY_FAKEGEM_RECIPE_TEST="rspec3"
9 9
RUBY_FAKEGEM_GEMSPEC="${PN}.gemspec"
......
11 11
inherit ruby-fakegem
12 12

  
13 13
DESCRIPTION="A fast and very simple Ruby web server"
14
HOMEPAGE="http://code.macournoyer.com/thin/"
14
HOMEPAGE="https://github.com/macournoyer/thin"
15 15
SRC_URI="https://github.com/macournoyer/thin/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16 16

  
17
LICENSE="Ruby"
17
LICENSE="|| ( GPL-2+ Ruby )"
18 18
SLOT="0"
19 19
KEYWORDS="~amd64 ~ppc64 ~x86"
20 20
IUSE="doc test"
21 21

  
22
DEPEND="${DEPEND}
23
	dev-util/ragel"
24
RDEPEND="${RDEPEND}"
22
DEPEND="dev-util/ragel"
25 23

  
26 24
# The runtime dependencies are used at build-time as well since the
27 25
# Rakefile loads thin!
28 26
mydeps=">=dev-ruby/daemons-1.0.9
29
	>=dev-ruby/rack-1.0.0:* <dev-ruby/rack-3:*
27
	>=dev-ruby/rack-1.0.0:* <dev-ruby/rack-4:*
30 28
	>=dev-ruby/eventmachine-1.0.4:0
31 29
	virtual/ruby-ssl"
32 30

  
......
41 39

  
42 40
	# Fix specs' dependencies so that the extension is not rebuilt
43 41
	# when running tests
44
	rm tasks/spec.rake || die
42
	rm rakelib/spec.rake || die
45 43

  
46 44
	# Fix rspec version to allow newer 2.x versions
47
	sed -i -e '/gem "rspec"/ s/1.2.9/3.0/ ; 2igem "rack", "<3"' spec/spec_helper.rb || die
45
	sed -i -e '/gem "rspec"/ s/1.2.9/3.0/ ; 2igem "rack", "<4"' spec/spec_helper.rb || die
48 46

  
49 47
	# Avoid CLEAN since it may not be available and we don't need it.
50
	sed -i -e '/CLEAN/ s:^:#:' tasks/*.rake || die
48
	sed -i -e '/CLEAN/ s:^:#:' rakelib/*.rake || die
51 49

  
52
	# Disable a test that is known for freezing the testsuite,
53
	# reported upstream. In thin 1.5.1 this just fails.
54
	sed -i \
55
		-e '/should force kill process in pid file/,/^  end/ s:^:#:' \
56
		spec/daemonizing_spec.rb || die
50
	# Avoid a spec trying to change privileges which will not work in
51
	# all Gentoo test cases.
52
	sed -e '/should change privilege/ s/it/xit/' \
53
		-i spec/daemonizing_spec.rb || die
57 54

  
58 55
	sed -i \
59 56
		-e '/tracing routines (with NO custom logger)/,/^  end/ s:^:#:'\
......
64 61

  
65 62
	sed -i -e "s/Spec::Runner/Rspec/" spec/spec_helper.rb || die
66 63
	# nasty but too complex to fix up for now :(
67
	use doc || rm tasks/rdoc.rake
64
	use doc || rm rakelib/rdoc.rake
65

  
66
	sed -e 's:_relative ": "./:' \
67
		-i ${RUBY_FAKEGEM_GEMSPEC} || die
68 68
}
69 69

  
70 70
each_ruby_compile() {
Thank you!