1 # -*- encoding: binary -*-
6 Echoe.new("unicorn") do |p|
7 p.summary = "Rack HTTP server for Unix, fast clients and nothing else"
9 p.email = "normalperson@yhbt.net"
10 p.clean_pattern = ['ext/unicorn_http/*.{bundle,so,o,obj,pdb,lib,def,exp}',
11 'lib/*.{bundle,so,o,obj,pdb,lib,def,exp}',
12 'ext/unicorn_http/Makefile',
13 'pkg', 'lib/*.bundle', '*.gem',
14 'site/output', '.config', 'coverage',
15 'test_*.log', 'log', 'doc']
16 p.url = "http://unicorn.bogomips.org/"
17 p.ignore_pattern = /^(pkg|site|projects|doc|log)|CVS|\.log/
20 p.dependencies = [ 'rack' ]
22 p.extension_pattern = ["ext/**/extconf.rb"]
24 # Eric hasn't bothered to figure out running exec tests properly
25 # from Rake, but Eric prefers GNU make to Rake for tests anyways...
26 p.test_pattern = [ 'test/unit/test*.rb' ]
31 desc "Rebuild the Ragel sources"
33 Dir.chdir "ext/unicorn_http" do
34 target = "unicorn_http.c"
35 File.unlink target if File.exist? target
36 sh "ragel unicorn_http.rl -C -G2 -o #{target}"
37 raise "Failed to build C source" unless File.exist? target