# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-util/kdesvn/kdesvn-0.9.2.ebuild,v 1.1 2006/09/04 13:31:26 george Exp $ inherit eutils kde-functions toolchain-funcs DESCRIPTION="KDESvn is a frontend to the subversion vcs." HOMEPAGE="http://www.alwins-world.de/programs/kdesvn/" SRC_URI="http://www.alwins-world.de/programs/download/${PN}/${P}.tar.bz2" SLOT="0" LICENSE="GPL-2" KEYWORDS="~amd64 ~x86" IUSE="" DEPEND=">=dev-util/subversion-1.3 net-misc/neon >=dev-util/cmake-2.4" need-kde 3.3 src_unpack() { unpack ${A} cd "${S}" epatch "${FILESDIR}"/${P}-CMakeLists.patch } src_compile() { cmake \ -DCMAKE_INSTALL_PREFIX=/usr \ -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_C_COMPILER=$(which $(tc-getCC)) \ -DCMAKE_CXX_COMPILER=$(which $(tc-getCXX)) \ -DCMAKE_CXX_FLAGS="-DQT_THREAD_SUPPORT" \ || die emake || die } src_install() { emake DESTDIR="${D}" install || die } pkg_postinst() { if ! has_version 'kde-base/kompare'; then echo einfo "For nice graphical diffs, install kde-base/kompare." echo fi }