# $Id$ PNAME="kdeedu4" PVER="4.3.3" PBUILD="r1" STATE="unstable" DESCRIPTION="Some educational KDE4 tools for kids." DEPEND="== kde-base/kdebase4-runtime-${PVER} >= virtual/opengl >= sys-libs/readline-6 >= sci-chemistry/openbabel-2.2 >= dev-cpp/eigen-1.0.5 >= dev-ml/facile >= dev-libs/boost-1.37 >= sci-libs/cfitsio-0.390 >= sci-libs/indilib-0.6 >= sci-geosciences/gpsd python? ( >=dev-python/PyQt4-4.4.4-r1[X,svg] >=kde-base/pykde4-${PV}:${SLOT}[kdeprefix=] ) >= sci-libs/cln >= sci-mathematics/gmm-3.0 >= sci-libs/gsl-1.12 >= sci-libs/libqalculate-0.9.1" ----------------------------------------------- SRC_URI=( mirror://${PNAME}/${PNAME}-${PVER}-include-order.patch ) sminclude kde4 UP2DATE="updatecmd http://www.kde.org/download/ | grep ${PNAME/4/} | sed -n '1 p' | sed 's/.*-\([^ ]*\) .*/\1/'" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} mpatch ${PNAME}-${PVER}-include-order.patch || die } src_compile() { cd ${SRCDIR} kde4_configure \ $(cmake_with Readline) \ $(cmake_with Plasma) \ $(cmake_with OpenGL) \ $(cmake_with Eigen) \ $(cmake_with OpenBabel2) \ $(cmake_with OCaml) \ $(cmake_with Libfacile) \ $(cmake_with BoostPython) \ $(cmake_with CFitsio) \ $(cmake_with INDI) \ $(cmake_with DESIGNER_PLUGIN) \ $(cmake_with PyKDE4) \ $(cmake_with PyQt4) \ $(cmake_with PythonLibrary) \ $(cmake_with SIP) \ $(cmake_with GSL) \ $(cmake_with Qalculate) \ if use gps; then $(cmake_have LIBGPS) else sed -i -e 's:FIND_LIBRARY(libgps_LIBRARIES gps):# LIBGPS DISABLED &:' \ marble/Findlibgps.cmake || die "sed to disable gpsd failed." fi || die mmake || die }