# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="kde" S=${WORKDIR}/${P} DESCRIPTION="A graphical CVS client." SRC_URI="http://ppprs1.phy.tu-dresden.de/~trogisch/${PN}/download/LinCVS/${P}/${P}-0-generic-src.tgz" HOMEPAGE="http://www.lincvs.org" SLOT="0" KEYWORDS="x86 ~sparc ~ppc" LICENSE="GPL-2" DEPEND="kde? ( >=kde-base/kdelibs-2 ) >=x11-libs/qt-3.0.5 >=dev-util/cvs-1.11.11" RDEPEND="${DEPEND} dev-util/cvs" src_compile() { qmake -o Makefile lincvs.pro sed -e "s/^\tstrip/#\tstrip/" -i Makefile ### borrowed from kde.eclass # # # fix the sandbox errors "can't writ to .kde or .qt" problems. # this is a fake homedir that is writeable under the sandbox, so that the build process # can do anything it wants with it. REALHOME="$HOME" mkdir -p $T/fakehome/.kde mkdir -p $T/fakehome/.qt export HOME="$T/fakehome" addwrite "${QTDIR}/etc/settings" # things that should access the real homedir [ -d "$REALHOME/.ccache" ] && ln -sf "$REALHOME/.ccache" "$HOME/" emake || die "make failed" emake install || die "make install failed" } src_install () { echo "#!/bin/sh" > ${S}/LinCVS/lincvs echo "exec /usr/share/LinCVS/AppRun" > ${S}/LinCVS/lincvs dodir /usr/share cp -pR ${S}/LinCVS ${D}/usr/share dobin LinCVS/lincvs dodoc AUTHORS BUGS.txt ChangeLog COPYING LICENSE NEWS THANKS VERSION ./doc/* }