# 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; also enables compilation of gnee (the gui part). 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://alpha.gnu.org/gnu/xnee/Xnee-${PV%_alpha}.tar.gz" SLOT="0" LICENSE="GPL-2" KEYWORDS="~x86 ~amd64" # This alpha-package does not contain any doc! #DEPEND="doc? (app-text/ghostscript # app-text/tetex # app-text/texi2html)" S=${WORKDIR}/Xnee-${PV%_alpha} src_compile() { econf `use_enable gprof` \ `use_enable gcov` \ `use_enable no-verbose xosd` \ `use_enable no-verbose verbose` \ `use_enable no-verbose buffer_verbose` \ `use_enable X gui` \ `use_with X x` \ --enable-lib \ --enable-cli \ || die "ERROR:econf failed" emake || die "ERROR:emake failed" # Build documentation einfo "Building documentation" emake man || die "ERROR: 'emake txt' failed" if use doc; then ewarn "You compiled with doc enabled." ewarn "I'm sorry, but this alpha-package does not contain any further doc." ewarn "You should use the doc found at the project page:" ewarn "${HOMEPAGE}" sleep 5 fi } src_install() { make DESTDIR=${D} install || die "ERROR: 'make install' failed" # Install documentation dodoc ChangeLog COPYING NEWS README doman cnee/src/cnee.1 # For compatibility with older versions ewarn "The command line interface is no longer called 'xnee'." ewarn "It's now called 'cnee'!" ewarn "There's a symlink that still allows using 'xnee'," ewarn "but from now on 'cnee' should be used instead of 'xnee'!" dosym /usr/bin/cnee /usr/bin/xnee sleep 5 }