/[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.1 Revision 1.2
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.1 2008/06/24 07:45:51 nerdboy Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/Attic/grass-6.3.0.ebuild,v 1.2 2008/06/25 04:28:50 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})
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, since the legacy GUI seems a little wonky"
81 elog "in this version; just enable the wxwindows USE flag and build." 81 elog "in this version; just enable the wxwindows USE flag and rebuild"
82 elog "grass to use it."
82 elog "" 83 elog ""
83 if use gmath; then 84 if use gmath; then
84 for d in $(eselect lapack show); do myblas=${d}; done 85 for d in $(eselect lapack show); do myblas=${d}; done
85 if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then 86 if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then
86 ewarn "You need to set lapack to atlas or reference. Do:" 87 ewarn "You need to set lapack to atlas or reference. Do:"
150 myconf="${myconf} --with-tcltk --with-x \ 151 myconf="${myconf} --with-tcltk --with-x \
151 --with-tcltk-includes=/usr/include \ 152 --with-tcltk-includes=/usr/include \
152 --with-tcltk-libs=${TCL_LIBDIR}" 153 --with-tcltk-libs=${TCL_LIBDIR}"
153 if use wxwindows; then 154 if use wxwindows; then
154 WX_GTK_VER=2.8 155 WX_GTK_VER=2.8
155 need-wxwidgets gtk2 156 need-wxwidgets unicode
157 # 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 # query for the location...
156 LIBGDI="/usr/$(get_libdir)/python${PYVER}/site-packages/wx-2.8-gtk2-unicode/wx/_gdi_.so" 160 LIBGDI="/usr/$(get_libdir)/python${PYVER}/site-packages/wx-${WX_GTK_VER}-gtk2-unicode/wx/_gdi_.so"
157 myconf="${myconf} --with-python --with-wxwidgets=${WX_CONFIG}" 161 myconf="${myconf} --with-python --with-wxwidgets=${WX_CONFIG}"
158 fi 162 fi
159 else 163 else
160 myconf="${myconf} --without-tcltk --without-x" 164 myconf="${myconf} --without-tcltk --without-x"
161 fi 165 fi
220 $(use_with readline) \ 224 $(use_with readline) \
221 $(use_with tiff) || die "configure failed!" 225 $(use_with tiff) || die "configure failed!"
222 226
223 if use wxwindows; then 227 if use wxwindows; then
224 emake -j1 228 emake -j1
225 ln -sf "${LIBGDI}" dist.x86_64-pc-linux-gnu/lib/libgdi.so \ 229 ln -sf "${LIBGDI}" dist.${CHOST}/lib/libgdi.so \
226 || die "making libgdi link failed" 230 || die "making libgdi link failed"
227 cd gui/wxpython/vdigit 231 cd gui/wxpython/vdigit
228 make default -j1 || die "make vdigit failed!" 232 make default -j1 || die "make vdigit failed!"
229 else 233 else
230 emake -j1 || die "make failed!" 234 emake -j1 || die "make failed!"

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

  ViewVC Help
Powered by ViewVC 1.1.20