/[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.13 Revision 1.14
1# Copyright 1999-2010 Gentoo Foundation 1# Copyright 1999-2010 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.13 2010/02/03 20:56:55 hwoarang Exp $ 3# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/Attic/grass-6.3.0.ebuild,v 1.14 2010/05/30 20:45:30 arfrever 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})
129} 129}
130 130
131src_compile() { 131src_compile() {
132 local myconf 132 local myconf
133 addpredict /var/cache/fontconfig 133 addpredict /var/cache/fontconfig
134 # wxwindows needs python (see bug #237495)
135 use wxwindows && distutils_python_version
136 134
137 myconf="--prefix=/usr --with-cxx --enable-shared \ 135 myconf="--prefix=/usr --with-cxx --enable-shared \
138 --with-gdal=$(type -P gdal-config) --with-curses --with-proj \ 136 --with-gdal=$(type -P gdal-config) --with-curses --with-proj \
139 --with-includes=/usr/include --with-libs=/usr/$(get_libdir) \ 137 --with-includes=/usr/include --with-libs=/usr/$(get_libdir) \
140 --with-proj-includes=/usr/include \ 138 --with-proj-includes=/usr/include \
155 WX_GTK_VER=2.8 153 WX_GTK_VER=2.8
156 need-wxwidgets unicode 154 need-wxwidgets unicode
157 # The following lib should be there, based on the above and the 155 # The following lib should be there, based on the above and the
158 # wxpython dependency (in theory). I still need a good way to 156 # wxpython dependency (in theory). I still need a good way to
159 # query for the location... 157 # query for the location...
160 LIBGDI="/usr/$(get_libdir)/python${PYVER}/site-packages/wx-${WX_GTK_VER}-gtk2-unicode/wx/_gdi_.so" 158 LIBGDI="$(python_get_sitedir)/wx-${WX_GTK_VER}-gtk2-unicode/wx/_gdi_.so"
161 myconf="${myconf} --with-python --with-wxwidgets=${WX_CONFIG}" 159 myconf="${myconf} --with-python --with-wxwidgets=${WX_CONFIG}"
162 else 160 else
163 # USE=python must be enabled above if wxwindows is enabled 161 # USE=python must be enabled above if wxwindows is enabled
164 myconf="${myconf} $(use_with python) --without-wxwidgets" 162 myconf="${myconf} $(use_with python) --without-wxwidgets"
165 fi 163 fi

Legend:
Removed from v.1.13  
changed lines
  Added in v.1.14

  ViewVC Help
Powered by ViewVC 1.1.20