/[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.6 Revision 1.9
1# Copyright 1999-2009 Gentoo Foundation 1# Copyright 1999-2009 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.6 2009/03/23 03:51:42 nerdboy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/Attic/grass-6.3.0.ebuild,v 1.9 2009/09/05 02:09:59 nerdboy 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})
9MY_PM=${PN}${MY_PVM} 9MY_PM=${PN}${MY_PVM}
10 10
11DESCRIPTION="An open-source GIS with raster and vector functionality, as well as 3D vizualization." 11DESCRIPTION="A free GIS with raster and vector functionality, as well as 3D vizualization."
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"
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? ( >=dev-db/postgresql-base-8.3 ) 42 postgres? ( || (
43 >=virtual/postgresql-base-8.0
44 >=virtual/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 )
108 cd "${S}" 111 cd "${S}"
109 112
110 epatch rpm/fedora/grass-readline.patch 113 epatch rpm/fedora/grass-readline.patch
111 # fix the fortify_source and buffer issues (see bug #261283) 114 # fix the fortify_source and buffer issues (see bug #261283)
112 epatch "${FILESDIR}"/${P}-o_creat.patch 115 epatch "${FILESDIR}"/${P}-o_creat.patch
116 # and update for gcc 4.4 C++ changes (see bug #270916)
117 epatch "${FILESDIR}"/${P}-gcc44.patch
118
113 sed -i -e "s:buff\[12:buff\[16:g" general/g.parser/main.c \ 119 sed -i -e "s:buff\[12:buff\[16:g" general/g.parser/main.c \
114 || die "sed failed" 120 || die "sed failed"
115 121
116 if ! use opengl; then 122 if ! use opengl; then
117 epatch "${FILESDIR}"/${P}-html-nonviz.patch 123 epatch "${FILESDIR}"/${P}-html-nonviz.patch
122 echo "MATHLIB=-lm" >> include/Make/Rules.make 128 echo "MATHLIB=-lm" >> include/Make/Rules.make
123} 129}
124 130
125src_compile() { 131src_compile() {
126 local myconf 132 local myconf
133 addpredict /var/cache/fontconfig
127 # wxwindows needs python (see bug #237495) 134 # wxwindows needs python (see bug #237495)
128 use wxwindows && distutils_python_version 135 use wxwindows && distutils_python_version
129 136
130 myconf="--prefix=/usr --with-cxx --enable-shared \ 137 myconf="--prefix=/usr --with-cxx --enable-shared \
131 --with-gdal=$(type -P gdal-config) --with-curses --with-proj \ 138 --with-gdal=$(type -P gdal-config) --with-curses --with-proj \
282 [Desktop Entry] 289 [Desktop Entry]
283 Encoding=UTF-8 290 Encoding=UTF-8
284 Version=1.0 291 Version=1.0
285 Name=Grass ${PV} 292 Name=Grass ${PV}
286 Type=Application 293 Type=Application
287 Comment=GRASS Open Source GIS, derived from the original US Army Corps of Engineers project. 294 Comment=GRASS (Geographic Resources Analysis Support System), the original GIS.
288 Exec=${TERM} -T Grass -e /usr/bin/${MY_PM} ${GUI} 295 Exec=${TERM} -T Grass -e /usr/bin/${MY_PM} ${GUI}
289 Path= 296 Path=
290 Icon=grass_icon.png 297 Icon=grass_icon.png
291 Categories=Science;Education; 298 Categories=Science;Education;
292 Terminal=true 299 Terminal=false
293 EOF 300 EOF
294} 301}

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.9

  ViewVC Help
Powered by ViewVC 1.1.20