# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/www-apache/mod_caucho/mod_caucho-3.0.26.ebuild,v 1.1 2008/06/10 21:04:55 nelchael Exp $ inherit eutils apache-module autotools KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" DESCRIPTION="mod_caucho connects Resin and Apache2." HOMEPAGE="http://www.caucho.com/" SRC_URI="http://www.caucho.com/download/resin-${PV}-src.zip mirror://gentoo/resin-gentoo-patches-${PV}.tar.bz2" LICENSE="GPL-2" SLOT="0" IUSE="" S="${WORKDIR}/resin-${PV}" # See apache-module.eclass for more information. APACHE2_MOD_CONF="88_${PN}" APACHE2_MOD_DEFINE="CAUCHO" need_apache2 DEPEND="${DEPEND} app-arch/unzip" src_unpack() { unpack ${A} cd "${S}" for i in "${WORKDIR}"/${PV}/mod_caucho-*; do epatch "${i}" done eautoreconf chmod 755 ./configure } src_compile() { econf --with-apxs=${APXS} || die "econf failed" emake -j1 -C "${S}/modules/c/src/apache2/" || die "emake failed" } src_install() { cd "${S}/modules/c/src/apache2" emake -j1 DESTDIR="${D}" install || die "emake install failed" insinto "${APACHE_MODULES_CONFDIR}" doins "${FILESDIR}/${APACHE2_MOD_CONF}.conf" \ || die "internal ebuild error: ${APACHE2_MOD_CONF} not found." }