/[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.5 Revision 1.6
1# Copyright 1999-2008 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.5 2008/11/08 22:19:39 nerdboy Exp $ 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 $
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})
106src_unpack() { 106src_unpack() {
107 unpack ${A} 107 unpack ${A}
108 cd "${S}" 108 cd "${S}"
109 109
110 epatch rpm/fedora/grass-readline.patch 110 epatch rpm/fedora/grass-readline.patch
111 # fix the fortify_source and buffer issues (see bug #261283)
112 epatch "${FILESDIR}"/${P}-o_creat.patch
113 sed -i -e "s:buff\[12:buff\[16:g" general/g.parser/main.c \
114 || die "sed failed"
111 115
112 if ! use opengl; then 116 if ! use opengl; then
113 epatch "${FILESDIR}"/${P}-html-nonviz.patch 117 epatch "${FILESDIR}"/${P}-html-nonviz.patch
114 fi 118 fi
115 119
212 $(use_with readline) \ 216 $(use_with readline) \
213 $(use_with tiff) || die "configure failed!" 217 $(use_with tiff) || die "configure failed!"
214 218
215 if use wxwindows; then 219 if use wxwindows; then
216 # 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
217 emake 221 emake -j1
218 ln -sf "${LIBGDI}" dist.${CHOST}/lib/libgdi.so \ 222 ln -sf "${LIBGDI}" dist.${CHOST}/lib/libgdi.so \
219 || die "making libgdi link failed" 223 || die "making libgdi link failed"
220 cd gui/wxpython/vdigit 224 cd gui/wxpython/vdigit
221 # now we're OK 225 # now we're OK
222 make default -j1 || die "make vdigit failed!" 226 make default -j1 || die "make vdigit failed!"
223 else 227 else
224 emake || die "make failed!" 228 emake -j1 || die "make failed!"
225 fi 229 fi
226} 230}
227 231
228src_install() { 232src_install() {
229 elog "Grass Home is ${MY_PM}" 233 elog "Grass Home is ${MY_PM}"

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

  ViewVC Help
Powered by ViewVC 1.1.20