# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils apache-module DESCRIPTION="Module for integration resin with apache." HOMEPAGE="http://www.caucho.com/" SRC_URI="http://www.caucho.com/download/resin-${PV}-src.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86" IUSE="" DEPEND="" S="${WORKDIR}/resin-${PV}" DOCFILES="README" APACHE1_MOD_CONF="${PVR}/10_${PN}" APACHE1_MOD_DEFINE="CAUCHO" APACHE2_MOD_CONF="${PVR}/10_${PN}" APACHE2_MOD_DEFINE="CAUCHO" APXS1_S="${S}/modules/c/src/apache1/.libs" APXS2_S="${S}/modules/c/src/apache2/" need_apache src_unpack(){ unpack ${A} cd ${S} epatch ${FILESDIR}/${PV}/resin-gentoo_fix.patch } src_compile() { useq apache2 || myconf="--with-apxs=${APXS1}" useq apache2 && myconf="--with-apxs=${APXS2}" chmod 0755 configure econf ${myconf} || die "econf failed" emake || die "emake failed" } pkg_postinst() { apache-module_pkg_postinst }