# Copyright 1999-2000 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later # Author Tuurlijk! 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 try make || die } src_install () { try make PREFIX=${D}/usr install || die dodoc README.* ChangeLog COPYING } pkg_postinst() { einfo "-----------------------------------------------------------------------------" einfo "If you want eruby to be able to put ruby code in your html and have Apache parse your .rhml files as ruby code, you should put the following lines (as described on http://www.modruby.net/doc/install.en.html) in your /etc/httpd/httpd.conf:" einfo "----------------------------------------------------------------------------- RubyRequire apache/ruby-run # Excucute files under /ruby as Ruby scripts SetHandler ruby-object RubyHandler Apache::RubyRun.instance # Execute *.rbx files as Ruby scripts SetHandler ruby-object RubyHandler Apache::RubyRun.instance " einfo "-----------------------------------------------------------------------------" }