# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ WANT_AUTOCONF=latest WANT_AUTOMAKE=1.9 inherit autotools flag-o-matic subversion ESVN_REPO_URI="svn://svn-mirror.flock.com/master/vendor/code/branches/cardinal/clucene-cvs" DESCRIPTION="High-performance, full-featured text search engine based off of lucene in C++" HOMEPAGE="http://clucene.sourceforge.net/" #SRC_URI="mirror://sourceforge/clucene/${MY_P}.tar.bz2" LICENSE="|| ( Apache-2.0 LGPL-2.1 )" SLOT="1" KEYWORDS="~amd64 ~ppc ~x86 ~x86-fbsd" IUSE="debug doc threads" DEPEND="doc? ( >=app-doc/doxygen-1.4.2 )" RESTRICT="test" src_unpack() { subversion_src_unpack cd "${S}" sh ./autogen.sh || die } src_compile() { append-flags -DPIC -fPIC -fno-strict-aliasing econf $(use_enable debug) \ $(use_enable debug cnddebug) \ $(use_enable threads multithreading) || die "econf failed" emake || die "emake failed" if use doc ; then emake doxygen || die "making docs failed" fi } src_install() { emake DESTDIR="${D}" install || die "installation failed" use doc && dohtml "${S}"/doc/html/* }