# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/kde-base/kalgebra/kalgebra-4.6.5.ebuild,v 1.4 2011/08/15 19:25:19 maekke Exp $ EAPI=4 KDE_HANDBOOK="optional" OPENGL_REQUIRED="optional" KDE_SCM="git" if [[ ${PV} == *9999 ]]; then kde_eclass="kde4-base" else KMNAME="kdeedu" kde_eclass="kde4-meta" fi inherit ${kde_eclass} DESCRIPTION="MathML-based graph calculator for KDE." KEYWORDS="amd64 ~ppc ~ppc64 x86 ~amd64-linux ~x86-linux" IUSE="debug +plasma readline" DEPEND=" readline? ( sys-libs/readline ) " RDEPEND="${DEPEND}" KMEXTRACTONLY=" libkdeedu/kdeeduui/ libkdeedu/LibKdeEduConfig.cmake.in " KMEXTRA=" libkdeedu/qtmmlwidget/ " PATCHES=( "${FILESDIR}"/${PN}-4.5.73-solaris-graph2d.patch "${FILESDIR}"/${PN}-4.6.4-nolib.patch ) src_configure() { mycmakeargs=( $(cmake-utils_use_with readline) $(cmake-utils_use_with plasma) $(cmake-utils_use_with opengl OpenGL) ) ${kde_eclass}_src_configure } src_test() { # disable broken test sed -i -e '/mathmlpresentationtest/ s/^/#DO_NOT_RUN_TEST /' \ "${S}"/"${PN}"/analitza/tests/CMakeLists.txt || \ die "sed to disable mathmlpresentationtest failed." ${kde_eclass}_src_test }