# Copyright 1999-2008 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-libs/xerces-c/xerces-c-2.8.0.ebuild,v 1.5 2008/06/07 19:53:10 dev-zero Exp $ EAPI="1" inherit eutils multilib versionator flag-o-matic toolchain-funcs MY_PN="xerces-c-src" MY_P=${MY_PN}_$(replace_all_version_separators _) DESCRIPTION="A validating XML parser written in a portable subset of C++." HOMEPAGE="http://xerces.apache.org/xerces-c/" SRC_URI="mirror://apache/xerces/c/sources/${MY_P}.tar.gz" LICENSE="Apache-2.0" SLOT="0" KEYWORDS="~alpha ~amd64 ~hppa ~ppc ~ppc64 ~sparc ~x86 ~x86-fbsd" IUSE="debug doc iconv icu libwww +threads elibc_Darwin elibc_FreeBSD xqilla" RDEPEND="icu? ( configure.vars || die "runConfigure failed" # This should be safe since runConfigure includes our C[XX]FLAGS eval $(grep export configure.vars) econf || die "econf failed" # Parallel building is horribly broken when not using --as-needed emake -j1 || die "emake failed" if use doc ; then cd "${S}/doc" doxygen || die "making docs failed" fi } src_install () { export XERCESCROOT="${S}" cd src/xercesc emake DESTDIR="${D}" MLIBDIR=$(get_libdir) install || die "emake failed" if use xqilla; then insinto /usr/include/xercesc/dom/impl cd dom/impl doins \ DOMAttrImpl.hpp DOMAttrMapImpl.hpp DOMCasts.hpp DOMCharacterDataImpl.hpp \ DOMChildNode.hpp DOMDeepNodeListPool.hpp DOMDocumentImpl.hpp \ DOMDocumentTypeImpl.hpp DOMElementImpl.hpp DOMElementNSImpl.hpp \ DOMNodeIDMap.hpp DOMNodeImpl.hpp DOMNodeListImpl.hpp DOMParentNode.hpp \ DOMRangeImpl.hpp DOMTextImpl.hpp DOMTypeInfoImpl.hpp DOMWriterImpl.hpp fi cd "${S}" doenvd "${FILESDIR}/50xerces-c" # Upstream forgot this if use icu ; then dolib.so lib/libXercesMessages.so.28.0 dosym libXercesMessages.so.28.0 /usr/$(get_libdir)/libXercesMessages.so.28 dosym libXercesMessages.so.28.0 /usr/$(get_libdir)/libXercesMessages.so fi if use doc; then insinto /usr/share/doc/${PF} rm -rf samples/config* samples/Makefile* samples/runConfigure samples/install-sh samples/*/Makefile* doins -r samples dohtml -r doc/html/* fi dodoc STATUS credits.txt version.incl dohtml Readme.html unset XERCESCROOT } # There are tests available, but without a script to run them