# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/kde-base/kdelibs/kdelibs-3.5.4-r1.ebuild,v 1.7 2006/09/09 22:00:03 carlo Exp $ inherit subversion toolchain-funcs DESCRIPTION="KDE libraries needed by all KDE programs." HOMEPAGE="http://www.kde.org/" #SRC_URI="mirror://kde/unstable/${PV}/src/${P}.tar.bz2" ESVN_REPO_URI="svn://anonsvn.kde.org/home/kde/trunk/KDE/${PN}" LICENSE="GPL-2 LGPL-2" SLOT="4.0" KEYWORDS="-*" IUSE="" RDEPEND="app-arch/bzip2 >=dev-libs/libxslt-1.1.15 >=dev-libs/libxml2-2.6.6 x11-libs/libX11 =x11-libs/qt-4* cups? ( >=net-print/cups-1.1.19 )" DEPEND="${RDEPEND} >=dev-util/cmake-2.4.3 sys-devel/gettext dev-util/pkgconfig" pkg_setup() { PREFIX="/usr/kde/4.0/" } cm_use_enable() { if use $1 ; then echo "-D$2=ON" else echo "-D$2=OFF" fi return 0 } src_compile() { mkdir build cd build cmake \ -D CMAKE_CXX_COMPILER:FILEPATH="$(tc-getCXX)" \ -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \ -D CMAKE_C_COMPILER:FILEPATH="$(tc-getCC)" \ -DCMAKE_C_FLAGS="${CFLAGS}" \ -DCMAKE_INSTALL_PREFIX="${PREFIX}" \ -DQTDIR="/usr" \ .. || die "cmake failed" # removing files violates sandbox on Gentoo sed -i -e "s:.*INCLUDE.*remove_files.*::" cmake/modules/cmake_install.cmake # creating life symlinks fails in the syndbox sed -i -e "s:.*create_symlink.*filesharelist.*::" \ kio/misc/make_fileshare_symlink.cmake emake || die "emake failed" } src_install() { cd build emake DESTDIR="${D}" install || die "emake install failed" }