# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 EAPI=5 inherit apache-module autotools eutils DESCRIPTION="mod_gnutls uses GnuTLS to provide SSL/TLS encryption for Apache2, similarly to mod_ssl" HOMEPAGE="https://mod.gnutls.org/" SRC_URI="https://mod.gnutls.org/downloads/${P}.tar.bz2" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~amd64 ~x86" IUSE="test" CDEPEND=">=net-libs/gnutls-3.4.0:=" DEPEND="${CDEPEND} test? ( app-crypt/monkeysphere )" RDEPEND="${CDEPEND}" need_apache2_4 # Fails because gpg-agent cannot be accessed RESTRICT="test" APACHE2_MOD_CONF="47_${PN}" APACHE2_MOD_DEFINE="GNUTLS" DOCFILES="CHANGELOG NOTICE README" need_apache2 src_prepare() { epatch_user eautoreconf } src_configure() { econf --with-apxs="${APXS}" } src_compile() { emake } src_install() { keepdir /var/cache/${PN} apache-module_src_install } src_test() { emake -j1 check }