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

Diff of /sci-geosciences/grass/grass-6.4.0_rc5.ebuild

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.1 Revision 1.2
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2010 Gentoo Foundation
2# Distributed under the terms of the GNU General Public License v2 2# Distributed under the terms of the GNU General Public License v2
3# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/Attic/grass-6.4.0_rc5.ebuild,v 1.1 2009/12/28 07:22:26 nerdboy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/Attic/grass-6.4.0_rc5.ebuild,v 1.2 2010/02/17 16:48:21 scarabeus Exp $
4 4
5EAPI="2" 5EAPI="2"
6 6
7inherit eutils distutils fdo-mime versionator wxwidgets 7inherit eutils distutils fdo-mime versionator wxwidgets
8 8
17 17
18LICENSE="GPL-2" 18LICENSE="GPL-2"
19SLOT="6" 19SLOT="6"
20KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" 20KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86"
21 21
22IUSE="ffmpeg fftw gmath jpeg largefile motif mysql nls odbc opengl png \ 22IUSE="X ffmpeg fftw gmath jpeg largefile motif mysql nls odbc opengl png
23postgres python readline sqlite tiff truetype wxwindows X" 23 postgres python readline sqlite tiff truetype wxwindows"
24 24
25RESTRICT="strip" 25RESTRICT="strip"
26 26
27RDEPEND=">=sys-libs/zlib-1.1.4 27RDEPEND=">=sys-libs/zlib-1.1.4
28 >=sys-libs/ncurses-5.3 28 >=sys-libs/ncurses-5.3
29 >=sys-libs/gdbm-1.8.0 29 >=sys-libs/gdbm-1.8.0
30 || ( 30 || (
31 sys-apps/man 31 sys-apps/man
32 sys-apps/man-db ) 32 sys-apps/man-db
33 )
33 sci-libs/gdal 34 sci-libs/gdal
34 >=sci-libs/proj-4.4.7 35 >=sci-libs/proj-4.4.7
35 ffmpeg? ( media-video/ffmpeg ) 36 ffmpeg? ( media-video/ffmpeg )
36 fftw? ( sci-libs/fftw ) 37 fftw? ( sci-libs/fftw )
37 gmath? ( virtual/blas 38 gmath? (
39 virtual/blas
38 virtual/lapack ) 40 virtual/lapack
41 )
39 jpeg? ( media-libs/jpeg ) 42 jpeg? ( media-libs/jpeg )
40 mysql? ( dev-db/mysql ) 43 mysql? ( dev-db/mysql )
41 odbc? ( >=dev-db/unixODBC-2.0.6 ) 44 odbc? ( >=dev-db/unixODBC-2.0.6 )
42 opengl? ( virtual/opengl ) 45 opengl? ( virtual/opengl )
43 motif? ( x11-libs/openmotif ) 46 motif? ( x11-libs/openmotif )
44 png? ( >=media-libs/libpng-1.2.2 ) 47 png? ( >=media-libs/libpng-1.2.2 )
45 postgres? ( || ( 48 postgres? (
49 || (
46 >=virtual/postgresql-base-8.0 50 >=virtual/postgresql-base-8.0
47 >=virtual/postgresql-server-8.0 ) 51 >=virtual/postgresql-server-8.0
52 )
48 ) 53 )
49 python? ( dev-lang/python ) 54 python? ( dev-lang/python )
50 readline? ( sys-libs/readline ) 55 readline? ( sys-libs/readline )
51 sqlite? ( dev-db/sqlite ) 56 sqlite? ( dev-db/sqlite )
52 tiff? ( >=media-libs/tiff-3.5.7 ) 57 tiff? ( >=media-libs/tiff-3.5.7 )
116 121
117 sed -i -e "s:buff\[12:buff\[16:g" general/g.parser/main.c \ 122 sed -i -e "s:buff\[12:buff\[16:g" general/g.parser/main.c \
118 || die "sed failed" 123 || die "sed failed"
119 124
120 if ! use opengl; then 125 if ! use opengl; then
121 epatch "${FILESDIR}"/${P}-html-nonviz.patch 126 epatch "${FILESDIR}"/${PN}-6.4.0-html-nonviz.patch
122 fi 127 fi
123 128
124 # patch missing math functions (yes, this is still needed) 129 # patch missing math functions (yes, this is still needed)
125 sed -i -e "s:\$(EXTRA_LIBS):\$(EXTRA_LIBS) \$(MATHLIB):g" include/Make/Shlib.make 130 sed -i -e "s:\$(EXTRA_LIBS):\$(EXTRA_LIBS) \$(MATHLIB):g" include/Make/Shlib.make
126 echo "MATHLIB=-lm" >> include/Make/Rules.make 131 echo "MATHLIB=-lm" >> include/Make/Rules.make
139 --with-proj-libs=/usr/$(get_libdir) \ 144 --with-proj-libs=/usr/$(get_libdir) \
140 --with-proj-share=/usr/share/proj \ 145 --with-proj-share=/usr/share/proj \
141 --without-glw" 146 --without-glw"
142 147
143 if use X; then 148 if use X; then
144 if has_version ">=dev-lang/tcl-8.5"; then 149 if has_version ">=dev-lang/tcl-8.5"; then
145 TCL_LIBDIR="/usr/$(get_libdir)/tcl8.5" 150 TCL_LIBDIR="/usr/$(get_libdir)/tcl8.5"
146 else 151 else
147 TCL_LIBDIR="/usr/$(get_libdir)/tcl8.4" 152 TCL_LIBDIR="/usr/$(get_libdir)/tcl8.4"
148 fi 153 fi
149 myconf="${myconf} --with-tcltk --with-x \ 154 myconf+=" --with-tcltk --with-x \
150 --with-tcltk-includes=/usr/include \ 155 --with-tcltk-includes=/usr/include \
151 --with-tcltk-libs=${TCL_LIBDIR}" 156 --with-tcltk-libs=${TCL_LIBDIR}"
152 if use wxwindows; then 157 if use wxwindows; then
153 WX_GTK_VER=2.8 158 WX_GTK_VER=2.8
154 need-wxwidgets unicode 159 need-wxwidgets unicode
155 myconf="${myconf} --with-python --with-wxwidgets=${WX_CONFIG}" 160 myconf+=" --with-python --with-wxwidgets=${WX_CONFIG}"
156 else 161 else
157 # USE=python must be enabled above if wxwindows is enabled 162 # USE=python must be enabled above if wxwindows is enabled
158 myconf="${myconf} $(use_with python) --without-wxwidgets" 163 myconf+=" $(use_with python) --without-wxwidgets"
159 fi 164 fi
160 else 165 else
161 myconf="${myconf} --without-tcltk --without-x" 166 myconf+=" --without-tcltk --without-x"
162 fi 167 fi
163 168
164 if use opengl; then 169 if use opengl; then
165 myconf="${myconf} --with-opengl --with-opengl-libs=/usr/$(get_libdir)/opengl/xorg-x11/lib" 170 myconf+=" --with-opengl --with-opengl-libs=/usr/$(get_libdir)/opengl/xorg-x11/lib"
166 else 171 else
167 myconf="${myconf} --without-opengl" 172 myconf+=" --without-opengl"
168 fi 173 fi
169 174
170 if use truetype; then 175 if use truetype; then
171 myconf="${myconf} --with-freetype \ 176 myconf+=" --with-freetype
172 --with-freetype-includes=/usr/include/freetype2" 177 --with-freetype-includes=/usr/include/freetype2"
173 fi 178 fi
174 179
175 if use mysql; then 180 if use mysql; then
176 myconf="${myconf} --with-mysql --with-mysql-includes=/usr/include/mysql \ 181 myconf+=" --with-mysql --with-mysql-includes=/usr/include/mysql
177 --with-mysql-libs=/usr/$(get_libdir)/mysql" 182 --with-mysql-libs=/usr/$(get_libdir)/mysql"
178 else 183 else
179 myconf="${myconf} --without-mysql" 184 myconf+=" --without-mysql"
180 fi 185 fi
181 186
182 if use sqlite; then 187 if use sqlite; then
183 myconf="${myconf} --with-sqlite --with-sqlite-includes=/usr/include \ 188 myconf+=" --with-sqlite --with-sqlite-includes=/usr/include
184 --with-sqlite-libs=/usr/$(get_libdir)" 189 --with-sqlite-libs=/usr/$(get_libdir)"
185 else 190 else
186 myconf="${myconf} --without-sqlite" 191 myconf+=" --without-sqlite"
187 fi 192 fi
188 193
189 # Old ffmpeg is gone, but new is a pita with all those include dirs, 194 # Old ffmpeg is gone, but new is a pita with all those include dirs,
190 # thus, a rather funky configure... 195 # thus, a rather funky configure...
191 if use ffmpeg; then 196 if use ffmpeg; then
192 ffmlib_conf="--with-ffmpeg --with-ffmpeg-libs=/usr/$(get_libdir)" 197 ffmlib_conf="--with-ffmpeg --with-ffmpeg-libs=/usr/$(get_libdir)"
193 else 198 else
194 myconf="${myconf} --without-ffmpeg" 199 myconf+=" --without-ffmpeg"
195 fi 200 fi
196 201
197 myconf="${myconf} --with-libs=/usr/$(get_libdir) \ 202 myconf+=" --with-libs=/usr/$(get_libdir)
198 $(use_enable amd64 64bit) \ 203 $(use_enable amd64 64bit)
199 $(use_with fftw) \ 204 $(use_with fftw)
200 $(use_with gmath blas) \ 205 $(use_with gmath blas)
201 $(use_with gmath lapack) \ 206 $(use_with gmath lapack)
202 $(use_with jpeg) \ 207 $(use_with jpeg)
203 $(use_enable largefile) \ 208 $(use_enable largefile)
204 $(use_with motif) \ 209 $(use_with motif)
205 $(use_with nls) \ 210 $(use_with nls)
206 $(use_with odbc) \ 211 $(use_with odbc)
207 $(use_with png) \ 212 $(use_with png)
208 $(use_with postgres) \ 213 $(use_with postgres)
209 $(use_with readline) \ 214 $(use_with readline)
210 $(use_with tiff)" 215 $(use_with tiff)"
211 216
212 if use ffmpeg; then 217 if use ffmpeg; then
213 "${S}"/configure ${myconf} ${ffmlib_conf} \ 218 "${S}"/configure ${myconf} ${ffmlib_conf} \
214 --with-ffmpeg-includes="/usr/include/libavcodec \ 219 --with-ffmpeg-includes="/usr/include/libavcodec \
237 242
238 # Grass Extension Manager conflicts with ruby gems 243 # Grass Extension Manager conflicts with ruby gems
239 mv "${D}"usr/bin/gem "${D}"usr/${MY_PM}/bin/ 244 mv "${D}"usr/bin/gem "${D}"usr/${MY_PM}/bin/
240 245
241 ebegin "Adding env.d and desktop entry for Grass6..." 246 ebegin "Adding env.d and desktop entry for Grass6..."
242 generate_files 247 generate_files
243 doenvd 99grass-6 248 doenvd 99grass-6
244 if use X; then 249 if use X; then
245 doicon "${FILESDIR}"/grass_icon.png 250 doicon "${FILESDIR}"/grass_icon.png
246 domenu ${MY_PM}-grass.desktop 251 domenu ${MY_PM}-grass.desktop
247 fi 252 fi
248 eend ${?} 253 eend ${?}
249} 254}
250 255
251pkg_postinst() { 256pkg_postinst() {
252 use X && fdo-mime_desktop_database_update 257 use X && fdo-mime_desktop_database_update

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20