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

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

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1 - (hide annotations) (download)
Sat Mar 18 22:28:45 2006 UTC (13 years, 11 months ago) by nerdboy
Branch: MAIN
Fixes for bugs 119133, 123707, and 125561, plus modular X updates
(Portage version: 2.1_pre6-r2)

1 nerdboy 1.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-6.0.1.ebuild,v 1.2 2005/10/13 06:38: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="~amd64 ~ppc sparc x86"
16     # To-do: get ppc64 gdal deps fixed up
17    
18     # add gdal back to use flags once grass is fixed
19     IUSE="fftw jpeg motif mysql nls odbc opengl png postgres readline tcltk tiff truetype"
20    
21     RESTRICT="nostrip"
22    
23     RDEPEND=">=sys-devel/make-3.80
24     >=sys-libs/zlib-1.1.4
25     >=sys-devel/flex-2.5.4a
26     >=sys-devel/bison-1.35
27     >=sys-libs/ncurses-5.3
28     >=sys-libs/gdbm-1.8.0
29     >=sys-devel/gcc-3.2.2
30     sys-apps/man
31     >=sci-libs/proj-4.4.7
32     sci-libs/gdal
33     fftw? ( =sci-libs/fftw-2* )
34     jpeg? ( media-libs/jpeg )
35     postgres? ( >=dev-db/postgresql-7.3 )
36     mysql? ( dev-db/mysql )
37     odbc? ( >=dev-db/unixODBC-2.0.6 )
38     png? ( >=media-libs/libpng-1.2.2 )
39     readline? ( sys-libs/readline )
40     tiff? ( >=media-libs/tiff-3.5.7 )
41     truetype? ( >=media-libs/freetype-2.0 )
42     nls? ( x11-terms/mlterm )
43     opengl? ( virtual/opengl )
44     tcltk? ( >=dev-lang/tcl-8.3.4
45     >=dev-lang/tk-8.3.4 )
46     motif? ( x11-libs/openmotif )
47     || (
48     ( x11-libs/libXmu
49     x11-libs/libXext
50     x11-libs/libXp
51     x11-libs/libX11
52     x11-libs/libXt
53     x11-libs/libSM
54     x11-libs/libICE
55     x11-libs/libXpm
56     x11-libs/libXaw )
57     virtual/x11
58     )"
59    
60     DEPEND="${RDEPEND}
61     X? ( || (
62     ( x11-proto/xproto x11-proto/xextproto )
63     virtual/x11
64     )
65     )"
66    
67    
68     src_unpack() {
69     unpack ${A}
70    
71     cd ${S}
72     epatch rpm/fedora/grass-readline.patch
73     }
74    
75     src_compile() {
76    
77     MYCONF=" --with-cxx --enable-shared --with-gdal=/usr/bin/gdal-config"
78    
79     if use truetype; then
80     MYCONF="${MYCONF} --with-freetype-includes=/usr/include/freetype2/"
81     fi
82    
83     use mysql && MYCONF="${MYCONF} --with-mysql \
84     --with-mysql-includes=/usr/include/mysql \
85     --with-mysql-libs=/usr/$(get_libdir)/mysql" \
86     || MYCONF="${MYCONF} --without-mysql"
87    
88     if use opengl; then
89     MYCONF="${MYCONF} --with-opengl-libs=/usr/$(get_libdir)/opengl/xorg-x11/lib/"
90     fi
91    
92     # apparently gdal isn't optional with this version
93     # we'll temporarily make it a hard dep for now
94     # if use gdal; then
95     # MYCONF="${MYCONF} --with-gdal=/usr/bin/gdal-config"
96     # else
97     # MYCONF="${MYCONF} --without-gdal"
98     # fi
99    
100     export LD_LIBRARY_PATH="/${WORKDIR}/image/usr/grass60/$(get_libdir):${LD_LIBRARY_PATH}"
101     ./configure \
102     `use_with postgres` \
103     `use_with motif` \
104     `use_with fftw` \
105     `use_with truetype freetype` \
106     `use_with jpeg` \
107     `use_with png` \
108     `use_with tiff` \
109     `use_with odbc` \
110     `use_enable amd64 64bit` \
111     `use_with opengl` \
112     `use_with readline` \
113     `use_with tcltk` \
114     ${MYCONF} || die "Error: configure failed!"
115     emake -j1 || die "Error: emake failed!"
116     }
117    
118     src_install() {
119     make install \
120     prefix=${D}/usr UNIX_BIN=${D}/usr/bin BINDIR=${D}/usr/bin PREFIX=${D}/usr \
121     || die "Error: make install failed!"
122     sed -i "s:^GISBASE=.*$:GISBASE=/usr/grass60:" \
123     ${D}/usr/bin/grass60
124    
125     # This is required for GRASS dependent ebuilds (ie. QGIS)
126     mv ${D}/usr/${P} ${D}/usr/grass60
127    
128     einfo "Adding env.d entry for Grass6"
129     insinto /etc/env.d
130     newins ${FILESDIR}/99grass-6 99grass
131     }

  ViewVC Help
Powered by ViewVC 1.1.20