/[gentoo-x86]/kde-base/marble/marble-4.0.1.ebuild
Gentoo

Contents of /kde-base/marble/marble-4.0.1.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.3 - (show annotations) (download)
Mon Feb 18 18:01:12 2008 UTC (7 years ago) by ingmar
Branch: MAIN
Changes since 1.2: +2 -1 lines
Set KDEDIR.
(Portage version: 2.1.4.4)

1 # Copyright 1999-2008 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/kde-base/marble/marble-4.0.1.ebuild,v 1.2 2008/02/18 16:28:22 ingmar Exp $
4
5 EAPI="1"
6 NEED_KDE="none"
7 KMNAME=kdeedu
8 SLOT="kde-4" # Goes in the ebuild because of NEED_KDE=none
9 KDEDIR="/usr/kde/4.0"
10 inherit kde4-meta
11
12 DESCRIPTION="KDE: generic geographical map widget"
13 KEYWORDS="~amd64 ~x86"
14 IUSE="debug designer-plugin htmlhandbook gps test"
15
16 # FIXME: undefined reference when building tests. RESTRICTed for now.
17 RESTRICT="test"
18
19 COMMONDEPEND="
20 gps? ( sci-geosciences/gpsd )
21 kde? ( >=kde-base/kdelibs-${PV}:${SLOT}
22 >=kde-base/kdepimlibs-${PV}:${SLOT} )"
23 DEPEND="${COMMONDEPEND}"
24 RDEPEND="${COMMONDEPEND}"
25
26 src_compile() {
27 epatch "${FILESDIR}/${PN}-4.0.0-fix-tests.patch"
28
29 mycmakeargs="${mycmakeargs}
30 $(cmake-utils_use_with designer-plugin DESIGNER_PLUGIN)"
31
32 if use gps; then
33 mycmakeargs="${mycmakeargs} -DHAVE_LIBGPS=1"
34 else
35 sed -i -e 's:FIND_LIBRARY(libgps_LIBRARIES gps):# LIBGPS DISABLED &:' \
36 marble/Findlibgps.cmake || die "sed to disable gpsd failed."
37 fi
38
39 if ! use kde; then
40 mycmakeargs="${mycmakeargs} -DQTONLY:BOOL=ON"
41 fi
42
43 kde4-meta_src_compile
44 }
45
46 src_test() {
47 mycmakeargs="${mycmakeargs} -DENABLE_TESTS=TRUE"
48
49 kde4-meta_src_test
50 }

  ViewVC Help
Powered by ViewVC 1.1.20