blob: 085a9126be3e0d1403a7cda80516e5b4ac1b56bd (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2013 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-proxy/swiftiply/swiftiply-0.6.4-r1.ebuild,v 1.1 2013/09/07 13:51:03 tomwij Exp $
EAPI="5"
USE_RUBY="ruby19"
inherit ruby-ng ruby-fakegem
DESCRIPTION="A clustering proxy server for web applications."
HOMEPAGE="http://swiftiply.swiftcore.org/"
SRC_URI="https://github.com/wyhaines/${PN}/archive/${PV}.tar.gz -> ${PN}-${PV}.tar.gz"
LICENSE="Ruby"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="www-servers/mongrel:0"
RDEPEND="${DEPEND}
>=dev-ruby/eventmachine-0.9.0"
RUBY_FAKEGEM_EXTRAINSTALL="src"
RUBY_PATCHES=(
"${FILESDIR}/${P}-test-deque-fix.patch"
"${FILESDIR}/${P}-cache-base-mixin-fix.patch"
"${FILESDIR}/${P}-test-http-headers-order-fix.patch"
)
RUBY_FAKEGEM_RECIPE_DOC="rdoc"
RUBY_FAKEGEM_DOC_SOURCES="."
QA_PRESTRIPPED="usr/lib/fastfilereaderext.so
usr/lib32/fastfilereaderext.so
usr/lib64/fastfilereaderext.so
usr/lib/deque.so
usr/lib32/deque.so
usr/lib64/deque.so"
each_ruby_configure() {
cd ext/deque || die 'No deque directory.'
ruby extconf.rb || die 'Failed to configure deque.'
}
each_ruby_compile() {
sed -i '/build_ext/q' setup.rb || die 'Rewrite of extension build script failed.'
echo '}' >> setup.rb || die 'Rewrite of extension build script failed.'
ruby setup.rb || die 'Failed to setup.'
cd ext/deque
emake
}
each_ruby_install() {
all_fakegem_install
dolib ext/deque/deque.so ext/fastfilereader/fastfilereaderext.so
}
each_ruby_test() {
ruby test/TC_Deque.rb || die "Test Case [Deque] failed."
ruby test/TC_ProxyBag.rb || die "Test Case [ProxyBag] failed."
ruby test/TC_Swiftiply.rb || die "Test Case [Swiftiply] failed."
}
|