# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ # Authors: Daniel Plaza # Rafael Antonio Porras inherit eutils SLOT="0" LICENSE="Apache-2.0" KEYWORDS="~x86 ~amd64" DESCRIPTION="XML-Security is a collection of C++ libraries that provide security functionality for XML data." SRC_URI="http://xml.apache.org/security/dist/c-library/${P}.tar.gz" HOMEPAGE="http://xml.apache.org/security/c/index.html" IUSE="debug doc xalan" DEPEND="dev-libs/xerces-c >=dev-libs/openssl-0.9.7 xalan? ( dev-libs/xalan-c )" src_compile() { cd src econf --prefix=/usr \ $(use_with xalan xalan) \ $(use_enable debug debug) \ || die "Error: econf failed!" emake -j1 lib || die "Error: emake failed!" } src_install() { dolib.so ${S}/lib/libxml-security-c.so.12.0 dosym /usr/lib/libxml-security-c.so.12.0 /usr/lib/libxml-security-c.so dosym /usr/lib/libxml-security-c.so.12.0 /usr/lib/libxml-security-c.so.12 insinto /usr/include doins -r ${S}/include/* if use doc ; then insinto /usr/share/doc/${PF} doins -r ${S}/doc/* fi }