1 diff -ur apache-mod_rails-2.2.15-o/Rakefile apache-mod_rails-2.2.15/Rakefile
2 --- apache-mod_rails-2.2.15-o/Rakefile 2010-08-28 23:04:20.000000000 -0600
3 +++ apache-mod_rails-2.2.15/Rakefile 2010-08-28 23:05:31.000000000 -0600
6 $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/lib")
7 $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/misc")
10 require 'rake/rdoctask'
11 -require 'rake/gempackagetask'
12 require 'rake/extensions'
13 require 'rake/cplusplus'
14 require 'phusion_passenger/platform_info'
16 rd.options << "-S" << "-N" << "-p" << "-H"
22 -spec = Gem::Specification.new do |s|
23 - s.platform = Gem::Platform::RUBY
24 - s.homepage = "http://www.modrails.com/"
25 - s.summary = "Apache module for Ruby on Rails support."
26 - s.name = "passenger"
27 - s.version = PACKAGE_VERSION
28 - s.rubyforge_project = "passenger"
29 - s.author = "Phusion - http://www.phusion.nl/"
30 - s.email = "info@phusion.nl"
31 - s.requirements << "fastthread" << "Apache 2 with development headers"
32 - s.require_paths = ["lib", "ext"]
33 - s.add_dependency 'rake', '>= 0.8.1'
34 - s.add_dependency 'fastthread', '>= 1.0.1'
35 - s.add_dependency 'rack'
36 - s.extensions << 'ext/phusion_passenger/extconf.rb'
46 - 'lib/phusion_passenger/templates/*',
47 - 'lib/phusion_passenger/templates/apache2/*',
48 - 'lib/phusion_passenger/templates/nginx/*',
52 - # If you're running 'rake package' for the first time, then these
53 - # files don't exist yet, and so won't be matched by the above glob.
54 - # So we add these filenames manually.
55 - 'doc/Users guide Apache.html',
56 - 'doc/Users guide Nginx.html',
57 - 'doc/Security of user switching support.html',
66 - 'ext/common/*.{cpp,c,h,hpp}',
67 - 'ext/apache2/*.{cpp,h,c,TXT}',
68 - 'ext/nginx/*.{c,cpp,h}',
70 - 'ext/boost/*.{hpp,TXT}',
71 - 'ext/boost/**/*.{hpp,cpp,pl,inl,ipp}',
74 - 'ext/oxt/detail/*.hpp',
75 - 'ext/phusion_passenger/*.{c,rb}',
76 - 'benchmark/*.{cpp,rb}',
79 - 'test/*.{rb,cpp,example}',
80 - 'test/support/*.{cpp,h,rb}',
83 - 'test/integration_tests/**/*',
87 - 'passenger-spawn-server',
88 - 'passenger-install-apache2-module',
89 - 'passenger-install-nginx-module',
91 - 'passenger-memory-stats',
92 - 'passenger-make-enterprisey',
94 - 'passenger-stress-test'
97 - s.extra_rdoc_files = ['README']
99 - "-S" << "-N" << "-p" << "-H" <<
100 - '--main' << 'README' <<
101 - '--title' << 'Passenger Ruby API'
102 - s.description = "Passenger is an Apache module for Ruby on Rails support."
105 -Rake::GemPackageTask.new(spec) do |pkg|
106 - pkg.need_tar_gz = true
109 -Rake::Task['package'].prerequisites.unshift(:doc)
110 -Rake::Task['package:gem'].prerequisites.unshift(:doc)
111 -Rake::Task['package:force'].prerequisites.unshift(:doc)
112 -task :clobber => :'package:clean'
114 desc "Create a fakeroot, useful for building native packages"
115 task :fakeroot => [:apache2, :native_support, :doc] do
118 sh "rm", "-rf", *Dir["#{docdir}/{definitions.h,Doxyfile,template}"]
121 -desc "Create a Debian package"
122 -task 'package:debian' => :fakeroot do
123 - if Process.euid != 0
125 - STDERR.puts "*** ERROR: the 'package:debian' task must be run as root."
130 - fakeroot = "pkg/fakeroot"
131 - raw_arch = `uname -m`.strip
132 - arch = case raw_arch
141 - sh "sed -i 's/Version: .*/Version: #{PACKAGE_VERSION}/' debian/control"
142 - sh "cp -R debian #{fakeroot}/DEBIAN"
143 - sh "sed -i 's/: any/: #{arch}/' #{fakeroot}/DEBIAN/control"
144 - sh "chown -R root:root #{fakeroot}"
145 - sh "dpkg -b #{fakeroot} pkg/passenger_#{PACKAGE_VERSION}-#{arch}.deb"
151 desc "Run 'sloccount' to see how much code Passenger has"