# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header$ inherit python IUSE="" DESCRIPTION="Programmer's documentation reader with very fast fulltext searching" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" HOMEPAGE="http://documancer.sourceforge.net" KEYWORDS="~x86" SLOT="0" LICENSE="GPL-2" RDEPEND=">=x11-libs/wxmozilla-0.5.2 >=net-www/mozilla-1.3 >=dev-lang/python-2.2 >=dev-python/wxPython-2.4.0 >=net-www/swish-e-2.2.2 dev-lang/perl net-misc/wget" pkg_setup () { # Note: can't use "python_mod_exists wxPython.mozilla" here because # it doesn't work (some strange import stuff in wxPython) python_version if [ ! -f /usr/lib/python${PYVER}/site-packages/wxPython/mozilla.py ] then eerror "you need wxmozilla compiled with Python module:" eerror "export USE=\"python\" ;emerge wxmozilla -p " die "Need wxMozilla compiled with Python module!" fi } src_compile() { econf || die "configure failed" emake || die "make failed" } src_install () { make install DESTDIR=${D} || die dodoc AUTHORS COPYING FAQ NEWS README TODO }