summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Heim <phreak@gentoo.org>2007-08-19 12:34:20 +0000
committerChristian Heim <phreak@gentoo.org>2007-08-19 12:34:20 +0000
commiteebb9152537499cbb8ece562a750e5c3c54cf1af (patch)
treec5c606ee18b989f31ac986a55cdbfc9cc8455679 /www-apache/mod_ruby
parentVersion bump. Fixes bug #180353. Thanks to xerxes <xerxesmc@web.de> and Andre... (diff)
downloadhistorical-eebb9152537499cbb8ece562a750e5c3c54cf1af.tar.gz
historical-eebb9152537499cbb8ece562a750e5c3c54cf1af.tar.bz2
historical-eebb9152537499cbb8ece562a750e5c3c54cf1af.zip
Moving dev-ruby/mod_ruby to www-apache.
Package-Manager: portage-2.1.3.6
Diffstat (limited to 'www-apache/mod_ruby')
-rw-r--r--www-apache/mod_ruby/ChangeLog173
-rw-r--r--www-apache/mod_ruby/Manifest38
-rw-r--r--www-apache/mod_ruby/files/21_mod_ruby.conf55
-rw-r--r--www-apache/mod_ruby/files/digest-mod_ruby-1.2.4-r23
-rw-r--r--www-apache/mod_ruby/files/digest-mod_ruby-1.2.63
-rw-r--r--www-apache/mod_ruby/metadata.xml6
-rw-r--r--www-apache/mod_ruby/mod_ruby-1.2.4-r2.ebuild47
-rw-r--r--www-apache/mod_ruby/mod_ruby-1.2.6.ebuild47
8 files changed, 372 insertions, 0 deletions
diff --git a/www-apache/mod_ruby/ChangeLog b/www-apache/mod_ruby/ChangeLog
new file mode 100644
index 000000000000..65c13655c4e5
--- /dev/null
+++ b/www-apache/mod_ruby/ChangeLog
@@ -0,0 +1,173 @@
+# ChangeLog for dev-ruby/mod_ruby
+# Copyright 2002-2007 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_ruby/ChangeLog,v 1.1 2007/08/19 12:34:20 phreak Exp $
+
+ 19 Aug 2007; Christian Heim <phreak@gentoo.org>:
+ Moving dev-ruby/mod_ruby to www-apache.
+
+*mod_ruby-1.2.6 (17 May 2007)
+
+ 17 May 2007; Luca Longinotti <chtekk@gentoo.org> mod_ruby-1.2.4-r2.ebuild,
+ +mod_ruby-1.2.6.ebuild:
+ Update to support Apache 2.2. Fix compilation wrt Apache1 removal.
+
+ 15 Jan 2007; Luca Longinotti <chtekk@gentoo.org> -files/mod_ruby.conf,
+ mod_ruby-1.2.4-r2.ebuild:
+ Cleanup.
+
+ 13 Jan 2007; Luca Longinotti <chtekk@gentoo.org> -files/20_mod_ruby.conf,
+ -mod_ruby-1.0.7.ebuild, -mod_ruby-1.2.2.ebuild, -mod_ruby-1.2.4.ebuild,
+ -mod_ruby-1.2.4-r1.ebuild:
+ Remove old versions.
+
+ 13 Jan 2007; Luca Longinotti <chtekk@gentoo.org> metadata.xml:
+ Add Apache herd to metadata.
+
+ 05 Jan 2007; Diego Pettenò <flameeyes@gentoo.org> mod_ruby-1.2.2.ebuild,
+ mod_ruby-1.2.4.ebuild:
+ Convert to use elog.
+
+ 20 Oct 2006; Aron Griffis <agriffis@gentoo.org> mod_ruby-1.2.4-r2.ebuild:
+ Mark 1.2.4-r2 stable on alpha
+
+ 09 Aug 2006; Simon Stelling <blubb@gentoo.org> mod_ruby-1.2.4-r2.ebuild:
+ stable on amd64
+
+ 04 Jun 2006; Michael Stewart <vericgar@gentoo.org>
+ mod_ruby-1.2.4-r2.ebuild:
+ Address dependency issues caused by depend.apache. Refer to bug 107127.
+
+ 09 Mar 2006; Aron Griffis <agriffis@gentoo.org> mod_ruby-1.2.4-r2.ebuild:
+ Mark 1.2.4-r2 stable on ia64
+
+ 25 Feb 2006; Mark Loeser <halcy0n@gentoo.org> mod_ruby-1.2.4-r2.ebuild:
+ Stable on x86; bug #121831
+
+ 17 Feb 2006; Joseph Jezak <josejx@gentoo.org> mod_ruby-1.2.4-r2.ebuild:
+ Marked ppc stable for bug #121831.
+
+ 15 Feb 2006; Markus Rothe <corsair@gentoo.org> mod_ruby-1.2.4-r2.ebuild:
+ Stable on ppc64; bug #121831
+
+ 14 Dec 2005; Caleb Tennis <caleb@gentoo.org> mod_ruby-1.2.2.ebuild,
+ mod_ruby-1.2.4.ebuild:
+ Change PV to PF per bug #112668
+
+ 03 Oct 2005; Aron Griffis <agriffis@gentoo.org> mod_ruby-1.2.4-r2.ebuild:
+ Mark 1.2.4-r2 ~ia64
+
+ 24 Apr 2005; Simon Stelling <blubb@gentoo.org> mod_ruby-1.2.4.ebuild:
+ stable on amd64
+
+*mod_ruby-1.2.4-r2 (13 Apr 2005)
+
+ 13 Apr 2005; Caleb Tennis <caleb@gentoo.org> +files/21_mod_ruby.conf,
+ +mod_ruby-1.2.4-r2.ebuild:
+ Bump for file fixes in right spot (#77564)
+
+ 08 Apr 2005; Caleb Tennis <caleb@gentoo.org> mod_ruby-1.2.4-r1.ebuild:
+ minor formatting fix (Bug #88316)
+
+*mod_ruby-1.2.4-r1 (23 Mar 2005)
+
+ 23 Mar 2005; Caleb Tennis <caleb@gentoo.org> +mod_ruby-1.2.4-r1.ebuild:
+ New attempt at a apache-modules compliant ebuild
+
+ 16 Dec 2004; Markus Rothe <corsair@gentoo.org> mod_ruby-1.2.4.ebuild:
+ Stable on ppc64
+
+ 09 Dec 2004; Mamoru KOMACHI <usata@gentoo.org> mod_ruby-1.2.4.ebuild:
+ Stable on x86, ppc and alpha.
+
+ 01 Nov 2004; Markus Rothe <corsair@gentoo.org> mod_ruby-1.2.2.ebuild:
+ Marked ~ppc64; bug #67066
+
+*mod_ruby-1.2.4 (20 Oct 2004)
+
+ 20 Oct 2004; Mamoru KOMACHI <usata@gentoo.org> -mod_ruby-1.2.0.ebuild,
+ mod_ruby-1.2.2.ebuild, +mod_ruby-1.2.4.ebuild:
+ Version bumped.
+
+ 10 Oct 2004; Simon Stelling <blubb@gentoo.org> mod_ruby-1.2.2.ebuild:
+ added ~amd64
+
+*mod_ruby-1.2.0 (22 Sep 2004)
+
+ 22 Sep 2004; Mamoru KOMACHI <usata@gentoo.org> +metadata.xml,
+ +files/20_mod_ruby.conf, +files/mod_ruby.conf, +mod_ruby-1.0.7.ebuild,
+ +mod_ruby-1.2.0.ebuild, +mod_ruby-1.2.2.ebuild:
+ Renamed from mod-ruby.
+
+*mod-ruby-1.2.2 (24 Aug 2004)
+
+ 24 Aug 2004; Mamoru KOMACHI <usata@gentoo.org> -mod-ruby-1.1.3-r1.ebuild,
+ mod-ruby-1.2.0.ebuild, +mod-ruby-1.2.2.ebuild:
+ Version bumped. Marked previous version stable on x86 and alpha.
+
+ 08 Jun 2004; Aron Griffis <agriffis@gentoo.org> mod-ruby-1.0.7.ebuild,
+ mod-ruby-1.1.3-r1.ebuild, mod-ruby-1.2.0.ebuild:
+ Fix use invocation and has_version mis-usage
+
+*mod-ruby-1.2.0 (22 May 2004)
+
+ 22 May 2004; Mamoru KOMACHI <usata@gentoo.org> mod-ruby-1.0.7.ebuild,
+ mod-ruby-1.1.1-r2.ebuild, mod-ruby-1.1.3-r1.ebuild, mod-ruby-1.2.0.ebuild:
+ Version bumped. Corrected DESCRIPTION for 1.0.7, bug #51724.
+ Marked 1.1.3-r1 stable on x86 and alpha. Removed 1.1.1-r2 from CVS.
+
+ 01 May 2004; Mamoru KOMACHI <usata@gentoo.org> mod-ruby-1.0.1.ebuild,
+ mod-ruby-1.0.7.ebuild, mod-ruby-1.1.3.ebuild:
+ Stable on x86. Removed old ebuilds.
+
+*mod-ruby-1.1.3-r1 (17 Apr 2004)
+
+ 17 Apr 2004; Mamoru KOMACHI <usata@gentoo.org> mod-ruby-1.1.1-r2.ebuild,
+ mod-ruby-1.1.3-r1.ebuild, files/mod_ruby.conf:
+ Fix configs for apache-1.x, thanks to Jeff Mitchell
+ <quixoticsycophant@yahoo.com> for the patch. Closing bug #27649
+
+ 11 Apr 2004; David Holm <dholm@gentoo.org> mod-ruby-1.1.3.ebuild:
+ Added to ~ppc.
+
+*mod-ruby-1.1.3 (10 Apr 2004)
+*mod-ruby-1.0.7 (10 Apr 2004)
+
+ 10 Apr 2004; Mamoru KOMACHI <usata@gentoo.org> mod-ruby-0.9.7.ebuild,
+ mod-ruby-1.0.1.ebuild, mod-ruby-1.0.7.ebuild, mod-ruby-1.1.1-r2.ebuild,
+ mod-ruby-1.1.3.ebuild:
+ Version bumped (stable and development branch). Removed old ebuild and
+ marked 1.0.1 stable. virtual/ruby fix
+
+*mod-ruby-1.1.1-r2 (21 Feb 2004)
+
+ 21 Feb 2004; Mamoru KOMACHI <usata@gentoo.org> mod-ruby-1.1.1-r1.ebuild,
+ mod-ruby-1.1.1-r2.ebuild, mod-ruby-1.1.1.ebuild:
+ Fixed conditional statement when only apache2 is installed but apache2
+ USE flag is not set. Closing bug #41458
+
+ 21 Feb 2004; Mamoru KOMACHI <usata@gentoo.org> mod-ruby-1.1.1-r1.ebuild,
+ mod-ruby-1.1.1-r2.ebuild, mod-ruby-1.1.1.ebuild:
+ Fixed typo
+
+ 10 Jun 2003; Tom Payne <twp@gentoo.org> mod-ruby-1.1.1-r1.ebuild :
+ Build and install docs if USE=doc. Bug # 20805.
+
+*mod-ruby-1.1.1 (10 May 2003)
+
+ 10 May 2003; Tom Payne <twp@gentoo.org> mod-ruby-1.1.1.ebuild :
+ Version bump. Ebuild tidy. Experimental apache-1.3 support. Bugs # 16539 and 18916.
+
+*mod-ruby-1.0.1 (29 Nov 2002)
+
+ 29 Nov 2002; Donny Davies <woodchip@gentoo.org> :
+ Updated for Apache2.
+
+*mod-ruby-0.9.7 (10 Mar 2002)
+
+ 10 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.
+
+ 07 Jul 2002; Aron Griffis <agriffis@gentoo.org> mod-ruby-0.9.7.ebuild:
+ Updated with LICENSE, KEYWORDS, SLOT.
diff --git a/www-apache/mod_ruby/Manifest b/www-apache/mod_ruby/Manifest
new file mode 100644
index 000000000000..fd489c30d9a1
--- /dev/null
+++ b/www-apache/mod_ruby/Manifest
@@ -0,0 +1,38 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA1
+
+AUX 21_mod_ruby.conf 1281 RMD160 1ff18ac15c19e46fdf3107356eb6b0badca84fed SHA1 3374d500120d7a26c00a9ea1af235e9740adf19f SHA256 9795729cb0d17e525cdc8829fb36aabddb0e2a87849ebd186df814be33f97323
+MD5 d87224e9645bea207d6db5f6a2079e97 files/21_mod_ruby.conf 1281
+RMD160 1ff18ac15c19e46fdf3107356eb6b0badca84fed files/21_mod_ruby.conf 1281
+SHA256 9795729cb0d17e525cdc8829fb36aabddb0e2a87849ebd186df814be33f97323 files/21_mod_ruby.conf 1281
+DIST mod_ruby-1.2.4.tar.gz 107797 RMD160 720058d331207dcc79531fdb3bf9c4080834b2cc SHA1 758e1706944ab77a1547c88ceb0aadd69131d732 SHA256 de21cc60306100fab125ffcbc413e0128bac92133e5c1a3837d33c1cd2d6e269
+DIST mod_ruby-1.2.6.tar.gz 110886 RMD160 08a7beb415608d93b7e48b484e3969a08eec4f31 SHA1 3934fdb206a78baf9deb592334ef4d05400ea133 SHA256 d4e7385271a20309ce997f7460ea4a8805bb614ca3eb956d34f0934cce98685a
+EBUILD mod_ruby-1.2.4-r2.ebuild 992 RMD160 1b640272c64c7081f31c2e5bf08a76dae4f7484d SHA1 f2e33b9a4aa189cc207b1400aec59e887374580f SHA256 5f45541c661d4c137ca93b6ed6334d4814e76966caa306fb1701dd38b494af06
+MD5 24506ad1b96b38c43bbea4ecdd851fd4 mod_ruby-1.2.4-r2.ebuild 992
+RMD160 1b640272c64c7081f31c2e5bf08a76dae4f7484d mod_ruby-1.2.4-r2.ebuild 992
+SHA256 5f45541c661d4c137ca93b6ed6334d4814e76966caa306fb1701dd38b494af06 mod_ruby-1.2.4-r2.ebuild 992
+EBUILD mod_ruby-1.2.6.ebuild 995 RMD160 d4e8e2aebde0a2c15dd1b9a1ef1ad5ad4cb8bb36 SHA1 6ba8e769a24a24b2a2f8c412d8b53ffd2ab3446e SHA256 ea4af1a878707ac8e362f1f7580f4241cbb99561c4faa974121fee4feec20922
+MD5 9c833bc00c849df9edeb329c8f6505f9 mod_ruby-1.2.6.ebuild 995
+RMD160 d4e8e2aebde0a2c15dd1b9a1ef1ad5ad4cb8bb36 mod_ruby-1.2.6.ebuild 995
+SHA256 ea4af1a878707ac8e362f1f7580f4241cbb99561c4faa974121fee4feec20922 mod_ruby-1.2.6.ebuild 995
+MISC ChangeLog 6208 RMD160 3a4ee56ca2e0af8a092b523f7b1c357bf3288a56 SHA1 da46ba7e45d5861fa76d1a70500877b4cc463c9e SHA256 75b9abea70734ea452df7a2d672d8216004c4ba49536d9331eacf3dc5dcbc834
+MD5 c0ef5936fe1767de67b656fe912fd748 ChangeLog 6208
+RMD160 3a4ee56ca2e0af8a092b523f7b1c357bf3288a56 ChangeLog 6208
+SHA256 75b9abea70734ea452df7a2d672d8216004c4ba49536d9331eacf3dc5dcbc834 ChangeLog 6208
+MISC metadata.xml 179 RMD160 046a67d39c9a5784800b120b3da44d67caa1f0af SHA1 31e15b20d55994a9989fff90a20847c1e76db2cb SHA256 d07e5a69f0aaee3b23884e0e414fad4aba70b9f4a115d2649714b8f1bd99d9fe
+MD5 73837d39c976941977b0a4c4f68981a2 metadata.xml 179
+RMD160 046a67d39c9a5784800b120b3da44d67caa1f0af metadata.xml 179
+SHA256 d07e5a69f0aaee3b23884e0e414fad4aba70b9f4a115d2649714b8f1bd99d9fe metadata.xml 179
+MD5 75be4473dc459edc735afffc22e7286f files/digest-mod_ruby-1.2.4-r2 244
+RMD160 712cfc4c89c7e38d1395f382c8c13d8f238f5148 files/digest-mod_ruby-1.2.4-r2 244
+SHA256 57332d36af400be75bbc47ca681c829c106ea64be950486a83da38a498632272 files/digest-mod_ruby-1.2.4-r2 244
+MD5 fe074a4c5ee111013667a6bad247780f files/digest-mod_ruby-1.2.6 244
+RMD160 92303665c1be5f465db7ead5463c0dd77de6da2a files/digest-mod_ruby-1.2.6 244
+SHA256 6b44eb358d4387ed416c679db588825c6e33e30d5403b7ea923371ba20dfe73e files/digest-mod_ruby-1.2.6 244
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.6 (GNU/Linux)
+
+iD8DBQFGyDjXyuNVb5qfaOYRAksxAJ9d2Yh6Bau/vkjuBK4/GLiZo7eQvQCfeAe9
+RDq8vMFr+UrKseedpb01ut0=
+=OI34
+-----END PGP SIGNATURE-----
diff --git a/www-apache/mod_ruby/files/21_mod_ruby.conf b/www-apache/mod_ruby/files/21_mod_ruby.conf
new file mode 100644
index 000000000000..0f8eda7f28a6
--- /dev/null
+++ b/www-apache/mod_ruby/files/21_mod_ruby.conf
@@ -0,0 +1,55 @@
+<IfDefine RUBY>
+ <IfModule !mod_ruby.c>
+ LoadModule ruby_module modules/mod_ruby.so
+ </IfModule>
+</IfDefine>
+
+# taken from the example file
+# If the ruby module is installed, this will be enabled.
+<IfModule mod_ruby.c>
+ # for Apache::RubyRun
+ RubyRequire apache/ruby-run
+
+ # exec files under /ruby as ruby scripts.
+ <Location /ruby>
+ SetHandler ruby-object
+ RubyHandler Apache::RubyRun.instance
+ Options ExecCGI
+ </Location>
+
+ # exec *.rbx as ruby scripts.
+ <Files *.rbx>
+ SetHandler ruby-object
+ RubyHandler Apache::RubyRun.instance
+ </Files>
+
+ # # for Apache::ERubyRun
+ # RubyRequire apache/eruby-run
+ #
+ # # handle files under /eruby as eRuby files by eruby.
+ # <Location /eruby>
+ # SetHandler ruby-object
+ # RubyHandler Apache::ERubyRun.instance
+ # Options ExecCGI
+ # </Location>
+ #
+ # # handle *.rhtml as eruby files.
+ # <Files *.rhtml>
+ # SetHandler ruby-object
+ # RubyHandler Apache::ERubyRun.instance
+ # </Files>
+
+ # # for Apache::ERbRun
+ # RubyRequire apache/erb-run
+ #
+ # # handle files under /erb as eRuby files by ERb.
+ # <Location /erb>
+ # SetHandler ruby-object
+ # RubyHandler Apache::ERbRun.instance
+ # Options ExecCGI
+ # </Location>
+
+ # # for debug
+ # RubyRequire auto-reload
+</IfModule>
+
diff --git a/www-apache/mod_ruby/files/digest-mod_ruby-1.2.4-r2 b/www-apache/mod_ruby/files/digest-mod_ruby-1.2.4-r2
new file mode 100644
index 000000000000..13a00484ef8c
--- /dev/null
+++ b/www-apache/mod_ruby/files/digest-mod_ruby-1.2.4-r2
@@ -0,0 +1,3 @@
+MD5 2b803c021297517eecb3dc6cf77b9534 mod_ruby-1.2.4.tar.gz 107797
+RMD160 720058d331207dcc79531fdb3bf9c4080834b2cc mod_ruby-1.2.4.tar.gz 107797
+SHA256 de21cc60306100fab125ffcbc413e0128bac92133e5c1a3837d33c1cd2d6e269 mod_ruby-1.2.4.tar.gz 107797
diff --git a/www-apache/mod_ruby/files/digest-mod_ruby-1.2.6 b/www-apache/mod_ruby/files/digest-mod_ruby-1.2.6
new file mode 100644
index 000000000000..8e4c8f1ac21d
--- /dev/null
+++ b/www-apache/mod_ruby/files/digest-mod_ruby-1.2.6
@@ -0,0 +1,3 @@
+MD5 299d8536f36e93197f6386e35c2a02c1 mod_ruby-1.2.6.tar.gz 110886
+RMD160 08a7beb415608d93b7e48b484e3969a08eec4f31 mod_ruby-1.2.6.tar.gz 110886
+SHA256 d4e7385271a20309ce997f7460ea4a8805bb614ca3eb956d34f0934cce98685a mod_ruby-1.2.6.tar.gz 110886
diff --git a/www-apache/mod_ruby/metadata.xml b/www-apache/mod_ruby/metadata.xml
new file mode 100644
index 000000000000..7dcdaa3f775a
--- /dev/null
+++ b/www-apache/mod_ruby/metadata.xml
@@ -0,0 +1,6 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>apache</herd>
+ <herd>ruby</herd>
+</pkgmetadata>
diff --git a/www-apache/mod_ruby/mod_ruby-1.2.4-r2.ebuild b/www-apache/mod_ruby/mod_ruby-1.2.4-r2.ebuild
new file mode 100644
index 000000000000..625b6dc6e85a
--- /dev/null
+++ b/www-apache/mod_ruby/mod_ruby-1.2.4-r2.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_ruby/mod_ruby-1.2.4-r2.ebuild,v 1.1 2007/08/19 12:34:20 phreak Exp $
+
+inherit apache-module
+
+KEYWORDS="alpha amd64 ia64 ppc ppc64 ~sparc x86"
+
+DESCRIPTION="Embeds the Ruby interpreter into Apache."
+HOMEPAGE="http://modruby.net/"
+SRC_URI="http://modruby.net/archive/${P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+IUSE="doc"
+
+RDEPEND="virtual/ruby"
+DEPEND="${RDEPEND}
+ doc? ( dev-ruby/rdtool )"
+
+APACHE2_MOD_CONF="21_mod_ruby"
+APACHE2_MOD_DEFINE="RUBY"
+APACHE2_MOD_FILE="${PN}.so"
+
+DOCFILES="ChangeLog COPYING README.*"
+
+need_apache
+
+src_compile() {
+ ./configure.rb --with-apxs=${APXS2}
+
+ emake || die "emake failed"
+
+ if use doc ; then
+ cd doc
+ emake || die "emake doc failed"
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ if use doc ; then
+ dohtml doc/*.css doc/*.html
+ fi
+
+ apache-module_src_install
+}
diff --git a/www-apache/mod_ruby/mod_ruby-1.2.6.ebuild b/www-apache/mod_ruby/mod_ruby-1.2.6.ebuild
new file mode 100644
index 000000000000..e968d956e1cb
--- /dev/null
+++ b/www-apache/mod_ruby/mod_ruby-1.2.6.ebuild
@@ -0,0 +1,47 @@
+# Copyright 1999-2007 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/www-apache/mod_ruby/mod_ruby-1.2.6.ebuild,v 1.1 2007/08/19 12:34:20 phreak Exp $
+
+inherit apache-module
+
+KEYWORDS="~alpha ~amd64 ~ia64 ~ppc ~ppc64 ~sparc ~x86"
+
+DESCRIPTION="Embeds the Ruby interpreter into Apache."
+HOMEPAGE="http://modruby.net/"
+SRC_URI="http://modruby.net/archive/${P}.tar.gz"
+LICENSE="BSD"
+SLOT="0"
+IUSE="doc"
+
+RDEPEND="virtual/ruby"
+DEPEND="${RDEPEND}
+ doc? ( dev-ruby/rdtool )"
+
+APACHE2_MOD_CONF="21_mod_ruby"
+APACHE2_MOD_DEFINE="RUBY"
+APACHE2_MOD_FILE="${PN}.so"
+
+DOCFILES="ChangeLog COPYING README.*"
+
+need_apache
+
+src_compile() {
+ ./configure.rb --with-apxs=${APXS2}
+
+ emake || die "emake failed"
+
+ if use doc ; then
+ cd doc
+ emake || die "emake doc failed"
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install || die "emake install failed"
+
+ if use doc ; then
+ dohtml doc/*.css doc/*.html
+ fi
+
+ apache-module_src_install
+}