/[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.22 Revision 1.23
1# Copyright 1999-2011 Gentoo Foundation 1# Copyright 1999-2011 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.22 2011/03/26 15:27:44 scarabeus Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/Attic/grass-6.3.0.ebuild,v 1.23 2011/04/10 22:10:42 arfrever Exp $
4 4
5EAPI=1 5EAPI=3
6 6
7inherit eutils distutils fdo-mime versionator wxwidgets 7inherit eutils distutils fdo-mime versionator wxwidgets
8 8
9MY_PV=$(get_version_component_range 1-2 ${PV}) 9MY_PV=$(get_version_component_range 1-2 ${PV})
10MY_PVM=$(delete_all_version_separators ${MY_PV}) 10MY_PVM=$(delete_all_version_separators ${MY_PV})
106 ewarn "GRASS OpenGL support needs X (will also pull in Tcl/Tk)." 106 ewarn "GRASS OpenGL support needs X (will also pull in Tcl/Tk)."
107 die "Please set the X useflag." 107 die "Please set the X useflag."
108 fi 108 fi
109} 109}
110 110
111src_unpack() { 111src_prepare() {
112 unpack ${A}
113 cd "${S}"
114
115 epatch rpm/fedora/grass-readline.patch 112 epatch rpm/fedora/grass-readline.patch
116 # fix the fortify_source and buffer issues (see bug #261283) 113 # fix the fortify_source and buffer issues (see bug #261283)
117 epatch "${FILESDIR}"/${P}-o_creat.patch 114 epatch "${FILESDIR}"/${P}-o_creat.patch
118 # and update for gcc 4.4 C++ changes (see bug #270916) 115 # and update for gcc 4.4 C++ changes (see bug #270916)
119 epatch "${FILESDIR}"/${P}-gcc44.patch 116 epatch "${FILESDIR}"/${P}-gcc44.patch
128 # patch missing math functions (yes, this is still needed) 125 # patch missing math functions (yes, this is still needed)
129 sed -i -e "s:\$(EXTRA_LIBS):\$(EXTRA_LIBS) \$(MATHLIB):g" include/Make/Shlib.make 126 sed -i -e "s:\$(EXTRA_LIBS):\$(EXTRA_LIBS) \$(MATHLIB):g" include/Make/Shlib.make
130 echo "MATHLIB=-lm" >> include/Make/Rules.make 127 echo "MATHLIB=-lm" >> include/Make/Rules.make
131} 128}
132 129
133src_compile() { 130src_configure() {
134 local myconf 131 local myconf
135 addpredict /var/cache/fontconfig 132 addpredict /var/cache/fontconfig
136 133
137 myconf="--prefix=/usr --with-cxx --enable-shared \ 134 myconf="--prefix=/usr --with-cxx --enable-shared \
138 --with-gdal=$(type -P gdal-config) --with-curses --with-proj \ 135 --with-gdal=$(type -P gdal-config) --with-curses --with-proj \
213 $(use_with odbc) \ 210 $(use_with odbc) \
214 $(use_with png) \ 211 $(use_with png) \
215 $(use_with postgres) \ 212 $(use_with postgres) \
216 $(use_with readline) \ 213 $(use_with readline) \
217 $(use_with tiff) \ 214 $(use_with tiff) \
218 --enable-largefile \ 215 --enable-largefile
216}
219 217
218src_compile() {
220 if use wxwidgets; then 219 if use wxwidgets; then
221 # can't use die here since we need to hack the vdigit build 220 # can't use die here since we need to hack the vdigit build
222 emake -j1 221 emake -j1
223 ln -sf "${LIBGDI}" dist.${CHOST}/lib/libgdi.so \ 222 ln -sf "${LIBGDI}" dist.${CHOST}/lib/libgdi.so \
224 || die "making libgdi link failed" 223 || die "making libgdi link failed"

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.20