diff options
author | Mamoru Komachi <usata@gentoo.org> | 2004-09-21 18:12:39 +0000 |
---|---|---|
committer | Mamoru Komachi <usata@gentoo.org> | 2004-09-21 18:12:39 +0000 |
commit | 1ade7d48e194ce7a73c4c8d43ccff79e87ac7dea (patch) | |
tree | 0115707d5c755b1fcd6499910ac107f048c806e5 /dev-ruby | |
parent | now builds from source (Manifest recommit) (diff) | |
download | gentoo-2-1ade7d48e194ce7a73c4c8d43ccff79e87ac7dea.tar.gz gentoo-2-1ade7d48e194ce7a73c4c8d43ccff79e87ac7dea.tar.bz2 gentoo-2-1ade7d48e194ce7a73c4c8d43ccff79e87ac7dea.zip |
Renamed from mod-ruby.
Diffstat (limited to 'dev-ruby')
-rw-r--r-- | dev-ruby/mod_ruby/ChangeLog | 84 | ||||
-rw-r--r-- | dev-ruby/mod_ruby/Manifest | 13 | ||||
-rw-r--r-- | dev-ruby/mod_ruby/files/20_mod_ruby.conf | 55 | ||||
-rw-r--r-- | dev-ruby/mod_ruby/files/digest-mod_ruby-1.0.7 | 1 | ||||
-rw-r--r-- | dev-ruby/mod_ruby/files/digest-mod_ruby-1.2.0 | 1 | ||||
-rw-r--r-- | dev-ruby/mod_ruby/files/digest-mod_ruby-1.2.2 | 1 | ||||
-rw-r--r-- | dev-ruby/mod_ruby/files/mod_ruby.conf | 39 | ||||
-rw-r--r-- | dev-ruby/mod_ruby/metadata.xml | 5 | ||||
-rw-r--r-- | dev-ruby/mod_ruby/mod_ruby-1.0.7.ebuild | 29 | ||||
-rw-r--r-- | dev-ruby/mod_ruby/mod_ruby-1.2.0.ebuild | 80 | ||||
-rw-r--r-- | dev-ruby/mod_ruby/mod_ruby-1.2.2.ebuild | 80 |
11 files changed, 388 insertions, 0 deletions
diff --git a/dev-ruby/mod_ruby/ChangeLog b/dev-ruby/mod_ruby/ChangeLog new file mode 100644 index 000000000000..b956fce3824c --- /dev/null +++ b/dev-ruby/mod_ruby/ChangeLog @@ -0,0 +1,84 @@ +# ChangeLog for dev-ruby/mod_ruby +# Copyright 2002-2004 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mod_ruby/ChangeLog,v 1.1 2004/09/21 18:12:39 usata Exp $ + +*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/dev-ruby/mod_ruby/Manifest b/dev-ruby/mod_ruby/Manifest new file mode 100644 index 000000000000..3f50cf8e45c9 --- /dev/null +++ b/dev-ruby/mod_ruby/Manifest @@ -0,0 +1,13 @@ +MD5 3eec9f3fe48b51f49dbc1f171a3b026f metadata.xml 157 +MD5 4ef1d9ca4e09f14e99b80ce09bf08f07 mod_ruby-1.2.0.ebuild 1945 +MD5 8112fb963845c5ac6c19cd105ab6a42d mod_ruby-1.2.2.ebuild 1947 +MD5 421abfd69312dd03cc9794c3f61a8077 ChangeLog 3008 +MD5 253d190e231a19c04623db98a82ca73d mod_ruby-1.0.7.ebuild 930 +MD5 9212f9bc81514ddee76f6c4251ca71c3 files/20_mod_ruby.conf 1286 +MD5 fa5123111f5278201525d49f658b4a3b files/digest-mod-ruby-1.0.7 65 +MD5 0a74830d798b9c7060bbba167eda608d files/digest-mod-ruby-1.2.0 65 +MD5 094ecc3f9ad4a6698c2ef4ee0c8139cc files/digest-mod-ruby-1.2.2 65 +MD5 70674a49abbe9321ac65cf4932c0ad23 files/mod_ruby.conf 846 +MD5 094ecc3f9ad4a6698c2ef4ee0c8139cc files/digest-mod_ruby-1.2.2 65 +MD5 0a74830d798b9c7060bbba167eda608d files/digest-mod_ruby-1.2.0 65 +MD5 fa5123111f5278201525d49f658b4a3b files/digest-mod_ruby-1.0.7 65 diff --git a/dev-ruby/mod_ruby/files/20_mod_ruby.conf b/dev-ruby/mod_ruby/files/20_mod_ruby.conf new file mode 100644 index 000000000000..e480b3e6ae48 --- /dev/null +++ b/dev-ruby/mod_ruby/files/20_mod_ruby.conf @@ -0,0 +1,55 @@ +<IfDefine RUBY> + <IfModule !mod_ruby.c> + LoadModule ruby_module extramodules/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/dev-ruby/mod_ruby/files/digest-mod_ruby-1.0.7 b/dev-ruby/mod_ruby/files/digest-mod_ruby-1.0.7 new file mode 100644 index 000000000000..8fe913b4be29 --- /dev/null +++ b/dev-ruby/mod_ruby/files/digest-mod_ruby-1.0.7 @@ -0,0 +1 @@ +MD5 b03bb4e2fe58f6f3251a8aa168364221 mod_ruby-1.0.7.tar.gz 69035 diff --git a/dev-ruby/mod_ruby/files/digest-mod_ruby-1.2.0 b/dev-ruby/mod_ruby/files/digest-mod_ruby-1.2.0 new file mode 100644 index 000000000000..38e21ead59f2 --- /dev/null +++ b/dev-ruby/mod_ruby/files/digest-mod_ruby-1.2.0 @@ -0,0 +1 @@ +MD5 baf4f0fe44ae557528754f49b4ae46b9 mod_ruby-1.2.0.tar.gz 90980 diff --git a/dev-ruby/mod_ruby/files/digest-mod_ruby-1.2.2 b/dev-ruby/mod_ruby/files/digest-mod_ruby-1.2.2 new file mode 100644 index 000000000000..2ac6f32fbe96 --- /dev/null +++ b/dev-ruby/mod_ruby/files/digest-mod_ruby-1.2.2 @@ -0,0 +1 @@ +MD5 786d740c84ec6aba73d0450b546b4642 mod_ruby-1.2.2.tar.gz 93925 diff --git a/dev-ruby/mod_ruby/files/mod_ruby.conf b/dev-ruby/mod_ruby/files/mod_ruby.conf new file mode 100644 index 000000000000..2caed81309bb --- /dev/null +++ b/dev-ruby/mod_ruby/files/mod_ruby.conf @@ -0,0 +1,39 @@ +# REQUIRED +LoadModule ruby_module extramodules/mod_ruby.so + +<IfModule mod_ruby.c> + # for Apache::RubyRun + RubyRequire apache/ruby-run + # for Apache::ERubyRun + RubyRequire apache/eruby-run + # for development + # RubyRequire auto-reload + + # OPTIONAL + # exec files under /ruby as ruby scripts. + <Location /ruby> + SetHandler ruby-object + RubyHandler Apache::RubyRun.instance + </Location> + + # OPTIONAL + # exec *.rbx as ruby scripts. + <Files *.rbx> + SetHandler ruby-object + RubyHandler Apache::RubyRun.instance + </Files> + + # OPTIONAL + # handle *.rhtml as eruby files. + <Files *.rhtml> + SetHandler ruby-object + RubyHandler Apache::ERubyRun.instance + </Files> + + # OPTIONAL + # handle files under /eruby as eruby files. + <Location /eruby> + SetHandler ruby-object + RubyHandler Apache::ERubyRun.instance + </Location> +</IfModule> diff --git a/dev-ruby/mod_ruby/metadata.xml b/dev-ruby/mod_ruby/metadata.xml new file mode 100644 index 000000000000..852136183369 --- /dev/null +++ b/dev-ruby/mod_ruby/metadata.xml @@ -0,0 +1,5 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> +<herd>ruby</herd> +</pkgmetadata> diff --git a/dev-ruby/mod_ruby/mod_ruby-1.0.7.ebuild b/dev-ruby/mod_ruby/mod_ruby-1.0.7.ebuild new file mode 100644 index 000000000000..b5688a4ea9f1 --- /dev/null +++ b/dev-ruby/mod_ruby/mod_ruby-1.0.7.ebuild @@ -0,0 +1,29 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mod_ruby/mod_ruby-1.0.7.ebuild,v 1.1 2004/09/21 18:12:39 usata Exp $ + +DESCRIPTION="An Apache2 DSO providing an embedded Ruby interpreter" +HOMEPAGE="http://www.modruby.net/" + +SRC_URI="http://www.modruby.net/archive/${P}.tar.gz" +DEPEND="virtual/ruby + =net-www/apache-2*" +LICENSE="BSD" +KEYWORDS="x86" +IUSE="" +SLOT="0" + +src_compile() { + ./configure.rb --with-apxs=/usr/sbin/apxs2 || die "configure.rb failed" + sed -i -e 's|usr/lib/apache2/modules|usr/lib/apache2-extramodules|' Makefile \ + || die "sed failed" + emake || die "emake failed" +} + +src_install() { + make DESTDIR=${D} install || die "make install failed" + insinto /etc/apache2/conf/modules.d + doins ${FILESDIR}/20_mod_ruby.conf || die + dodoc ${FILESDIR}/20_mod_ruby.conf || die + dodoc ChangeLog COPYING README* || die +} diff --git a/dev-ruby/mod_ruby/mod_ruby-1.2.0.ebuild b/dev-ruby/mod_ruby/mod_ruby-1.2.0.ebuild new file mode 100644 index 000000000000..2c14f4a0dfa7 --- /dev/null +++ b/dev-ruby/mod_ruby/mod_ruby-1.2.0.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mod_ruby/mod_ruby-1.2.0.ebuild,v 1.1 2004/09/21 18:12:39 usata Exp $ + +DESCRIPTION="Embeds the Ruby interpreter into Apache" +HOMEPAGE="http://modruby.net/" +SRC_URI="http://modruby.net/archive/${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +# 1.2.X -> stable branch; 1.3.Y -> development branch +KEYWORDS="alpha ~sparc x86 ~ppc" +IUSE="apache2 doc" +DEPEND=">=net-www/apache-1.3.3 + virtual/ruby + doc? ( dev-ruby/rdtool )" + +apache2-detect() { + use apache2 || ! has_version '=net-www/apache-1*' +} + +src_compile() { + + local two + if apache2-detect ; then + two="2" + else # apache1 + ewarn "apache 1.3.x support is UNTESTED" + two="" + fi + + ./configure.rb --with-apxs=/usr/sbin/apxs${two} + + sed -i -e "s:\(^APACHE_LIBEXECDIR = \$(DESTDIR)/usr/lib/apache${two}\)/modules:\1-extramodules:" Makefile + + emake || die + + if use doc; then + cd doc + emake + fi +} + +src_install() { + + make DESTDIR=${D} install || die + + if apache2-detect ; then + insinto /etc/apache2/conf/modules.d + doins ${FILESDIR}/20_mod_ruby.conf + else # apache1 + insinto /etc/apache/conf/addon-modules + doins ${FILESDIR}/mod_ruby.conf + fi + + dodoc ChangeLog COPYING README.* + + if use doc; then + dohtml doc/*.css doc/*.html + fi + +} + +pkg_postinst() { + if apache2-detect ; then + einfo "To enable mod_ruby, edit /etc/conf.d/apache2 and add \"-D RUBY\"" + einfo "You may also wish to edit /etc/apache2/conf/modules.d/20_mod_ruby.conf" + else # apache1 + einfo "To enable mod_ruby:" + einfo "1. Run \"ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config\"" + einfo "2. Edit /etc/conf.d/apache and add \"-D RUBY\"" + fi + einfo "You must restart apache for changes to take effect" +} + +pkg_config() { + if ! apache2-detect ; then + echo -e "<IfDefine RUBY>\n Include conf/addon-modules/mod_ruby.conf\n</IfDefine>" \ + >> ${ROOT}/etc/apache/conf/apache.conf + fi +} diff --git a/dev-ruby/mod_ruby/mod_ruby-1.2.2.ebuild b/dev-ruby/mod_ruby/mod_ruby-1.2.2.ebuild new file mode 100644 index 000000000000..c96e71a25c89 --- /dev/null +++ b/dev-ruby/mod_ruby/mod_ruby-1.2.2.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2004 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mod_ruby/mod_ruby-1.2.2.ebuild,v 1.1 2004/09/21 18:12:39 usata Exp $ + +DESCRIPTION="Embeds the Ruby interpreter into Apache" +HOMEPAGE="http://modruby.net/" +SRC_URI="http://modruby.net/archive/${P}.tar.gz" +LICENSE="BSD" +SLOT="0" +# 1.2.X -> stable branch; 1.3.Y -> development branch +KEYWORDS="alpha ~sparc x86 ~ppc" +IUSE="apache2 doc" +DEPEND=">=net-www/apache-1.3.3 + virtual/ruby + doc? ( dev-ruby/rdtool )" + +apache2-detect() { + use apache2 || ! has_version '=net-www/apache-1*' +} + +src_compile() { + + local two + if apache2-detect ; then + two="2" + else # apache1 + ewarn "apache 1.3.x support is UNTESTED" + two="" + fi + + ./configure.rb --with-apxs=/usr/sbin/apxs${two} + + sed -i -e "s:\(^APACHE_LIBEXECDIR = \$(DESTDIR)/usr/lib/apache${two}\)/modules:\1-extramodules:" Makefile + + emake || die + + if use doc; then + cd doc + emake + fi +} + +src_install() { + + make DESTDIR=${D} install || die + + if apache2-detect ; then + insinto /etc/apache2/conf/modules.d + doins ${FILESDIR}/20_mod_ruby.conf + else # apache1 + insinto /etc/apache/conf/addon-modules + doins ${FILESDIR}/mod_ruby.conf + fi + + dodoc ChangeLog COPYING README.* + + if use doc; then + dohtml doc/*.css doc/*.html + fi + +} + +pkg_postinst() { + if apache2-detect ; then + einfo "To enable mod_ruby, edit /etc/conf.d/apache2 and add \"-D RUBY\"" + einfo "You may also wish to edit /etc/apache2/conf/modules.d/20_mod_ruby.conf" + else # apache1 + einfo "To enable mod_ruby:" + einfo "1. Run \"ebuild /var/db/pkg/${CATEGORY}/${PF}/${PF}.ebuild config\"" + einfo "2. Edit /etc/conf.d/apache and add \"-D RUBY\"" + fi + einfo "You must restart apache for changes to take effect" +} + +pkg_config() { + if ! apache2-detect ; then + echo -e "<IfDefine RUBY>\n Include conf/addon-modules/mod_ruby.conf\n</IfDefine>" \ + >> ${ROOT}/etc/apache/conf/apache.conf + fi +} |