diff options
Diffstat (limited to 'kde-base/marble/marble-4.1.2.ebuild')
-rw-r--r-- | kde-base/marble/marble-4.1.2.ebuild | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/kde-base/marble/marble-4.1.2.ebuild b/kde-base/marble/marble-4.1.2.ebuild new file mode 100644 index 000000000000..b55d35a4b3f0 --- /dev/null +++ b/kde-base/marble/marble-4.1.2.ebuild @@ -0,0 +1,62 @@ +# Copyright 1999-2008 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/kde-base/marble/marble-4.1.2.ebuild,v 1.1 2008/10/02 11:03:18 jmbsvicetto Exp $ +EAPI="2" +NEED_KDE="none" +KMNAME=kdeedu + +if use kdeprefix; then + KDEDIR="/usr/kde/4.1" +else + KDEDIR="/usr" +fi +CPPUNIT_REQUIRED="optional" + +# Goes in the ebuild because of NEED_KDE=none +# Needs to be defined before inheriting kde4-meta +SLOT="4.1" + +inherit kde4-meta + +DESCRIPTION="Generic geographical map widget" +KEYWORDS="~amd64 ~x86" +IUSE="debug designer-plugin htmlhandbook kde gps" + +# FIXME: undefined reference when building tests. RESTRICTed for now. +# Last checked in 4.0.3. +RESTRICT="test" + +COMMONDEPEND="gps? ( sci-geosciences/gpsd ) + kde? ( >=kde-base/kdelibs-${PV}:${SLOT}[kdeprefix=] + >=kde-base/kdepimlibs-${PV}:${SLOT}[kdeprefix=] ) + !kdeprefix? ( !sci-geosciences/marble )" +DEPEND="${COMMONDEPEND}" +RDEPEND="${COMMONDEPEND}" + +src_configure() { + mycmakeargs="${mycmakeargs} + $(cmake-utils_use_with designer-plugin DESIGNER_PLUGIN)" + + sed -i -e "s:add_subdirectory(cmake):#dontwantit:g" CMakeLists.txt \ + || die "disabling cmake includes failed" + sed -i -e "s:add_subdirectory( cmake ):#dontwantit:g" CMakeLists.txt \ + || die "disabling cmake includes failed" + + if use gps; then + mycmakeargs="${mycmakeargs} -DHAVE_LIBGPS=1" + else + sed -i -e 's:FIND_LIBRARY(libgps_LIBRARIES gps):# LIBGPS DISABLED &:' \ + marble/Findlibgps.cmake || die "sed to disable gpsd failed." + fi + + if ! use kde; then + mycmakeargs="${mycmakeargs} -DQTONLY:BOOL=ON" + fi + + kde4-meta_src_configure +} + +src_test() { + mycmakeargs="${mycmakeargs} -DENABLE_TESTS=TRUE" + kde4-meta_src_test +} |