67 lines
1.8 KiB
Ruby
67 lines
1.8 KiB
Ruby
# Copyright 2010 Diaspora Inc.
|
|
#
|
|
# This file is part of Diaspora.
|
|
#
|
|
# Diaspora is free software: you can redistribute it and/or modify
|
|
# it under the terms of the GNU Affero General Public License as published by
|
|
# the Free Software Foundation, either version 3 of the License, or
|
|
# (at your option) any later version.
|
|
#
|
|
# Diaspora is distributed in the hope that it will be useful,
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
# GNU Affero General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
# along with Diaspora. If not, see <http://www.gnu.org/licenses/>.
|
|
#
|
|
|
|
|
|
|
|
## Defines available packages
|
|
|
|
package :ruby do
|
|
description 'Ruby Virtual Machine'
|
|
version '1.8.7'
|
|
patchlevel '249'
|
|
source "ftp://ftp.ruby-lang.org/pub/ruby/1.8/ruby-#{version}-p#{patchlevel}.tar.gz" # implicit :style => :gnu
|
|
requires :ruby_dependencies
|
|
end
|
|
|
|
package :ruby_dependencies do
|
|
description 'Ruby Virtual Machine Build Dependencies'
|
|
apt %w( bison zlib1g-dev libssl-dev libreadline5-dev libncurses5-dev file )
|
|
end
|
|
|
|
package :rubygems do
|
|
description 'Ruby Gems Package Management System'
|
|
version '1.3.7'
|
|
source "http://production.cf.rubygems.org/rubygems/rubygems-#{version}.tgz" do
|
|
custom_install 'ruby setup.rb'
|
|
end
|
|
run( "PATH=$PATH:/var/lib/gems/1.8/bin")
|
|
run( "export PATH")
|
|
requires :ruby
|
|
end
|
|
|
|
package :bundler do
|
|
description 'bundler'
|
|
version '0.9.26'
|
|
gem 'bundler'
|
|
requires :rubygems
|
|
end
|
|
|
|
package :diaspora_dependencies do
|
|
description 'random dependencies'
|
|
apt %w(libxslt1.1 libxslt1-dev libxml2 libgpgme11-dev imagemagick libmagick9-dev)
|
|
end
|
|
#package :diaspora do
|
|
# description 'Diaspora'
|
|
|
|
=begin
|
|
package :rails do
|
|
description 'Ruby on Rails'
|
|
gem 'rails'
|
|
version '>=3.0.0b4'
|
|
end
|
|
=end
|