diff options
author | Tom William Payne <twp@gentoo.org> | 2003-04-11 09:33:54 +0000 |
---|---|---|
committer | Tom William Payne <twp@gentoo.org> | 2003-04-11 09:33:54 +0000 |
commit | 68d920bc150c55fb48ad90c00f2d871c6bc06d3c (patch) | |
tree | c04137d645174fd2921d11612afb15cfb4bee649 /dev-ruby/eruby/eruby-1.0.3.ebuild | |
parent | Version bump (diff) | |
download | gentoo-2-68d920bc150c55fb48ad90c00f2d871c6bc06d3c.tar.gz gentoo-2-68d920bc150c55fb48ad90c00f2d871c6bc06d3c.tar.bz2 gentoo-2-68d920bc150c55fb48ad90c00f2d871c6bc06d3c.zip |
Version bump.
Diffstat (limited to 'dev-ruby/eruby/eruby-1.0.3.ebuild')
-rw-r--r-- | dev-ruby/eruby/eruby-1.0.3.ebuild | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/dev-ruby/eruby/eruby-1.0.3.ebuild b/dev-ruby/eruby/eruby-1.0.3.ebuild new file mode 100644 index 000000000000..0635bf417c00 --- /dev/null +++ b/dev-ruby/eruby/eruby-1.0.3.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2003 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License v2 +# Maintaner: Tools Team <tools@gentoo.org> +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/eruby/eruby-1.0.3.ebuild,v 1.1 2003/04/11 09:33:35 twp Exp $ + +DESCRIPTION="eRuby interprets a Ruby code embedded text file." +SRC_URI="http://www.modruby.net/archive/${P}.tar.gz" +HOMEPAGE="http://www.modruby.net" +LICENSE="GPL-2 | LGPL-2.1" +KEYWORDS="x86" +SLOT="0" + +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 +} |