updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / ruby-rails-aio / PKGBUILD
blob9aa74dd53eb4c0b6e0dad0ed7275016f51d7d426
1 # Contributor: Alexsandr Pavlov <kidoz at mail dot ru>
2 pkgname=ruby-rails-aio
3 pkgver=3.2.0
4 #Core
5 _actionmailer_pkgver=${pkgver}
6 _actionpack_pkgver=${pkgver}
7 _activemodel_pkgver=${pkgver}
8 _activerecord_pkgver=${pkgver}
9 _activeresource_pkgver=${pkgver}
10 _activesupport_pkgver=${pkgver}
11 _bundler_pkgver=1.0.21
12 _rails_pkgver=${pkgver}
13 _railties_pkgver=${pkgver}
14 #Depends
15 _arel_pkgver=2.2.1
16 _builder_pkgver=3.0.0
17 _erubis_pkgver=2.7.0
18 _hike_pkgver=1.2.1
19 _i18n_pkgver=0.6.0
20 _journey_pkgver=1.0.0
21 _json_pkgver=1.6.1
22 _mail_pkgver=2.4.1
23 _mime_types_pkgver=1.17.2
24 _multi_json_pkgver=1.0.4
25 _polyglot_pkgver=0.3.3
26 _rack_pkgver=1.4.0
27 _rack_cache_pkgver=1.1
28 _rack_ssl_pkgver=1.3.2
29 _rack_test_pkgver=0.6.1
30 _sprockets_pkgver=2.3.0
31 _thor_pkgver=0.14.6
32 _tilt_pkgver=1.3.3
33 _treetop_pkgver=1.4.10
34 _tzinfo_pkgver=0.3.31
35 pkgrel=1
36 pkgdesc="Is an open source web application framework for the Ruby programming language."
37 arch=(any)
38 url="http://www.rubyonrails.org"
39 license=('MIT')
40 depends=('ruby' 'rubygems')
41 provides=("ruby-actionmailer=${_actionmailer_pkgver}" "ruby-actionpack=${_actionpack_pkgver}" "ruby-activemodel=${_activemodel_pkgver}" \
42                 "ruby-activerecord=${_activerecord_pkgver}" "ruby-activeresource=${_activeresource_pkgver}" "ruby-activesupport=${_activesupport_pkgver}" \
43                 "ruby-arel=${_arel_pkgver}" "ruby-builder=${_builder_pkgver}" "ruby-bundler=${_bundler_pkgver}" "ruby-erubis=${_erubis_pkgver}" \
44                 "ruby-hike=${_hike_pkgver}" "ruby-i18n=${_i18n_pkgver}" "ruby-journey=${_journey_pkgver}" "ruby-json=${_json_pkgver}" \
45                 "ruby-mail=${_mail_pkgver}" "ruby-mime-types=${_mime_types_pkgver}" "ruby-multi_json=${_multi_json_pkgver}" "ruby-polyglot=${_polyglot_pkgver}" \
46                 "ruby-rack=${_rack_pkgver}" "ruby-rack-cache=${_rack_cache_pkgver}" "ruby-rack-ssl=${_rack_ssl_pkgver}" "ruby-rack-test=${_rack_test_pkgver}" \
47                 "ruby-rails=${pkgver}" "ruby-railties=${_railties_pkgver}" "ruby-sprockets=${_sprockets_pkgver}" "ruby-thor=${_thor_pkgver}" "ruby-tilt=${_tilt_pkgver}" \
48                 "ruby-treetop=${_treetop_pkgver}" "ruby-tzinfo=${_tzinfo_pkgver}")
50 conflicts=('ruby-rack' 'ruby-rack110' 'ruby-rack1xx' 'rails' 'ruby-rails' 'ruby-rails2xx' 'ruby-rails2xx-aio')
52 source=(http://gems.rubyforge.org/gems/actionmailer-${_actionmailer_pkgver}.gem
53                 http://gems.rubyforge.org/gems/actionpack-${_actionpack_pkgver}.gem
54                 http://gems.rubyforge.org/gems/activemodel-${_activemodel_pkgver}.gem
55                 http://gems.rubyforge.org/gems/activerecord-${_activerecord_pkgver}.gem
56                 http://gems.rubyforge.org/gems/activeresource-${_activeresource_pkgver}.gem
57                 http://gems.rubyforge.org/gems/activesupport-${_activesupport_pkgver}.gem
58                 http://gems.rubyforge.org/gems/bundler-${_bundler_pkgver}.gem
59                 http://gems.rubyforge.org/gems/rails-${_rails_pkgver}.gem
60                 http://gems.rubyforge.org/gems/railties-${_railties_pkgver}.gem
61                 http://gems.rubyforge.org/gems/arel-${_arel_pkgver}.gem
62                 http://gems.rubyforge.org/gems/builder-${_builder_pkgver}.gem
63                 http://gems.rubyforge.org/gems/erubis-${_erubis_pkgver}.gem
64                 http://gems.rubyforge.org/gems/hike-${_hike_pkgver}.gem
65                 http://gems.rubyforge.org/gems/i18n-${_i18n_pkgver}.gem
66                 http://gems.rubyforge.org/gems/journey-${_journey_pkgver}.gem
67                 http://gems.rubyforge.org/gems/json-${_json_pkgver}.gem
68                 http://gems.rubyforge.org/gems/mail-${_mail_pkgver}.gem
69                 http://gems.rubyforge.org/gems/mime-types-${_mime_types_pkgver}.gem
70                 http://gems.rubyforge.org/gems/multi_json-${_multi_json_pkgver}.gem
71                 http://gems.rubyforge.org/gems/polyglot-${_polyglot_pkgver}.gem
72                 http://gems.rubyforge.org/gems/rack-${_rack_pkgver}.gem
73                 http://gems.rubyforge.org/gems/rack-cache-${_rack_cache_pkgver}.gem
74                 http://gems.rubyforge.org/gems/rack-ssl-${_rack_ssl_pkgver}.gem
75                 http://gems.rubyforge.org/gems/rack-test-${_rack_test_pkgver}.gem
76                 http://gems.rubyforge.org/gems/sprockets-${_sprockets_pkgver}.gem
77                 http://gems.rubyforge.org/gems/thor-${_thor_pkgver}.gem
78                 http://gems.rubyforge.org/gems/tilt-${_tilt_pkgver}.gem
79                 http://gems.rubyforge.org/gems/treetop-${_treetop_pkgver}.gem
80                 http://gems.rubyforge.org/gems/tzinfo-${_tzinfo_pkgver}.gem)
82 noextract=(actionmailer-${_actionmailer_pkgver}.gem
83                 actionpack-${_actionpack_pkgver}.gem
84                 activemodel-${_activemodel_pkgver}.gem
85                 activerecord-${_activerecord_pkgver}.gem
86                 activeresource-${_activeresource_pkgver}.gem
87                 activesupport-${_activesupport_pkgver}.gem
88                 bundler-${_bundler_pkgver}.gem
89                 rails-${_rails_pkgver}.gem
90                 railties-${_railties_pkgver}.gem
91                 arel-${_arel_pkgver}.gem
92                 builder-${_builder_pkgver}.gem
93                 erubis-${_erubis_pkgver}.gem
94                 hike-${_hike_pkgver}.gem
95                 i18n-${_i18n_pkgver}.gem
96                 journey-${_journey_pkgver}.gem
97                 json-${_json_pkgver}.gem
98                 mail-${_mail_pkgver}.gem
99                 mime-types-${_mime_types_pkgver}.gem
100                 multi_json-${_multi_json_pkgver}.gem
101                 polyglot-${_polyglot_pkgver}.gem
102                 rack-${_rack_pkgver}.gem
103                 rack-cache-${_rack_cache_pkgver}.gem
104                 rack-ssl-${_rack_ssl_pkgver}.gem
105                 rack-test-${_rack_test_pkgver}.gem
106                 sprockets-${_sprockets_pkgver}.gem
107                 thor-${_thor_pkgver}.gem
108                 tilt-${_tilt_pkgver}.gem
109                 treetop-${_treetop_pkgver}.gem
110                 tzinfo-${_tzinfo_pkgver}.gem)
112                 md5sums=('6dafa2df4688a21ac6d559810527f781'
113                 '0e8d7f99b9cf76517adc59b17f441626'
114                 '0d53d1b750b8578dc3e9facbfac208e6'
115                 'e184e5b4a31782e6318542a3a051571e'
116                 'd337607a6ca0f62ae4b5249f8c6be7b2'
117                 '6f23c7ac4308c6dcec9171d1b58ad908'
118                 '3878473cbaa1355cbc332f2b8ef44de7'
119                 '9c8a0e9d20a0ed4bc9f06fa5d6bb27d4'
120                 '738bb38e012f722929ab0d347853c992'
121                 '984b6cbe44546a7aeaa7370a85597cac'
122                 'cf9d2693d684a749e35dda886c4dc23c'
123                 'cca3cf13ef951d1fc8c124d2fde52565'
124                 'fc7d49a1d99eb4e7812e134d3e609346'
125                 'fb94282dab8aadb7de15db134f8133ff'
126                 '6d09fd2ad13e06080d3e9e33cf3d2fd8'
127                 '1dddafdc136e77ee96834c7a0eed38f3'
128                 '34079b6ec50495bdb39f973e7bbeb8db'
129                 'ecc7a90a252de99a164d86b4a154da67'
130                 'e3feb320993a12eebea40af2496878e8'
131                 '01e313080095caf4dc7ab71fd572a377'
132                 'c2a2100159ebd81ceffc20bd38323152'
133                 '0606345ecceeb3388c52a5a99d95d258'
134                 '45da2233b7580af57fbe9cbecb54e369'
135                 '8226527d4c84f96107bcf7aa87700d3c'
136                 'dd34c38f2e282461489bd2b6083c8833'
137                 'd52dcc3cc08a2e6443bba665c2123a59'
138                 '499458da7755dddaee177922f1641659'
139                 '5b83a9e84b0ca16aa669d546798d5fdc'
140                 '8290c9397dbadf3c5a764883e6ff10e1')
142 _gem_list=(actionmailer-${_actionmailer_pkgver}
143                 actionpack-${_actionpack_pkgver}
144                 activemodel-${_activemodel_pkgver}
145                 activerecord-${_activerecord_pkgver}
146                 activeresource-${_activeresource_pkgver}
147                 activesupport-${_activesupport_pkgver}
148                 bundler-${_bundler_pkgver}
149                 rails-${_rails_pkgver}
150                 railties-${_railties_pkgver}
151                 arel-${_arel_pkgver}
152                 builder-${_builder_pkgver}
153                 erubis-${_erubis_pkgver}
154                 hike-${_hike_pkgver}
155                 i18n-${_i18n_pkgver}
156                 journey-${_journey_pkgver}
157                 json-${_json_pkgver}
158                 mail-${_mail_pkgver}
159                 mime-types-${_mime_types_pkgver}
160                 multi_json-${_multi_json_pkgver}
161                 polyglot-${_polyglot_pkgver}
162                 rack-${_rack_pkgver}
163                 rack-cache-${_rack_cache_pkgver}
164                 rack-ssl-${_rack_ssl_pkgver}
165                 rack-test-${_rack_test_pkgver}
166                 sprockets-${_sprockets_pkgver}
167                 thor-${_thor_pkgver}
168                 tilt-${_tilt_pkgver}
169                 treetop-${_treetop_pkgver}
170                 tzinfo-${_tzinfo_pkgver})
172 build() {
173   cd "${srcdir}"
174   export HOME=/tmp
175   local _gemdir="$(ruby -rubygems -e'puts Gem.default_dir')"
176   for _gem_name in ${_gem_list[*]}
177     do gem install --ignore-dependencies -i "${pkgdir}${_gemdir}" -n "${pkgdir}/usr/bin" ${_gem_name}.gem
178   done