diff options
author | Caleb Tennis <caleb@gentoo.org> | 2005-04-13 12:48:43 +0000 |
---|---|---|
committer | Caleb Tennis <caleb@gentoo.org> | 2005-04-13 12:48:43 +0000 |
commit | 2fd858c0e754b39c53a0057bb7fa7231713e7335 (patch) | |
tree | 117d3dcc46ef505ca836b5ac6f4369f7cec191a7 /dev-ruby/mod_ruby/mod_ruby-1.2.4-r2.ebuild | |
parent | Version bump + small tidy up (diff) | |
download | historical-2fd858c0e754b39c53a0057bb7fa7231713e7335.tar.gz historical-2fd858c0e754b39c53a0057bb7fa7231713e7335.tar.bz2 historical-2fd858c0e754b39c53a0057bb7fa7231713e7335.zip |
what i mean't to commit
Package-Manager: portage-2.0.51.19
Diffstat (limited to 'dev-ruby/mod_ruby/mod_ruby-1.2.4-r2.ebuild')
-rw-r--r-- | dev-ruby/mod_ruby/mod_ruby-1.2.4-r2.ebuild | 29 |
1 files changed, 17 insertions, 12 deletions
diff --git a/dev-ruby/mod_ruby/mod_ruby-1.2.4-r2.ebuild b/dev-ruby/mod_ruby/mod_ruby-1.2.4-r2.ebuild index 4b2fde1faef6..03ac0f9f5907 100644 --- a/dev-ruby/mod_ruby/mod_ruby-1.2.4-r2.ebuild +++ b/dev-ruby/mod_ruby/mod_ruby-1.2.4-r2.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2005 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.4-r2.ebuild,v 1.1 2005/04/13 12:44:21 caleb Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-ruby/mod_ruby/mod_ruby-1.2.4-r2.ebuild,v 1.2 2005/04/13 12:48:43 caleb Exp $ inherit apache-module @@ -19,27 +19,32 @@ APACHE1_MOD_CONF="mod_ruby" APACHE2_MOD_CONF="21_mod_ruby" APACHE1_MOD_DEFINE="RUBY" APACHE2_MOD_DEFINE="RUBY" -APACHE1_MOD_FILE="$S/mod_ruby.so" -APACHE2_MOD_FILE="$S/mod_ruby.so" +APACHE1_MOD_FILE="${PN}.so" +APACHE2_MOD_FILE="${PN}.so" DOCFILES="ChangeLog COPYING README.* doc/*.html doc/*.css" need_apache src_compile() { - if [ "${APACHE_VERSION}" == "2" ]; then - APXS=${APXS2} - APACHE_BASEDIR=${APACHE2_BASEDIR} - else - APXS=${APXS1} - APACHE_BASEDIR=${APACHE1_BASEDIR} - fi + use apache2 || ./configure.rb --with-apxs=${APXS1} + use apache2 && ./configure.rb --with-apxs=${APXS2} ./configure.rb --with-apxs=${APXS} - emake || die + emake || die "make failed" if use doc; then cd doc - emake + emake || die "make failed" fi } + +src_install() { + emake DESTDIR=${D} install || die "make install failed" + + if use doc; then + dohtml doc/*.css doc/*.html + fi + + apache-module_src_install +} |