summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom William Payne <twp@gentoo.org>2003-04-11 09:33:54 +0000
committerTom William Payne <twp@gentoo.org>2003-04-11 09:33:54 +0000
commit68d920bc150c55fb48ad90c00f2d871c6bc06d3c (patch)
treec04137d645174fd2921d11612afb15cfb4bee649 /dev-ruby/eruby
parentVersion bump (diff)
downloadgentoo-2-68d920bc150c55fb48ad90c00f2d871c6bc06d3c.tar.gz
gentoo-2-68d920bc150c55fb48ad90c00f2d871c6bc06d3c.tar.bz2
gentoo-2-68d920bc150c55fb48ad90c00f2d871c6bc06d3c.zip
Version bump.
Diffstat (limited to 'dev-ruby/eruby')
-rw-r--r--dev-ruby/eruby/ChangeLog8
-rw-r--r--dev-ruby/eruby/eruby-1.0.3.ebuild51
-rw-r--r--dev-ruby/eruby/files/digest-eruby-1.0.32
3 files changed, 60 insertions, 1 deletions
diff --git a/dev-ruby/eruby/ChangeLog b/dev-ruby/eruby/ChangeLog
index 7267af24f12d..2bd9f45e6a0f 100644
--- a/dev-ruby/eruby/ChangeLog
+++ b/dev-ruby/eruby/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for dev-ruby/eruby
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/eruby/ChangeLog,v 1.3 2003/02/12 06:35:26 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/eruby/ChangeLog,v 1.4 2003/04/11 09:33:35 twp Exp $
+
+*eruby-1.0.3 (11 Apr 2003)
+
+ 11 Apr 2003; Tom Payne <twp@gentoo.org> eruby-1.0.3.ebuild :
+
+ Version bump.
*eruby-0.9.7 ( 4 Mar 2002 )
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
+}
diff --git a/dev-ruby/eruby/files/digest-eruby-1.0.3 b/dev-ruby/eruby/files/digest-eruby-1.0.3
new file mode 100644
index 000000000000..f84ad46c284b
--- /dev/null
+++ b/dev-ruby/eruby/files/digest-eruby-1.0.3
@@ -0,0 +1,2 @@
+MD5 86e02fe5a39e0ddaa4f2770cc4cab218 /eruby-1.0.3.ebuild 1341
+MD5 a6ac9089cf0536e9fad01b3f5eb16287 eruby-1.0.3.tar.gz 60514