# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: $ IUSE="kde" MY_P=${P/_/-} S=${WORKDIR}/${MY_P} DESCRIPTION="A Graphical CVS Client" SRC_URI="http://ppprs1.phy.tu-dresden.de/~trogisch/${PN}/download/20_LinCVS/hr_${P/_/}/${MY_P}-generic-src.tgz" HOMEPAGE="http://www.lincvs.org" SLOT="0" KEYWORDS="~x86 ~sparc" LICENSE="GPL-2" RESTRICT="nomirror" DEPEND="kde? ( >=kde-base/kdelibs-3 ) >=x11-libs/qt-3.0.5 >=cvs-1.11.11" RDEPEND="${DEPEND} dev-util/cvs" src_compile() { qmake -o Makefile lincvs.pro sed -i -e "s/^\tstrip/#\tstrip/" Makefile sed -i -e "s/CFLAGS = -pipe -Wall -W -O2/CFLAGS = ${CFLAGS} -Wall -W/" Makefile sed -i -e "s/CXXFLAGS = -pipe -Wall -W -O2/CXXFLAGS = ${CXXFLAGS} -Wall -W/" 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/* }