/[gentoo-x86]/sci-geosciences/grass/grass-6.0.0.ebuild
Gentoo

Contents of /sci-geosciences/grass/grass-6.0.0.ebuild

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.4 - (show annotations) (download)
Sat Jul 23 06:42:03 2005 UTC (14 years, 7 months ago) by nerdboy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.3: +1 -1 lines
FILE REMOVED
fixed for use with gdal, ogdi, proj, etc
(Portage version: 2.0.51.22-r2)

1 # Copyright 1999-2005 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.0.0.ebuild,v 1.3 2005/07/20 02:07:35 nerdboy Exp $
4
5 inherit eutils
6
7 DESCRIPTION="An open-source GIS with raster and vector functionality"
8 HOMEPAGE="http://grass.itc.it/"
9 SRC_URI="http://grass.itc.it/grass60/source/${P}.tar.gz
10 http://grass.meteo.uni.wroc.pl/grass60/source/${P}.tar.gz
11 http://grass.ibiblio.org/grass60/source/${P}.tar.gz"
12
13 LICENSE="GPL-2"
14 SLOT="6"
15 KEYWORDS="~x86 ~amd64 ~ppc ~sparc"
16 IUSE="X blas fftw gd gdal jpeg lapack motif mysql nls odbc opengl png postgres readline tcltk tiff truetype"
17 RESTRICT="nostrip"
18
19 DEPEND=">=sys-devel/make-3.80
20 >=sys-libs/zlib-1.1.4
21 >=sys-devel/flex-2.5.4a
22 >=sys-devel/bison-1.35
23 >=sys-libs/ncurses-5.3
24 >=sys-libs/gdbm-1.8.0
25 >=sys-devel/gcc-3.2.2
26 sys-apps/man
27 >=sci-libs/proj-4.4.7
28 blas? ( virtual/blas )
29 fftw? ( =sci-libs/fftw-2* )
30 gdal? ( sci-libs/gdal )
31 gd? ( >=media-libs/gd-1.8.3 )
32 jpeg? ( media-libs/jpeg )
33 lapack? ( virtual/lapack )
34 motif? ( x11-libs/openmotif )
35 || (
36 postgres? ( >=dev-db/postgresql-7.3 )
37 mysql? ( dev-db/mysql )
38 )
39 odbc? ( >=dev-db/unixODBC-2.0.6 )
40 png? ( >=media-libs/libpng-1.2.2 )
41 readline? ( sys-libs/readline )
42 tcltk? ( >=dev-lang/tcl-8.3.4
43 >=dev-lang/tk-8.3.4 )
44 tiff? ( >=media-libs/tiff-3.5.7 )
45 truetype? ( >=media-libs/freetype-2.0 )
46 X? ( virtual/x11 )
47 nls? ( x11-terms/mlterm )"
48 # Mesa 3.5 is currenlty borked on x86
49 #nviz? ( >=media-libs/mesa-3.5 )"
50
51 src_unpack() {
52 unpack ${A}
53
54 cd ${S}
55 epatch rpm/fedora/grass-readline.patch
56 }
57
58 src_compile() {
59
60 MYCONF=" --with-cxx --enable-shared"
61
62 if use truetype; then
63 MYCONF="${MYCONF} --with-freetype-includes=/usr/include/freetype2/ "
64 fi
65
66 use mysql && MYCONF="${MYCONF} --with-mysql \
67 --with-mysql-includes=/usr/include/mysql \
68 --with-mysql-libs=/usr/lib/mysql" \
69 || MYCONF="${MYCONF} --without-mysql"
70
71 if use opengl; then
72 MYCONF="${MYCONF} --with-opengl-libs=/usr/lib/opengl/xorg-x11/lib/"
73 fi
74
75 export LD_LIBRARY_PATH="/${WORKDIR}/image/usr/grass60/lib:${LD_LIBRARY_PATH}"
76 ./configure \
77 `use_with tcltk` \
78 `use_with postgres` \
79 `use_with motif` \
80 `use_with blas` \
81 `use_with lapack` \
82 `use_with fftw` \
83 `use_with truetype freetype` \
84 `use_with jpeg` \
85 `use_with png` \
86 `use_with tiff` \
87 `use_with odbc` \
88 `use_enable amd64 64bit` \
89 `use_with opengl opengl` \
90 `use_with gd` \
91 `use_with gdal` \
92 `use_with readline` \
93 `use_with X` \
94 ${MYCONF} || die "Error: configure failed!"
95 emake -j1 || die "Error: emake failed!"
96 }
97
98 src_install() {
99 make install \
100 prefix=${D}/usr UNIX_BIN=${D}/usr/bin BINDIR=${D}/usr/bin PREFIX=${D}/usr \
101 || die "Error: make install failed!"
102 sed -i "s:^GISBASE=.*$:GISBASE=/usr/grass60:" \
103 ${D}/usr/bin/grass60
104
105 # This is required for GRASS dependent ebuilds (ie. QGIS)
106 mv ${D}/usr/${P} ${D}/usr/grass60
107
108 einfo "Adding env.d entry for Grass6"
109 insinto /etc/env.d
110 newins ${FILESDIR}/99grass-6 99grass
111 }

  ViewVC Help
Powered by ViewVC 1.1.20