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

Diff of /sci-geosciences/grass/grass-6.3.0.ebuild

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

Revision 1.8 Revision 1.15
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.3.0.ebuild,v 1.8 2009/08/02 18:50:17 nerdboy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/Attic/grass-6.3.0.ebuild,v 1.15 2010/06/17 21:03:51 patrick Exp $
4 4
5inherit eutils distutils fdo-mime versionator wxwidgets 5inherit eutils distutils fdo-mime versionator wxwidgets
6 6
7MY_PV=$(get_version_component_range 1-2 ${PV}) 7MY_PV=$(get_version_component_range 1-2 ${PV})
8MY_PVM=$(delete_all_version_separators ${MY_PV}) 8MY_PVM=$(delete_all_version_separators ${MY_PV})
12HOMEPAGE="http://grass.osgeo.org//" 12HOMEPAGE="http://grass.osgeo.org//"
13SRC_URI="http://download.osgeo.org/grass/${MY_PM}/source/${P}.tar.gz" 13SRC_URI="http://download.osgeo.org/grass/${MY_PM}/source/${P}.tar.gz"
14 14
15LICENSE="GPL-2" 15LICENSE="GPL-2"
16SLOT="6" 16SLOT="6"
17KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" 17KEYWORDS="amd64 ppc ~ppc64 sparc x86"
18 18
19IUSE="ffmpeg fftw gmath jpeg largefile motif mysql nls odbc opengl png \ 19IUSE="ffmpeg fftw gmath jpeg largefile motif mysql nls odbc opengl png \
20postgres python readline sqlite tiff truetype wxwindows X" 20postgres python readline sqlite tiff truetype wxwindows X"
21 21
22RESTRICT="strip" 22RESTRICT="strip"
37 mysql? ( dev-db/mysql ) 37 mysql? ( dev-db/mysql )
38 odbc? ( >=dev-db/unixODBC-2.0.6 ) 38 odbc? ( >=dev-db/unixODBC-2.0.6 )
39 opengl? ( virtual/opengl ) 39 opengl? ( virtual/opengl )
40 motif? ( x11-libs/openmotif ) 40 motif? ( x11-libs/openmotif )
41 png? ( >=media-libs/libpng-1.2.2 ) 41 png? ( >=media-libs/libpng-1.2.2 )
42 postgres? ( || (
42 postgres? ( >=dev-db/postgresql-base-8.3 ) 43 >=dev-db/postgresql-base-8.0
44 >=dev-db/postgresql-server-8.0 )
45 )
43 python? ( dev-lang/python ) 46 python? ( dev-lang/python )
44 readline? ( sys-libs/readline ) 47 readline? ( sys-libs/readline )
45 sqlite? ( dev-db/sqlite ) 48 sqlite? ( dev-db/sqlite )
46 tiff? ( >=media-libs/tiff-3.5.7 ) 49 tiff? ( >=media-libs/tiff-3.5.7 )
47 truetype? ( >=media-libs/freetype-2.0 ) 50 truetype? ( >=media-libs/freetype-2.0 )
125 echo "MATHLIB=-lm" >> include/Make/Rules.make 128 echo "MATHLIB=-lm" >> include/Make/Rules.make
126} 129}
127 130
128src_compile() { 131src_compile() {
129 local myconf 132 local myconf
130 # wxwindows needs python (see bug #237495) 133 addpredict /var/cache/fontconfig
131 use wxwindows && distutils_python_version
132 134
133 myconf="--prefix=/usr --with-cxx --enable-shared \ 135 myconf="--prefix=/usr --with-cxx --enable-shared \
134 --with-gdal=$(type -P gdal-config) --with-curses --with-proj \ 136 --with-gdal=$(type -P gdal-config) --with-curses --with-proj \
135 --with-includes=/usr/include --with-libs=/usr/$(get_libdir) \ 137 --with-includes=/usr/include --with-libs=/usr/$(get_libdir) \
136 --with-proj-includes=/usr/include \ 138 --with-proj-includes=/usr/include \
151 WX_GTK_VER=2.8 153 WX_GTK_VER=2.8
152 need-wxwidgets unicode 154 need-wxwidgets unicode
153 # The following lib should be there, based on the above and the 155 # The following lib should be there, based on the above and the
154 # wxpython dependency (in theory). I still need a good way to 156 # wxpython dependency (in theory). I still need a good way to
155 # query for the location... 157 # query for the location...
156 LIBGDI="/usr/$(get_libdir)/python${PYVER}/site-packages/wx-${WX_GTK_VER}-gtk2-unicode/wx/_gdi_.so" 158 LIBGDI="$(python_get_sitedir)/wx-${WX_GTK_VER}-gtk2-unicode/wx/_gdi_.so"
157 myconf="${myconf} --with-python --with-wxwidgets=${WX_CONFIG}" 159 myconf="${myconf} --with-python --with-wxwidgets=${WX_CONFIG}"
158 else 160 else
159 # USE=python must be enabled above if wxwindows is enabled 161 # USE=python must be enabled above if wxwindows is enabled
160 myconf="${myconf} $(use_with python) --without-wxwidgets" 162 myconf="${myconf} $(use_with python) --without-wxwidgets"
161 fi 163 fi
290 Comment=GRASS (Geographic Resources Analysis Support System), the original GIS. 292 Comment=GRASS (Geographic Resources Analysis Support System), the original GIS.
291 Exec=${TERM} -T Grass -e /usr/bin/${MY_PM} ${GUI} 293 Exec=${TERM} -T Grass -e /usr/bin/${MY_PM} ${GUI}
292 Path= 294 Path=
293 Icon=grass_icon.png 295 Icon=grass_icon.png
294 Categories=Science;Education; 296 Categories=Science;Education;
295 Terminal=true 297 Terminal=false
296 EOF 298 EOF
297} 299}

Legend:
Removed from v.1.8  
changed lines
  Added in v.1.15

  ViewVC Help
Powered by ViewVC 1.1.20