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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.2 - (hide annotations) (download)
Sun Sep 11 04:14:51 2005 UTC (14 years, 5 months ago) by nerdboy
Branch: MAIN
Changes since 1.1: +2 -2 lines
stable bump for sparc and x86
(Portage version: 2.0.51.22-r2)

1 nerdboy 1.1 # Copyright 1999-2005 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 nerdboy 1.2 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.0.0-r2.ebuild,v 1.1 2005/07/25 01:22:29 nerdboy Exp $
4 nerdboy 1.1
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 nerdboy 1.2 KEYWORDS="x86 ~amd64 ~ppc ~ppc64 sparc"
16 nerdboy 1.1
17     # add gdal back to use flags once grass is fixed
18     IUSE="blas fftw jpeg lapack motif mysql nls odbc opengl png postgres readline tcltk tiff truetype"
19    
20     RESTRICT="nostrip"
21    
22     DEPEND=">=sys-devel/make-3.80
23     >=sys-libs/zlib-1.1.4
24     >=sys-devel/flex-2.5.4a
25     >=sys-devel/bison-1.35
26     >=sys-libs/ncurses-5.3
27     >=sys-libs/gdbm-1.8.0
28     >=sys-devel/gcc-3.2.2
29     sys-apps/man
30     >=sci-libs/proj-4.4.7
31     blas? ( virtual/blas )
32     fftw? ( =sci-libs/fftw-2* )
33     sci-libs/gdal
34     jpeg? ( media-libs/jpeg )
35     lapack? ( virtual/lapack )
36     motif? ( x11-libs/openmotif )
37     postgres? ( >=dev-db/postgresql-7.3 )
38     mysql? ( dev-db/mysql )
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     nls? ( x11-terms/mlterm )
47     opengl? ( virtual/opengl )
48     virtual/x11"
49    
50     src_unpack() {
51     unpack ${A}
52    
53     cd ${S}
54     epatch rpm/fedora/grass-readline.patch
55     }
56    
57     src_compile() {
58    
59     MYCONF=" --with-cxx --enable-shared --with-gdal=/usr/bin/gdal-config"
60    
61     if use truetype; then
62     MYCONF="${MYCONF} --with-freetype-includes=/usr/include/freetype2/ "
63     fi
64    
65     use mysql && MYCONF="${MYCONF} --with-mysql \
66     --with-mysql-includes=/usr/include/mysql \
67     --with-mysql-libs=/usr/lib/mysql" \
68     || MYCONF="${MYCONF} --without-mysql"
69    
70     if use opengl; then
71     MYCONF="${MYCONF} --with-opengl-libs=/usr/lib/opengl/xorg-x11/lib/"
72     fi
73    
74     # apparently gdal isn't optional with this version
75     # we'll temporarily make it a hard dep for now
76     # if use gdal; then
77     # MYCONF="${MYCONF} --with-gdal=/usr/bin/gdal-config"
78     # else
79     # MYCONF="${MYCONF} --without-gdal"
80     # fi
81    
82     export LD_LIBRARY_PATH="/${WORKDIR}/image/usr/grass60/lib:${LD_LIBRARY_PATH}"
83     ./configure \
84     `use_with tcltk` \
85     `use_with postgres` \
86     `use_with motif` \
87     `use_with blas` \
88     `use_with lapack` \
89     `use_with fftw` \
90     `use_with truetype freetype` \
91     `use_with jpeg` \
92     `use_with png` \
93     `use_with tiff` \
94     `use_with odbc` \
95     `use_enable amd64 64bit` \
96     `use_with opengl` \
97     `use_with readline` \
98     ${MYCONF} || die "Error: configure failed!"
99     emake -j1 || die "Error: emake failed!"
100     }
101    
102     src_install() {
103     make install \
104     prefix=${D}/usr UNIX_BIN=${D}/usr/bin BINDIR=${D}/usr/bin PREFIX=${D}/usr \
105     || die "Error: make install failed!"
106     sed -i "s:^GISBASE=.*$:GISBASE=/usr/grass60:" \
107     ${D}/usr/bin/grass60
108    
109     # This is required for GRASS dependent ebuilds (ie. QGIS)
110     mv ${D}/usr/${P} ${D}/usr/grass60
111    
112     einfo "Adding env.d entry for Grass6"
113     insinto /etc/env.d
114     newins ${FILESDIR}/99grass-6 99grass
115     }

  ViewVC Help
Powered by ViewVC 1.1.20