Lines 2-7
Link Here
|
2 |
# Distributed under the terms of the GNU General Public License v2 |
2 |
# Distributed under the terms of the GNU General Public License v2 |
3 |
# $Header: $ |
3 |
# $Header: $ |
4 |
|
4 |
|
|
|
5 |
EAPI="2" |
6 |
|
5 |
inherit cmake-utils eutils qt4 autotools |
7 |
inherit cmake-utils eutils qt4 autotools |
6 |
|
8 |
|
7 |
DESCRIPTION="Quantum GIS (QGIS) is a Geographic Information System (GIS)" |
9 |
DESCRIPTION="Quantum GIS (QGIS) is a Geographic Information System (GIS)" |
Lines 15-21
Link Here
|
15 |
IUSE="debug gps grass gsl postgres python samples" |
17 |
IUSE="debug gps grass gsl postgres python samples" |
16 |
|
18 |
|
17 |
DEPEND=">=sci-libs/gdal-1.3.1 |
19 |
DEPEND=">=sci-libs/gdal-1.3.1 |
18 |
x11-libs/qt:4 |
20 |
x11-libs/qt-core:4[qt3support] |
|
|
21 |
x11-libs/qt-gui:4 |
22 |
x11-libs/qt-svg:4 |
23 |
x11-libs/qt-sql:4 |
19 |
dev-db/sqlite:3 |
24 |
dev-db/sqlite:3 |
20 |
sci-libs/geos |
25 |
sci-libs/geos |
21 |
sci-libs/proj |
26 |
sci-libs/proj |
Lines 37-57
Link Here
|
37 |
|
42 |
|
38 |
S=${WORKDIR}/${PN}_${PV} |
43 |
S=${WORKDIR}/${PN}_${PV} |
39 |
|
44 |
|
40 |
pkg_setup() { |
|
|
41 |
if ! built_with_use x11-libs/qt qt3support; then |
42 |
eerror "QGIS needs Qt4 with qt3support. Please recompile qt:" |
43 |
eerror "echo \"=x11-libs/qt-4* qt3support\" >> /etc/portage/package.use" |
44 |
eerror "emerge -av1 qt" |
45 |
die "Qt4 not compiled with 'qt3support'!" |
46 |
fi |
47 |
} |
48 |
|
49 |
src_unpack() { |
45 |
src_unpack() { |
50 |
unpack ${A} |
46 |
unpack ${A} |
51 |
cd "${S}" |
47 |
cd "${S}" |
52 |
} |
48 |
} |
53 |
|
49 |
|
54 |
src_compile() { |
50 |
src_configure() { |
55 |
local mycmakeargs |
51 |
local mycmakeargs |
56 |
mycmakeargs="${mycmakeargs} -DBUILD_SHARED_LIBS:BOOL=ON \ |
52 |
mycmakeargs="${mycmakeargs} -DBUILD_SHARED_LIBS:BOOL=ON \ |
57 |
$(cmake-utils_use_with postgres POSTGRESQL) \ |
53 |
$(cmake-utils_use_with postgres POSTGRESQL) \ |
Lines 70-76
Link Here
|
70 |
mycmakeargs="${mycmakeargs} -DGRASS_PREFIX=${GRASSPATH}" |
66 |
mycmakeargs="${mycmakeargs} -DGRASS_PREFIX=${GRASSPATH}" |
71 |
fi |
67 |
fi |
72 |
|
68 |
|
73 |
cmake-utils_src_compile |
69 |
cmake-utils_src_configure |
74 |
} |
70 |
} |
75 |
|
71 |
|
76 |
src_install() { |
72 |
src_install() { |