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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.7 - (show annotations) (download)
Wed Sep 6 05:24:52 2006 UTC (13 years, 5 months ago) by nerdboy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.6: +1 -1 lines
FILE REMOVED
removing old version due to dep cleanup issues
(Portage version: 2.1.1_pre5-r3)
 (Unsigned Manifest commit)

1 # Copyright 1999-2006 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
3 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-5.0.2.ebuild,v 1.6 2006/03/18 22:28:45 nerdboy Exp $
4
5 DESCRIPTION="An open-source GIS with raster and vector functionality"
6 HOMEPAGE="http://grass.itc.it/"
7 SRC_URI="http://grass.ibiblio.org/${PN}5/source/${P}_src.tar.gz"
8
9 LICENSE="GPL-2"
10 SLOT="0"
11 KEYWORDS="x86"
12 IUSE="tcltk png jpeg tiff postgres odbc gd motif truetype"
13 # Removed cause mesa never goes stable.
14 # IUSE="${IUSE} nviz"
15
16 DEPEND=">=sys-devel/make-3.80
17 >=sys-libs/zlib-1.1.4
18 >=sys-devel/flex-2.5.4a
19 >=sys-devel/bison-1.35
20 >=sys-libs/ncurses-5.3
21 || ( x11-libs/libX11 virtual/x11 )
22 >=sys-libs/gdbm-1.8.0
23 >=sys-devel/gcc-3.2.2
24 =sci-libs/fftw-2*
25 >=sci-libs/lapack-3.0
26 >=sci-libs/blas-19980702
27 >=media-libs/netpbm-9.12
28 >=dev-lang/R-1.6.1
29 tcltk? ( >=dev-lang/tcl-8.3.4
30 >=dev-lang/tk-8.3.4 )
31 png? ( >=media-libs/libpng-1.2.5 )
32 jpeg? ( >=media-libs/jpeg-6b )
33 tiff? ( >=media-libs/tiff-3.5.7 )
34 postgres? ( >=dev-db/postgresql-7.3.2 )
35 odbc? ( >=dev-db/unixODBC-2.0.6 )
36 gd? ( >=media-libs/gd-1.8.3 )
37 motif? ( virtual/motif )
38 truetype? ( >=media-libs/freetype-2.1.3 )"
39 #nviz? ( >=media-libs/mesa-3.5 )"
40
41 S=${WORKDIR}/${P/-/}
42
43 src_compile() {
44
45 local myconf="--with-blas --with-lapack"
46
47 use tcltk \
48 && myconf="${myconf} --with-tcltk" \
49 || myconf="${myconf} --without-tcltk"
50
51 use png \
52 && myconf="${myconf} --with-png" \
53 || myconf="${myconf} --without-png"
54
55 use jpeg \
56 && myconf="${myconf} --with-jpeg" \
57 || myconf="${myconf} --without-jpeg"
58
59 use tiff \
60 && myconf="${myconf} --with-tiff" \
61 || myconf="${myconf} --without-tiff"
62
63 use odbc \
64 && myconf="${myconf} --with-odbc" \
65 || myconf="${myconf} --without-odbc"
66
67 use gd \
68 && myconf="${myconf} --with-gd" \
69 || myconf="${myconf} --without-gd"
70
71 use postgres \
72 && myconf="${myconf} --with-postgres --with-postgres-includes=/usr/include/postgresql/server" \
73 || myconf="${myconf} --without-postgres"
74
75 use motif \
76 && myconf="${myconf} --with-motif --with-motif-includes=/usr/X11R6/include" \
77 || myconf="${myconf} --without-motif"
78
79 use truetype \
80 && myconf="${myconf} --with-freetype --with-freetype-includes=/usr/include/freetype2" \
81 || myconf="${myconf} --without-freetype"
82
83 #use nviz \
84 #&& myconf="${myconf} --with-glw" \
85 #|| myconf="${myconf} --without-glw"
86
87 ./configure \
88 --host=${CHOST} \
89 --prefix=${D}/usr \
90 --infodir=/usr/share/info \
91 --mandir=/usr/share/man \
92 ${myconf} || die "./configure failed"
93 make || die "make failed"
94 }
95
96 src_install() {
97 make install || die
98 dosed "s:^GISBASE=.*$:GISBASE=/usr/grass5:" \
99 /usr/bin/grass5
100 }

  ViewVC Help
Powered by ViewVC 1.1.20