# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ #doc: Add extra documentation #gcov: Support for gcov (test coverage program) #gprof: Support for gprof (GNU Profiler) #no-verbose: Disable Verbose-Mode-Support (verbose + buffer_verbose) #X: use the X window system IUSE="doc gcov gprof no-verbose X" DESCRIPTION="Xnee can record and replay user sessions in the X Windows System environment." HOMEPAGE="http://www.gnu.org/software/xnee/www/index.html" SRC_URI="ftp://ftp.gnu.org/gnu/xnee/${P}.tar.gz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~amd64" DEPEND="doc? (app-text/ghostscript app-text/tetex app-text/texi2html)" src_compile() { econf `use_enable gprof` \ `use_enable gcov` \ `use_enable no-verbose verbose` \ `use_enable no-verbose buffer_verbose` \ `use_with X x` \ || die "ERROR:econf failed" emake || die "ERROR:emake failed" # Build documentation einfo "Building documentation" emake txt || die "ERROR: 'emake txt' failed" if use doc; then einfo "Building devel-doc" # no '|| die' since emake devel-doc returns a failure, but doc is created as usual emake devel-doc fi } src_install() { make DESTDIR=${D} install || die "ERROR: 'make install' failed" # Install documentation dodoc ChangeLog COPYING NEWS USAGE xnee/doc/xnee.txt if use doc; then dodoc xnee/doc/xnee.html xnee/doc/xnee.pdf fi doman xnee/doc/*.1 }