diff options
-rw-r--r-- | dev-ruby/eruby/ChangeLog | 13 | ||||
-rw-r--r-- | dev-ruby/eruby/eruby-0.9.7.ebuild | 51 | ||||
-rw-r--r-- | dev-ruby/eruby/files/digest-eruby-0.9.7 | 1 |
3 files changed, 65 insertions, 0 deletions
diff --git a/dev-ruby/eruby/ChangeLog b/dev-ruby/eruby/ChangeLog new file mode 100644 index 000000000000..dc1ad50c227f --- /dev/null +++ b/dev-ruby/eruby/ChangeLog @@ -0,0 +1,13 @@ +# ChangeLog for dev-ruby/eruby +# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/eruby/ChangeLog,v 1.1 2002/03/04 22:36:58 karltk Exp $ + +*eruby-0.9.7 ( 4 Mar 2002 ) + + 4 Mar 2002; Karl Trygve Kalleberg <karltk@gentoo.org> all : + + mod_ruby embeds the Ruby interpreter into the Apache web server, allowing + Ruby CGI scripts to be executed natively. These scripts will start up much + faster than without mod_ruby. + + diff --git a/dev-ruby/eruby/eruby-0.9.7.ebuild b/dev-ruby/eruby/eruby-0.9.7.ebuild new file mode 100644 index 000000000000..7d9057cc2e09 --- /dev/null +++ b/dev-ruby/eruby/eruby-0.9.7.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# Maintaner: Tools Team <tools@gentoo.org> +# Author: Tuurlijk! <ebuilder@tuurlijk.eu.org> +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/eruby/eruby-0.9.7.ebuild,v 1.1 2002/03/04 22:36:58 karltk Exp $ + +A=${P}.tar.gz +S=${WORKDIR}/${P} +DESCRIPTION="eRuby interprets a Ruby code embedded text file." +SRC_URI="http://www.modruby.net/archive/${A}" +HOMEPAGE="http://www.modruby.net" + +DEPEND="virtual/glibc + >=dev-lang/ruby-1.6.1" + +src_compile() { + ruby ./configure.rb --with-charset=iso-8859-15 || die + make || die +} + +src_install () { + make DESTDIR=${D} install || die + dodoc README.* ChangeLog COPYING +} + +pkg_postinst() { + einfo "Run ebuild ruby-${PV}.ebuild config to update httpd.conf" +} + +pkg_config() { + if [ -f "${ROOT}/etc/httpd/httpd.conf" ] ; then + einfo "Activating ruby interpretation for /ruby location" + cp ${ROOT}/etc/httpd/httpd.conf ${ROOT}/etc/httpd/httpd.conf.orig + echo " +<IfModule mod_ruby.c> +RubyRequire apache/ruby-run + +# Excucute files under /ruby as Ruby scripts +<Location /ruby> + SetHandler ruby-object + RubyHandler Apache::RubyRun.instance +</Location> + +# Execute *.rbx files as Ruby scripts +<Files *.rbx> + SetHandler ruby-object + RubyHandler Apache::RubyRun.instance +</Files> +</IfModule>" >> ${ROOT}/etc/httpd/httpd.conf + fi +} diff --git a/dev-ruby/eruby/files/digest-eruby-0.9.7 b/dev-ruby/eruby/files/digest-eruby-0.9.7 new file mode 100644 index 000000000000..7fd3cef85f93 --- /dev/null +++ b/dev-ruby/eruby/files/digest-eruby-0.9.7 @@ -0,0 +1 @@ +MD5 0e07119bc6af7ab06788cd355d962423 eruby-0.9.7.tar.gz 60589 |