summaryrefslogtreecommitdiff
path: root/www
diff options
context:
space:
mode:
authorminskim <minskim>2006-10-12 08:36:21 +0000
committerminskim <minskim>2006-10-12 08:36:21 +0000
commit7a3c7ba4a335f760646fc82b7d9773889be38097 (patch)
tree0058a7a423ff7a49c710d6f1ab9fcd2d575719a7 /www
parent7012fb64085fb782db46a6855d14cdc0af27785c (diff)
downloadpkgsrc-7a3c7ba4a335f760646fc82b7d9773889be38097.tar.gz
Import rails-1.1.6.
Rails is a full-stack framework for developing database-backed web applications according to the Model-View-Control pattern. From the Ajax in the view, to the request and response in the controller, to the domain model wrapping the database, Rails gives you a pure-Ruby development environment. To go live, all you need to add is a database and a web server.
Diffstat (limited to 'www')
-rw-r--r--www/rails/DESCR6
-rw-r--r--www/rails/Makefile49
-rw-r--r--www/rails/PLIST217
-rw-r--r--www/rails/distinfo7
-rw-r--r--www/rails/patches/patch-aa24
-rw-r--r--www/rails/patches/patch-ab35
6 files changed, 338 insertions, 0 deletions
diff --git a/www/rails/DESCR b/www/rails/DESCR
new file mode 100644
index 00000000000..772ff149de4
--- /dev/null
+++ b/www/rails/DESCR
@@ -0,0 +1,6 @@
+Rails is a full-stack framework for developing database-backed web
+applications according to the Model-View-Control pattern. From the
+Ajax in the view, to the request and response in the controller, to
+the domain model wrapping the database, Rails gives you a pure-Ruby
+development environment. To go live, all you need to add is a
+database and a web server.
diff --git a/www/rails/Makefile b/www/rails/Makefile
new file mode 100644
index 00000000000..d74dac7f522
--- /dev/null
+++ b/www/rails/Makefile
@@ -0,0 +1,49 @@
+# $NetBSD: Makefile,v 1.1.1.1 2006/10/12 08:36:21 minskim Exp $
+
+DISTNAME= rails-1.1.6
+CATEGORIES= www
+MASTER_SITES= http://rubyforge.org/frs/download.php/12323/
+EXTRACT_SUFX= .tgz
+
+MAINTAINER= minskim@NetBSD.org
+HOMEPAGE= http://www.rubyonrails.org/
+COMMENT= Framework for developing database-backed web applications
+
+DEPENDS+= ${RUBY_PKGPREFIX}-activesupport>=1.3.1:../../devel/ruby-activesupport
+DEPENDS+= ${RUBY_PKGPREFIX}-activerecord>=1.14.4:../../databases/ruby-activerecord
+DEPENDS+= ${RUBY_PKGPREFIX}-actionpack>=1.12.5:../../www/ruby-actionpack
+DEPENDS+= ${RUBY_PKGPREFIX}-actionmailer>=1.2.5:../../mail/ruby-actionmailer
+DEPENDS+= ${RUBY_PKGPREFIX}-actionwebservice>=1.1.6:../../www/ruby-actionwebservice
+
+NO_BUILD= yes
+WRKSRC= ${WRKDIR}/rails/vendor/rails/railties
+
+REPLACE_RUBY_DIRS= ${WRKSRC}/bin
+REPLACE_FILE_PAT= *
+
+SUBST_CLASSES+= paths
+SUBST_MESSAGE.paths= Fixing hardcoded paths.
+SUBST_STAGE.paths= pre-configure
+SUBST_FILES.paths= lib/rails_generator/generators/applications/app/app_generator.rb
+SUBST_SED.paths= -e 's,:source =>.*,:source => "${PREFIX}/share/rails",g'
+
+INSTALLATION_DIRS= bin
+
+.include "../../lang/ruby/modules.mk"
+
+post-configure:
+ ${FIND} ${WRKSRC} -name \*.orig -exec ${RM} -f {} \;
+
+do-install:
+ ${INSTALL_SCRIPT} ${WRKSRC}/bin/rails ${PREFIX}/bin
+ ${INSTALL_DATA_DIR} ${RUBY_SITELIBDIR}/rails
+ cd ${WRKSRC}/lib && ${PAX} -rwppm * ${RUBY_SITELIBDIR}/
+ ${INSTALL_DATA_DIR} ${PREFIX}/share/rails
+.for f in CHANGELOG MIT-LICENSE README
+ ${INSTALL_DATA} ${WRKSRC}/${f} ${PREFIX}/share/rails
+.endfor
+ cd ${WRKSRC} && ${PAX} -rwppm bin builtin configs dispatches doc \
+ environments fresh_rakefile helpers html \
+ ${PREFIX}/share/rails/
+
+.include "../../mk/bsd.pkg.mk"
diff --git a/www/rails/PLIST b/www/rails/PLIST
new file mode 100644
index 00000000000..b8f9b9451a1
--- /dev/null
+++ b/www/rails/PLIST
@@ -0,0 +1,217 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2006/10/12 08:36:22 minskim Exp $
+bin/rails
+${RUBY_SITELIBDIR}/binding_of_caller.rb
+${RUBY_SITELIBDIR}/breakpoint.rb
+${RUBY_SITELIBDIR}/breakpoint_client.rb
+${RUBY_SITELIBDIR}/code_statistics.rb
+${RUBY_SITELIBDIR}/commands.rb
+${RUBY_SITELIBDIR}/commands/about.rb
+${RUBY_SITELIBDIR}/commands/breakpointer.rb
+${RUBY_SITELIBDIR}/commands/console.rb
+${RUBY_SITELIBDIR}/commands/destroy.rb
+${RUBY_SITELIBDIR}/commands/generate.rb
+${RUBY_SITELIBDIR}/commands/ncgi/listener
+${RUBY_SITELIBDIR}/commands/ncgi/tracker
+${RUBY_SITELIBDIR}/commands/performance/benchmarker.rb
+${RUBY_SITELIBDIR}/commands/performance/profiler.rb
+${RUBY_SITELIBDIR}/commands/plugin.rb
+${RUBY_SITELIBDIR}/commands/process/reaper.rb
+${RUBY_SITELIBDIR}/commands/process/spawner.rb
+${RUBY_SITELIBDIR}/commands/process/spinner.rb
+${RUBY_SITELIBDIR}/commands/runner.rb
+${RUBY_SITELIBDIR}/commands/server.rb
+${RUBY_SITELIBDIR}/commands/servers/lighttpd.rb
+${RUBY_SITELIBDIR}/commands/servers/webrick.rb
+${RUBY_SITELIBDIR}/commands/update.rb
+${RUBY_SITELIBDIR}/console_app.rb
+${RUBY_SITELIBDIR}/console_sandbox.rb
+${RUBY_SITELIBDIR}/console_with_helpers.rb
+${RUBY_SITELIBDIR}/dispatcher.rb
+${RUBY_SITELIBDIR}/fcgi_handler.rb
+${RUBY_SITELIBDIR}/initializer.rb
+${RUBY_SITELIBDIR}/rails/version.rb
+${RUBY_SITELIBDIR}/rails_generator.rb
+${RUBY_SITELIBDIR}/rails_generator/base.rb
+${RUBY_SITELIBDIR}/rails_generator/commands.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/applications/app/USAGE
+${RUBY_SITELIBDIR}/rails_generator/generators/applications/app/app_generator.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/controller/USAGE
+${RUBY_SITELIBDIR}/rails_generator/generators/components/controller/controller_generator.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/controller/templates/controller.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/controller/templates/functional_test.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/controller/templates/helper.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/controller/templates/view.rhtml
+${RUBY_SITELIBDIR}/rails_generator/generators/components/integration_test/USAGE
+${RUBY_SITELIBDIR}/rails_generator/generators/components/integration_test/integration_test_generator.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/integration_test/templates/integration_test.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/mailer/USAGE
+${RUBY_SITELIBDIR}/rails_generator/generators/components/mailer/mailer_generator.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/mailer/templates/fixture.rhtml
+${RUBY_SITELIBDIR}/rails_generator/generators/components/mailer/templates/mailer.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/mailer/templates/unit_test.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/mailer/templates/view.rhtml
+${RUBY_SITELIBDIR}/rails_generator/generators/components/migration/USAGE
+${RUBY_SITELIBDIR}/rails_generator/generators/components/migration/migration_generator.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/migration/templates/migration.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/model/USAGE
+${RUBY_SITELIBDIR}/rails_generator/generators/components/model/model_generator.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/model/templates/fixtures.yml
+${RUBY_SITELIBDIR}/rails_generator/generators/components/model/templates/migration.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/model/templates/model.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/model/templates/unit_test.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/plugin/USAGE
+${RUBY_SITELIBDIR}/rails_generator/generators/components/plugin/plugin_generator.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/plugin/templates/README
+${RUBY_SITELIBDIR}/rails_generator/generators/components/plugin/templates/Rakefile
+${RUBY_SITELIBDIR}/rails_generator/generators/components/plugin/templates/USAGE
+${RUBY_SITELIBDIR}/rails_generator/generators/components/plugin/templates/generator.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/plugin/templates/init.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/plugin/templates/install.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/plugin/templates/plugin.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/plugin/templates/tasks.rake
+${RUBY_SITELIBDIR}/rails_generator/generators/components/plugin/templates/unit_test.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/scaffold/USAGE
+${RUBY_SITELIBDIR}/rails_generator/generators/components/scaffold/scaffold_generator.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/scaffold/templates/controller.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/scaffold/templates/form.rhtml
+${RUBY_SITELIBDIR}/rails_generator/generators/components/scaffold/templates/form_scaffolding.rhtml
+${RUBY_SITELIBDIR}/rails_generator/generators/components/scaffold/templates/functional_test.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/scaffold/templates/helper.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/scaffold/templates/layout.rhtml
+${RUBY_SITELIBDIR}/rails_generator/generators/components/scaffold/templates/style.css
+${RUBY_SITELIBDIR}/rails_generator/generators/components/scaffold/templates/view_edit.rhtml
+${RUBY_SITELIBDIR}/rails_generator/generators/components/scaffold/templates/view_list.rhtml
+${RUBY_SITELIBDIR}/rails_generator/generators/components/scaffold/templates/view_new.rhtml
+${RUBY_SITELIBDIR}/rails_generator/generators/components/scaffold/templates/view_show.rhtml
+${RUBY_SITELIBDIR}/rails_generator/generators/components/session_migration/USAGE
+${RUBY_SITELIBDIR}/rails_generator/generators/components/session_migration/session_migration_generator.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/session_migration/templates/migration.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/web_service/USAGE
+${RUBY_SITELIBDIR}/rails_generator/generators/components/web_service/templates/api_definition.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/web_service/templates/controller.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/web_service/templates/functional_test.rb
+${RUBY_SITELIBDIR}/rails_generator/generators/components/web_service/web_service_generator.rb
+${RUBY_SITELIBDIR}/rails_generator/lookup.rb
+${RUBY_SITELIBDIR}/rails_generator/manifest.rb
+${RUBY_SITELIBDIR}/rails_generator/options.rb
+${RUBY_SITELIBDIR}/rails_generator/scripts.rb
+${RUBY_SITELIBDIR}/rails_generator/scripts/destroy.rb
+${RUBY_SITELIBDIR}/rails_generator/scripts/generate.rb
+${RUBY_SITELIBDIR}/rails_generator/scripts/update.rb
+${RUBY_SITELIBDIR}/rails_generator/simple_logger.rb
+${RUBY_SITELIBDIR}/rails_generator/spec.rb
+${RUBY_SITELIBDIR}/railties_path.rb
+${RUBY_SITELIBDIR}/ruby_version_check.rb
+${RUBY_SITELIBDIR}/rubyprof_ext.rb
+${RUBY_SITELIBDIR}/tasks/databases.rake
+${RUBY_SITELIBDIR}/tasks/documentation.rake
+${RUBY_SITELIBDIR}/tasks/framework.rake
+${RUBY_SITELIBDIR}/tasks/log.rake
+${RUBY_SITELIBDIR}/tasks/misc.rake
+${RUBY_SITELIBDIR}/tasks/pre_namespace_aliases.rake
+${RUBY_SITELIBDIR}/tasks/rails.rb
+${RUBY_SITELIBDIR}/tasks/statistics.rake
+${RUBY_SITELIBDIR}/tasks/testing.rake
+${RUBY_SITELIBDIR}/tasks/tmp.rake
+${RUBY_SITELIBDIR}/test_help.rb
+${RUBY_SITELIBDIR}/webrick_server.rb
+share/rails/CHANGELOG
+share/rails/MIT-LICENSE
+share/rails/README
+share/rails/bin/about
+share/rails/bin/breakpointer
+share/rails/bin/console
+share/rails/bin/destroy
+share/rails/bin/generate
+share/rails/bin/performance/benchmarker
+share/rails/bin/performance/profiler
+share/rails/bin/plugin
+share/rails/bin/process/reaper
+share/rails/bin/process/spawner
+share/rails/bin/rails
+share/rails/bin/runner
+share/rails/bin/server
+share/rails/builtin/rails_info/rails/info.rb
+share/rails/builtin/rails_info/rails/info_controller.rb
+share/rails/builtin/rails_info/rails/info_helper.rb
+share/rails/builtin/rails_info/rails_info_controller.rb
+share/rails/configs/apache.conf
+share/rails/configs/databases/mysql.yml
+share/rails/configs/databases/oracle.yml
+share/rails/configs/databases/postgresql.yml
+share/rails/configs/databases/sqlite2.yml
+share/rails/configs/databases/sqlite3.yml
+share/rails/configs/empty.log
+share/rails/configs/lighttpd.conf
+share/rails/configs/routes.rb
+share/rails/dispatches/dispatch.fcgi
+share/rails/dispatches/dispatch.rb
+share/rails/dispatches/gateway.cgi
+share/rails/doc/README_FOR_APP
+share/rails/environments/boot.rb
+share/rails/environments/development.rb
+share/rails/environments/environment.rb
+share/rails/environments/production.rb
+share/rails/environments/test.rb
+share/rails/fresh_rakefile
+share/rails/helpers/application.rb
+share/rails/helpers/application_helper.rb
+share/rails/helpers/test_helper.rb
+share/rails/html/404.html
+share/rails/html/500.html
+share/rails/html/favicon.ico
+share/rails/html/images/rails.png
+share/rails/html/index.html
+share/rails/html/javascripts/application.js
+share/rails/html/javascripts/controls.js
+share/rails/html/javascripts/dragdrop.js
+share/rails/html/javascripts/effects.js
+share/rails/html/javascripts/prototype.js
+share/rails/html/robots.txt
+@dirrm share/rails/html/javascripts
+@dirrm share/rails/html/images
+@dirrm share/rails/html
+@dirrm share/rails/helpers
+@dirrm share/rails/environments
+@dirrm share/rails/doc
+@dirrm share/rails/dispatches
+@dirrm share/rails/configs/databases
+@dirrm share/rails/configs
+@dirrm share/rails/builtin/rails_info/rails
+@dirrm share/rails/builtin/rails_info
+@dirrm share/rails/builtin
+@dirrm share/rails/bin/process
+@dirrm share/rails/bin/performance
+@dirrm share/rails/bin
+@dirrm share/rails
+@dirrm ${RUBY_SITELIBDIR}/tasks
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/scripts
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/web_service/templates
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/web_service
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/session_migration/templates
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/session_migration
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/scaffold/templates
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/scaffold
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/plugin/templates
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/plugin
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/model/templates
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/model
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/migration/templates
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/migration
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/mailer/templates
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/mailer
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/integration_test/templates
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/integration_test
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/controller/templates
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components/controller
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/components
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/applications/app
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators/applications
+@dirrm ${RUBY_SITELIBDIR}/rails_generator/generators
+@dirrm ${RUBY_SITELIBDIR}/rails_generator
+@dirrm ${RUBY_SITELIBDIR}/rails
+@dirrm ${RUBY_SITELIBDIR}/commands/servers
+@dirrm ${RUBY_SITELIBDIR}/commands/process
+@dirrm ${RUBY_SITELIBDIR}/commands/performance
+@dirrm ${RUBY_SITELIBDIR}/commands/ncgi
+@dirrm ${RUBY_SITELIBDIR}/commands
diff --git a/www/rails/distinfo b/www/rails/distinfo
new file mode 100644
index 00000000000..40bd0eb7671
--- /dev/null
+++ b/www/rails/distinfo
@@ -0,0 +1,7 @@
+$NetBSD: distinfo,v 1.1.1.1 2006/10/12 08:36:21 minskim Exp $
+
+SHA1 (rails-1.1.6.tgz) = 33b0ccb2fb95a2d7e6bde4496468752d0597f46c
+RMD160 (rails-1.1.6.tgz) = 11b3147bc194acc80c211254c4bde9d9570bde00
+Size (rails-1.1.6.tgz) = 1817814 bytes
+SHA1 (patch-aa) = 7a3d4f4b435c0de22f00f665092ccff046387170
+SHA1 (patch-ab) = 25a9411f4983db533469a6d8e84fa86a6b91e4e3
diff --git a/www/rails/patches/patch-aa b/www/rails/patches/patch-aa
new file mode 100644
index 00000000000..17de08a022d
--- /dev/null
+++ b/www/rails/patches/patch-aa
@@ -0,0 +1,24 @@
+$NetBSD: patch-aa,v 1.1.1.1 2006/10/12 08:36:22 minskim Exp $
+
+--- bin/rails.orig 2006-08-10 10:34:33.000000000 -0700
++++ bin/rails
+@@ -1,7 +1,8 @@
+-require File.dirname(__FILE__) + '/../lib/ruby_version_check'
++#!/usr/bin/env ruby
++require 'ruby_version_check'
+ Signal.trap("INT") { puts; exit }
+
+-require File.dirname(__FILE__) + '/../lib/rails/version'
++require 'rails/version'
+ if %w(--version -v).include? ARGV.first
+ puts "Rails #{Rails::VERSION::STRING}"
+ exit(0)
+@@ -10,7 +11,7 @@ end
+ freeze = ARGV.any? { |option| %w(--freeze -f).include?(option) }
+ app_path = ARGV.first
+
+-require File.dirname(__FILE__) + '/../lib/rails_generator'
++require 'rails_generator'
+
+ require 'rails_generator/scripts/generate'
+ Rails::Generator::Base.use_application_sources!
diff --git a/www/rails/patches/patch-ab b/www/rails/patches/patch-ab
new file mode 100644
index 00000000000..00099cf915c
--- /dev/null
+++ b/www/rails/patches/patch-ab
@@ -0,0 +1,35 @@
+$NetBSD: patch-ab,v 1.1.1.1 2006/10/12 08:36:22 minskim Exp $
+
+--- environments/boot.rb.orig 2006-08-10 10:34:33.000000000 -0700
++++ environments/boot.rb
+@@ -15,29 +15,7 @@ unless defined?(Rails::Initializer)
+ if File.directory?("#{RAILS_ROOT}/vendor/rails")
+ require "#{RAILS_ROOT}/vendor/rails/railties/lib/initializer"
+ else
+- require 'rubygems'
+-
+- environment_without_comments = IO.readlines(File.dirname(__FILE__) + '/environment.rb').reject { |l| l =~ /^#/ }.join
+- environment_without_comments =~ /[^#]RAILS_GEM_VERSION = '([\d.]+)'/
+- rails_gem_version = $1
+-
+- if version = defined?(RAILS_GEM_VERSION) ? RAILS_GEM_VERSION : rails_gem_version
+- rails_gem = Gem.cache.search('rails', "=#{version}").first
+-
+- if rails_gem
+- require_gem "rails", "=#{version}"
+- require rails_gem.full_gem_path + '/lib/initializer'
+- else
+- STDERR.puts %(Cannot find gem for Rails =#{version}:
+- Install the missing gem with 'gem install -v=#{version} rails', or
+- change environment.rb to define RAILS_GEM_VERSION with your desired version.
+- )
+- exit 1
+- end
+- else
+- require_gem "rails"
+- require 'initializer'
+- end
++ require 'initializer'
+ end
+
+ Rails::Initializer.run(:set_load_path)