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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.6 - (hide annotations) (download)
Mon Aug 8 06:38:25 2005 UTC (14 years, 6 months ago) by nerdboy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
added interim version (bug 72353) and removed broken 5.0.3 version
(Portage version: 2.0.51.22-r2)

1 kugelfang 1.4 # Copyright 1999-2005 Gentoo Foundation
2 ribosome 1.1 # Distributed under the terms of the GNU General Public License v2
3 nerdboy 1.6 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-5.0.3.ebuild,v 1.5 2005/06/02 15:41:24 ribosome Exp $
4 ribosome 1.1
5     DESCRIPTION="An open-source GIS with raster and vector functionality"
6     HOMEPAGE="http://grass.itc.it/
7     http://www.grass-japan.org/FOSS4G/GRASS/grass-inten.html"
8     SRC_URI="!nls? ( http://grass.ibiblio.org/${PN}5/source/${P}_src.tar.gz )
9     nls? ( http://www.grass-japan.org/FOSS4G/GRASS/${P/-/}_i18n_src.tar.gz
10     tcltk? ( http://www.grass-japan.org/FOSS4G/GRASS/tcltkgrass-i18n.tar.gz ) )"
11    
12     LICENSE="GPL-2"
13     SLOT="0"
14 kugelfang 1.4 KEYWORDS="x86 ~amd64"
15 ribosome 1.1 IUSE="tcltk png jpeg tiff postgres odbc gd motif truetype nls"
16     # Removed cause mesa never goes stable.
17     # IUSE="${IUSE} nviz"
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     virtual/x11
25     >=sys-libs/gdbm-1.8.0
26     >=sys-devel/gcc-3.2.2
27 ribosome 1.2 =sci-libs/fftw-2*
28 ribosome 1.3 >=sci-libs/lapack-3.0
29     >=sci-libs/blas-19980702
30 ribosome 1.1 >=media-libs/netpbm-9.12
31     >=dev-lang/R-1.6.1
32     tcltk? ( >=dev-lang/tcl-8.3.4
33     >=dev-lang/tk-8.3.4 )
34     png? ( >=media-libs/libpng-1.2.5 )
35     jpeg? ( >=media-libs/jpeg-6b )
36     tiff? ( >=media-libs/tiff-3.5.7 )
37     postgres? ( >=dev-db/postgresql-7.3.2 )
38     odbc? ( >=dev-db/unixODBC-2.0.6 )
39     gd? ( >=media-libs/gd-1.8.3 )
40 ribosome 1.5 motif? ( virtual/motif )
41 ribosome 1.1 truetype? ( >=media-libs/freetype-2.1.3 )
42     nls? ( x11-terms/mlterm )"
43     #nviz? ( >=media-libs/mesa-3.5 )"
44    
45     use nls && S="${WORKDIR}/${P}-i18n"
46    
47     src_compile() {
48    
49     local myconf="--with-blas --with-lapack"
50    
51     use tcltk \
52     && myconf="${myconf} --with-tcltk" \
53     || myconf="${myconf} --without-tcltk"
54    
55     use png \
56     && myconf="${myconf} --with-png" \
57     || myconf="${myconf} --without-png"
58    
59     use jpeg \
60     && myconf="${myconf} --with-jpeg" \
61     || myconf="${myconf} --without-jpeg"
62    
63     use tiff \
64     && myconf="${myconf} --with-tiff" \
65     || myconf="${myconf} --without-tiff"
66    
67     use odbc \
68     && myconf="${myconf} --with-odbc" \
69     || myconf="${myconf} --without-odbc"
70    
71     use gd \
72     && myconf="${myconf} --with-gd" \
73     || myconf="${myconf} --without-gd"
74    
75     use postgres \
76     && myconf="${myconf} --with-postgres --with-postgres-includes=/usr/include/postgresql/server" \
77     || myconf="${myconf} --without-postgres"
78    
79     use motif \
80     && myconf="${myconf} --with-motif --with-motif-includes=/usr/X11R6/include" \
81     || myconf="${myconf} --without-motif"
82    
83     use truetype \
84     && myconf="${myconf} --with-freetype --with-freetype-includes=/usr/include/freetype2" \
85     || myconf="${myconf} --without-freetype"
86    
87     #use nviz \
88     #&& myconf="${myconf} --with-glw" \
89     #|| myconf="${myconf} --without-glw"
90    
91     use nls \
92     && myconf="${myconf} --with-nls --with-freetype"
93    
94     ./configure \
95     --host=${CHOST} \
96     --prefix=${D}/usr \
97     --infodir=/usr/share/info \
98     --mandir=/usr/share/man \
99     ${myconf} || die "./configure failed"
100     emake -j1 || die "emake failed"
101    
102     # clean ccache directories left in ${S}
103     find . -type d -name ".ccache" | xargs rm -rf
104     }
105    
106     src_install() {
107     make install || die
108     dosed "s:^GISBASE=.*$:GISBASE=/usr/grass5:" \
109     /usr/bin/grass5
110    
111     if use nls && use tcltk ; then
112     pushd ${D}/usr/grass5
113     unpack tcltkgrass-i18n.tar.gz
114     dodoc AUTHORS BUGS NEWS.html README TODO.txt
115     dohtml REQUIREMENTS.html
116     rm [A-Z]*
117     popd
118     fi
119     }

  ViewVC Help
Powered by ViewVC 1.1.20