public
Description: A high performance clustering proxy / web server for web applications.
Homepage: http://swiftiply.swiftcore.org
Clone URL: git://github.com/wyhaines/swiftiply.git
Click here to lend your support to: swiftiply and make a donation at www.pledgie.com !
swiftiply / setup.rb
100755 53 lines (44 sloc) 1.406 kb
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
#!ruby
 
basedir = File.dirname(__FILE__)
$:.push(basedir)
require 'external/package'
require 'rbconfig'
begin
require 'rubygems'
rescue LoadError
end
 
Dir.chdir(basedir)
Package.setup("1.0") {
# TODO pull version right from the code's version.rb.
name "Swiftcore Swiftiply v. 0.6.4"
 
build_ext "fastfilereader"
translate(:ext, 'ext/fastfilereader/' => '/')
#translate(:ext, 'ext/http11/' => 'iowa/')
 
ext "ext/fastfilereader/fastfilereaderext.so"
ext "ext/fastfilereader/fastfilereaderext.bundle"
 
build_ext "deque"
translate(:ext, 'ext/deque/' => '/swiftcore/')
ext "ext/deque/deque.so"
ext "ext/deque/deque.bundle"
 
build_ext "splaytree"
translate(:ext, 'ext/splaytree/' => '/swiftcore/')
ext "ext/splaytree/splaytreemap.so"
ext "ext/splaytree/splaytreemap.bundle"
 
translate(:lib, 'src/' => '')
translate(:bin, 'bin/' => '')
lib(*Dir["src/swiftcore/**/*.rb"])
lib("src/swiftcore/evented_mongrel.rb")
lib("src/swiftcore/swiftiplied_mongrel.rb")
lib(*Dir["src/ramaze/adapter/*.rb"])
ri(*Dir["src/swiftcore/**/*.rb"])
bin "bin/swiftiply"
bin "bin/swiftiply_mongrel_rails"
#File.rename("#{Config::CONFIG["bindir"]}/mongrel_rails","#{Config::CONFIG["bindir"]}/mongrel_rails.orig")
bin "bin/swiftiplied_mongrel_rails"
bin "bin/evented_mongrel_rails"
bin "bin/swiftiplyctl"
 
unit_test "test/TC_ProxyBag.rb"
unit_test "test/TC_Swiftiply.rb"
unit_test "test/TC_Deque.rb"
true
}