/[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.6 - (hide annotations) (download)
Sun Dec 24 21:00:13 2006 UTC (13 years, 1 month ago) by nerdboy
Branch: MAIN
CVS Tags: HEAD
Changes since 1.5: +1 -1 lines
FILE REMOVED
cleaned up wrong ebuild (should've been 6.0.2 instead)
(Portage version: 2.1.2_rc3-r2)
 (Unsigned Manifest commit)

1 nerdboy 1.1 # Copyright 1999-2006 Gentoo Foundation
2     # Distributed under the terms of the GNU General Public License v2
3 nerdboy 1.6 # $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.0.2.ebuild,v 1.5 2006/11/23 16:49:13 vivo 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="~amd64 ~ppc ~sparc ~x86"
16 nerdboy 1.1 # 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 vapier 1.4 virtual/man
31 nerdboy 1.1 >=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 vivo 1.5 mysql? ( virtual/mysql )
37 nerdboy 1.1 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 nerdboy 1.3 || (
62 nerdboy 1.1 ( x11-proto/xproto x11-proto/xextproto )
63     virtual/x11
64     )"
65    
66     src_unpack() {
67     unpack ${A}
68    
69     cd ${S}
70     epatch rpm/fedora/grass-readline.patch
71     }
72    
73     src_compile() {
74    
75     MYCONF=" --with-cxx --enable-shared --with-gdal=/usr/bin/gdal-config"
76    
77     if use truetype; then
78     MYCONF="${MYCONF} --with-freetype-includes=/usr/include/freetype2/"
79     fi
80    
81     use mysql && MYCONF="${MYCONF} --with-mysql \
82     --with-mysql-includes=/usr/include/mysql \
83     --with-mysql-libs=/usr/$(get_libdir)/mysql" \
84     || MYCONF="${MYCONF} --without-mysql"
85    
86     if use opengl; then
87     MYCONF="${MYCONF} --with-opengl-libs=/usr/$(get_libdir)/opengl/xorg-x11/lib/"
88     fi
89    
90     # apparently gdal isn't optional with this version
91     # we'll temporarily make it a hard dep for now
92     # if use gdal; then
93     # MYCONF="${MYCONF} --with-gdal=/usr/bin/gdal-config"
94     # else
95     # MYCONF="${MYCONF} --without-gdal"
96     # fi
97    
98     export LD_LIBRARY_PATH="/${WORKDIR}/image/usr/grass60/$(get_libdir):${LD_LIBRARY_PATH}"
99     ./configure \
100     `use_with postgres` \
101     `use_with motif` \
102     `use_with fftw` \
103     `use_with truetype freetype` \
104     `use_with jpeg` \
105     `use_with png` \
106     `use_with tiff` \
107     `use_with odbc` \
108     `use_enable amd64 64bit` \
109     `use_with opengl` \
110     `use_with readline` \
111     `use_with tcltk` \
112     ${MYCONF} || die "Error: configure failed!"
113     emake -j1 || die "Error: emake failed!"
114     }
115    
116     src_install() {
117     make install \
118     prefix=${D}/usr UNIX_BIN=${D}/usr/bin BINDIR=${D}/usr/bin PREFIX=${D}/usr \
119     || die "Error: make install failed!"
120     sed -i "s:^GISBASE=.*$:GISBASE=/usr/grass60:" \
121     ${D}/usr/bin/grass60
122    
123     # This is required for GRASS dependent ebuilds (ie. QGIS)
124     mv ${D}/usr/${P} ${D}/usr/grass60
125    
126     einfo "Adding env.d entry for Grass6"
127     insinto /etc/env.d
128     newins ${FILESDIR}/99grass-6 99grass
129     }

  ViewVC Help
Powered by ViewVC 1.1.20