]> git.pld-linux.org Git - packages/passenger.git/blob - apache-mod_rails-nogems.patch
- add nogems patch
[packages/passenger.git] / apache-mod_rails-nogems.patch
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
4 @@ -18,10 +18,8 @@
5  
6  $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/lib")
7  $LOAD_PATH.unshift("#{File.dirname(__FILE__)}/misc")
8 -require 'rubygems'
9  require 'pathname'
10  require 'rake/rdoctask'
11 -require 'rake/gempackagetask'
12  require 'rake/extensions'
13  require 'rake/cplusplus'
14  require 'phusion_passenger/platform_info'
15 @@ -640,101 +638,6 @@
16         rd.options << "-S" << "-N" << "-p" << "-H"
17  end
18  
19 -
20 -##### Packaging
21 -
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'
37 -       s.files = FileList[
38 -               'Rakefile',
39 -               'README',
40 -               'DEVELOPERS.TXT',
41 -               'LICENSE',
42 -               'INSTALL',
43 -               'NEWS',
44 -               'lib/**/*.rb',
45 -               'lib/**/*.py',
46 -               'lib/phusion_passenger/templates/*',
47 -               'lib/phusion_passenger/templates/apache2/*',
48 -               'lib/phusion_passenger/templates/nginx/*',
49 -               'bin/*',
50 -               'doc/*',
51 -               
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',
58 -               
59 -               'doc/*/*',
60 -               'doc/*/*/*',
61 -               'doc/*/*/*/*',
62 -               'doc/*/*/*/*/*',
63 -               'doc/*/*/*/*/*/*',
64 -               'man/*',
65 -               'debian/*',
66 -               'ext/common/*.{cpp,c,h,hpp}',
67 -               'ext/apache2/*.{cpp,h,c,TXT}',
68 -               'ext/nginx/*.{c,cpp,h}',
69 -               'ext/nginx/config',
70 -               'ext/boost/*.{hpp,TXT}',
71 -               'ext/boost/**/*.{hpp,cpp,pl,inl,ipp}',
72 -               'ext/oxt/*.hpp',
73 -               'ext/oxt/*.cpp',
74 -               'ext/oxt/detail/*.hpp',
75 -               'ext/phusion_passenger/*.{c,rb}',
76 -               'benchmark/*.{cpp,rb}',
77 -               'misc/*',
78 -               'misc/*/*',
79 -               'test/*.{rb,cpp,example}',
80 -               'test/support/*.{cpp,h,rb}',
81 -               'test/oxt/*.cpp',
82 -               'test/ruby/**/*',
83 -               'test/integration_tests/**/*',
84 -               'test/stub/**/*'
85 -       ]
86 -       s.executables = [
87 -               'passenger-spawn-server',
88 -               'passenger-install-apache2-module',
89 -               'passenger-install-nginx-module',
90 -               'passenger-config',
91 -               'passenger-memory-stats',
92 -               'passenger-make-enterprisey',
93 -               'passenger-status',
94 -               'passenger-stress-test'
95 -       ]
96 -       s.has_rdoc = true
97 -       s.extra_rdoc_files = ['README']
98 -       s.rdoc_options <<
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."
103 -end
104 -
105 -Rake::GemPackageTask.new(spec) do |pkg|
106 -       pkg.need_tar_gz = true
107 -end
108 -
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'
113 -
114  desc "Create a fakeroot, useful for building native packages"
115  task :fakeroot => [:apache2, :native_support, :doc] do
116         require 'rbconfig'
117 @@ -772,34 +675,6 @@
118         sh "rm", "-rf", *Dir["#{docdir}/{definitions.h,Doxyfile,template}"]
119  end
120  
121 -desc "Create a Debian package"
122 -task 'package:debian' => :fakeroot do
123 -       if Process.euid != 0
124 -               STDERR.puts
125 -               STDERR.puts "*** ERROR: the 'package:debian' task must be run as root."
126 -               STDERR.puts
127 -               exit 1
128 -       end
129 -
130 -       fakeroot = "pkg/fakeroot"
131 -       raw_arch = `uname -m`.strip
132 -       arch = case raw_arch
133 -       when /^i.86$/
134 -               "i386"
135 -       when /^x86_64/
136 -               "amd64"
137 -       else
138 -               raw_arch
139 -       end
140 -       
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"
146 -end
147 -
148 -
149  ##### Misc
150  
151  desc "Run 'sloccount' to see how much code Passenger has"
This page took 0.086143 seconds and 4 git commands to generate.