/[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.3 Revision 1.4
1# Copyright 1999-2008 Gentoo Foundation 1# Copyright 1999-2008 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.3 2008/08/14 07:07:57 nerdboy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/Attic/grass-6.3.0.ebuild,v 1.4 2008/09/21 21:23:39 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})
75 75
76pkg_setup() { 76pkg_setup() {
77 local myblas 77 local myblas
78 elog "" 78 elog ""
79 elog "This version enables the experimental wxpython interface, which" 79 elog "This version enables the experimental wxpython interface, which"
80 elog "you may want to try, since the legacy GUI seems a little wonky" 80 elog "you may want to try. If the legacy GUI seems a little wonky in"
81 elog "in this version; just enable the wxwindows USE flag and rebuild" 81 elog "this version, just enable the wxwindows USE flag and rebuild"
82 elog "grass to use it." 82 elog "grass to use it."
83 elog "" 83 elog ""
84 if use gmath; then 84 if use gmath; then
85 for d in $(eselect lapack show); do myblas=${d}; done 85 for d in $(eselect lapack show); do myblas=${d}; done
86 if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then 86 if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then
131 echo "MATHLIB=-lm" >> include/Make/Rules.make 131 echo "MATHLIB=-lm" >> include/Make/Rules.make
132} 132}
133 133
134src_compile() { 134src_compile() {
135 local myconf 135 local myconf
136 # wxwindows needs python (see bug #237495)
136 use python || use wxindows && distutils_python_version 137 use wxwindows && distutils_python_version
137 138
138 myconf="--prefix=/usr --with-cxx --enable-shared \ 139 myconf="--prefix=/usr --with-cxx --enable-shared \
139 --with-gdal=$(type -P gdal-config) --with-curses --with-proj \ 140 --with-gdal=$(type -P gdal-config) --with-curses --with-proj \
140 --with-includes=/usr/include --with-libs=/usr/$(get_libdir) \ 141 --with-includes=/usr/include --with-libs=/usr/$(get_libdir) \
141 --with-proj-includes=/usr/include \ 142 --with-proj-includes=/usr/include \
157 # The following lib should be there, based on the above and the 158 # The following lib should be there, based on the above and the
158 # wxpython dependency (in theory). I still need a good way to 159 # wxpython dependency (in theory). I still need a good way to
159 # query for the location... 160 # query for the location...
160 LIBGDI="/usr/$(get_libdir)/python${PYVER}/site-packages/wx-${WX_GTK_VER}-gtk2-unicode/wx/_gdi_.so" 161 LIBGDI="/usr/$(get_libdir)/python${PYVER}/site-packages/wx-${WX_GTK_VER}-gtk2-unicode/wx/_gdi_.so"
161 myconf="${myconf} --with-python --with-wxwidgets=${WX_CONFIG}" 162 myconf="${myconf} --with-python --with-wxwidgets=${WX_CONFIG}"
163 else
164 # USE=python must be enabled above if wxwindows is enabled
165 myconf="${myconf} $(use_with python) --without-wxwidgets"
162 fi 166 fi
163 else 167 else
164 myconf="${myconf} --without-tcltk --without-x" 168 myconf="${myconf} --without-tcltk --without-x"
165 fi 169 fi
166 170
218 $(use_with opengl motif) \ 222 $(use_with opengl motif) \
219 $(use_with nls) \ 223 $(use_with nls) \
220 $(use_with odbc) \ 224 $(use_with odbc) \
221 $(use_with png) \ 225 $(use_with png) \
222 $(use_with postgres) \ 226 $(use_with postgres) \
223 $(use_with python) \
224 $(use_with readline) \ 227 $(use_with readline) \
225 $(use_with tiff) || die "configure failed!" 228 $(use_with tiff) || die "configure failed!"
226 229
227 if use wxwindows; then 230 if use wxwindows; then
228 emake -j1 231 emake -j1

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

  ViewVC Help
Powered by ViewVC 1.1.20