# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ #EAPI=0 inherit eutils DESCRIPTION="The OpenSAML low-level library dependency." HOMEPAGE="http://shibboleth.internet2.edu/" SRC_URI="http://shibboleth.internet2.edu/downloads/opensaml/xmltooling-1.3.3.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="debug log4shib log4cpp xerces xmlsec" DEPEND="log4shib? ( >=dev-libs/log4shib-1.0.4 ) log4cpp? ( >=dev-libs/log4cpp-0.3.4 ) xerces? ( >=dev-libs/xerces-c-3.0.1 ) xmlsec? ( >=dev-libs/xmlsec=1.2.14 )" RDEPEND="${DEPEND}" src_compile() { myconf="-C" if use log4shib; then myconf="${myconf} --with-log4shib=/usr" elif use log4cpp; then myconf="${myconf} --with-log4cpp=/usr" elif use xerces; then myconf="${myconf} --with-xerces=/usr" elif use xmlsec; then myconf="${myconf} --with-xmlsec=/usr" elif use debug; then myconf="${myconf} --enable-debug" else myconf="${myconf}" fi econf ${myconf} emake || die "emake failed" } src_install() { einstall || die "einstall failed" }