1 |
scarabeus 10/04/30 08:48:39 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: grass-6.4.0_rc6.ebuild |
5 |
Log: |
6 |
Add new rc version (in-progress) |
7 |
(Portage version: 2.2_rc67/cvs/Linux x86_64) |
8 |
|
9 |
Revision Changes Path |
10 |
1.77 sci-geosciences/grass/ChangeLog |
11 |
|
12 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/ChangeLog?rev=1.77&view=markup |
13 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/ChangeLog?rev=1.77&content-type=text/plain |
14 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/ChangeLog?r1=1.76&r2=1.77 |
15 |
|
16 |
Index: ChangeLog |
17 |
=================================================================== |
18 |
RCS file: /var/cvsroot/gentoo-x86/sci-geosciences/grass/ChangeLog,v |
19 |
retrieving revision 1.76 |
20 |
retrieving revision 1.77 |
21 |
diff -u -r1.76 -r1.77 |
22 |
--- ChangeLog 17 Feb 2010 16:48:21 -0000 1.76 |
23 |
+++ ChangeLog 30 Apr 2010 08:48:39 -0000 1.77 |
24 |
@@ -1,6 +1,12 @@ |
25 |
# ChangeLog for sci-geosciences/grass |
26 |
# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2 |
27 |
-# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/ChangeLog,v 1.76 2010/02/17 16:48:21 scarabeus Exp $ |
28 |
+# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/ChangeLog,v 1.77 2010/04/30 08:48:39 scarabeus Exp $ |
29 |
+ |
30 |
+*grass-6.4.0_rc6 (30 Apr 2010) |
31 |
+ |
32 |
+ 30 Apr 2010; Tomáš Chvátal <scarabeus@g.o> |
33 |
+ +grass-6.4.0_rc6.ebuild: |
34 |
+ Add new rc version (in-progress) |
35 |
|
36 |
17 Feb 2010; Tomáš Chvátal <scarabeus@g.o> |
37 |
grass-6.4.0_rc5.ebuild, +files/grass-6.4.0-html-nonviz.patch: |
38 |
|
39 |
|
40 |
|
41 |
1.1 sci-geosciences/grass/grass-6.4.0_rc6.ebuild |
42 |
|
43 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.4.0_rc6.ebuild?rev=1.1&view=markup |
44 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/sci-geosciences/grass/grass-6.4.0_rc6.ebuild?rev=1.1&content-type=text/plain |
45 |
|
46 |
Index: grass-6.4.0_rc6.ebuild |
47 |
=================================================================== |
48 |
# Copyright 1999-2010 Gentoo Foundation |
49 |
# Distributed under the terms of the GNU General Public License v2 |
50 |
# $Header: /var/cvsroot/gentoo-x86/sci-geosciences/grass/grass-6.4.0_rc6.ebuild,v 1.1 2010/04/30 08:48:39 scarabeus Exp $ |
51 |
|
52 |
EAPI="3" |
53 |
|
54 |
PYTHON_DEPEND="python? 2" |
55 |
inherit eutils python gnome2 versionator wxwidgets base |
56 |
|
57 |
MY_PM=${PN}$(get_version_component_range 1-2 ${PV}) |
58 |
MY_P=${P/_rc/RC} |
59 |
|
60 |
DESCRIPTION="A free GIS with raster and vector functionality, as well as 3D vizualization." |
61 |
HOMEPAGE="http://grass.osgeo.org//" |
62 |
SRC_URI="http://grass.osgeo.org/${MY_PM/.}/source/${MY_P}.tar.gz" |
63 |
|
64 |
LICENSE="GPL-2" |
65 |
SLOT="6" |
66 |
KEYWORDS="~amd64 ~ppc ~ppc64 ~sparc ~x86" |
67 |
|
68 |
IUSE="X cairo cxx ffmpeg fftw gmath jpeg largefile motif mysql nls odbc opengl png postgres python readline sqlite tiff truetype wxwidgets" |
69 |
|
70 |
TCL_DEPS=" |
71 |
>=dev-lang/tcl-8.5 |
72 |
>=dev-lang/tk-8.5 |
73 |
" |
74 |
|
75 |
RDEPEND=" |
76 |
sci-libs/gdal |
77 |
sci-libs/proj |
78 |
sys-libs/gdbm |
79 |
sys-libs/ncurses |
80 |
sys-libs/zlib |
81 |
cairo? ( x11-libs/cairo[X?,opengl?] ) |
82 |
ffmpeg? ( media-video/ffmpeg ) |
83 |
fftw? ( sci-libs/fftw:3.0 ) |
84 |
gmath? ( |
85 |
virtual/blas |
86 |
virtual/lapack |
87 |
) |
88 |
jpeg? ( media-libs/jpeg ) |
89 |
motif? ( x11-libs/openmotif ) |
90 |
mysql? ( dev-db/mysql ) |
91 |
odbc? ( dev-db/unixODBC ) |
92 |
png? ( media-libs/libpng ) |
93 |
postgres? ( |
94 |
|| ( |
95 |
>=virtual/postgresql-base-8.4 |
96 |
>=virtual/postgresql-server-8.4 |
97 |
) |
98 |
) |
99 |
readline? ( sys-libs/readline ) |
100 |
sqlite? ( dev-db/sqlite:3 ) |
101 |
tiff? ( media-libs/tiff ) |
102 |
truetype? ( media-libs/freetype:2 ) |
103 |
X? ( |
104 |
x11-libs/libICE |
105 |
x11-libs/libSM |
106 |
x11-libs/libX11 |
107 |
x11-libs/libXaw |
108 |
x11-libs/libXext |
109 |
x11-libs/libXmu |
110 |
x11-libs/libXp |
111 |
x11-libs/libXpm |
112 |
x11-libs/libXt |
113 |
opengl? ( virtual/opengl ) |
114 |
python? ( wxwidgets? ( >=dev-python/wxpython-2.8.10.1 ) ) |
115 |
!python? ( ${TCL_DEPS} ) |
116 |
!wxwidgets? ( ${TCL_DEPS} ) |
117 |
) |
118 |
" |
119 |
|
120 |
DEPEND="${RDEPEND} |
121 |
sys-devel/flex |
122 |
sys-devel/bison |
123 |
X? ( |
124 |
x11-proto/xextproto |
125 |
x11-proto/xproto |
126 |
python? ( wxwidgets? ( dev-lang/swig ) ) |
127 |
)" |
128 |
|
129 |
S=${WORKDIR}/${MY_P} |
130 |
|
131 |
pkg_setup() { |
132 |
local myblas |
133 |
|
134 |
# check correct gmath profiles (this must sadly die) |
135 |
if use gmath; then |
136 |
for d in $(eselect lapack show); do myblas=${d}; done |
137 |
if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then |
138 |
ewarn "You need to set lapack to atlas or reference. Do:" |
139 |
ewarn " eselect lapack set <impl>" |
140 |
ewarn "where <impl> is atlas, threaded-atlas or reference" |
141 |
die "setup failed" |
142 |
fi |
143 |
for d in $(eselect blas show); do myblas=${d}; done |
144 |
if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then |
145 |
ewarn "You need to set blas to atlas or reference. Do:" |
146 |
ewarn " eselect blas set <impl>" |
147 |
ewarn "where <impl> is atlas, threaded-atlas or reference" |
148 |
die "setup failed" |
149 |
fi |
150 |
fi |
151 |
|
152 |
# check useflag nesting. |
153 |
use opengl && ! use X && ewarn "For opengl support X useflag must be enabled" |
154 |
use wxwidgets && ! use X && ewarn "For wxwidgets support X useflag must be enabled" |
155 |
use wxwidgets && ! use python && ewarn "For wxwidgets support python useflag must be enabled" |
156 |
|
157 |
# only py2 is supported |
158 |
python_set_active_version 2 |
159 |
} |
160 |
|
161 |
src_prepare() { |
162 |
if ! use opengl; then |
163 |
epatch "${FILESDIR}"/${PN}-6.4.0-html-nonviz.patch |
164 |
fi |
165 |
|
166 |
base_src_prepare |
167 |
} |
168 |
|
169 |
src_configure() { |
170 |
local myconf TCL_LIBDIR |
171 |
|
172 |
if use X; then |
173 |
myconf+=" |
174 |
$(use_with opengl) |
175 |
--with-x |
176 |
" |
177 |
if use python && use wxwidgets; then |
178 |
WX_BUILD=yes |
179 |
WX_GTK_VER=2.8 |
180 |
need-wxwidgets base |
181 |
myconf+=" |
182 |
--without-tcltk |
183 |
--with-wxwidgets=${WX_CONFIG} |
184 |
" |
185 |
else |
186 |
WX_BUILD=no |
187 |
# use tcl gui if wxwidgets are disabled |
188 |
TCL_LIBDIR="/usr/$(get_libdir)/tcl8.5" |
189 |
myconf+=" |
190 |
--with-tcltk |
191 |
--with-tcltk-libs=${TCL_LIBDIR} |
192 |
--without-wxwidgets |
193 |
" |
194 |
fi |
195 |
else |
196 |
myconf+=" |
197 |
--without-opengl |
198 |
--without-tcltk |
199 |
--without-wxwidgets |
200 |
--without-x |
201 |
" |
202 |
fi |
203 |
|
204 |
econf \ |
205 |
--with-gdal=$(type -P gdal-config) \ |
206 |
--with-curses \ |
207 |
--with-proj \ |
208 |
--with-proj-share="/usr/share/proj/" \ |
209 |
--without-glw \ |
210 |
--enable-shared \ |
211 |
$(use_enable amd64 64bit) \ |
212 |
$(use_with cairo) \ |
213 |
$(use_with cxx) \ |
214 |
$(use_with fftw) \ |
215 |
$(use_with ffmpeg) \ |
216 |
--with-ffmpeg-includes="/usr/include/libavcodec \ |
217 |
/usr/include/libavdevice /usr/include/libavfilter \ |
218 |
/usr/include/libavformat /usr/include/libavutil \ |
219 |
/usr/include/libpostproc /usr/include/libswscale" \ |
220 |
$(use_with gmath blas) \ |
221 |
$(use_with gmath lapack) \ |
222 |
$(use_with jpeg) \ |
223 |
$(use_enable largefile) \ |
224 |
$(use_with motif) \ |
225 |
$(use_with mysql) \ |
226 |
$(use_with nls) \ |
227 |
$(use_with odbc) \ |
228 |
$(use_with png) \ |
229 |
$(use_with postgres) \ |
230 |
$(use_with python) \ |
231 |
$(use_with readline) \ |
232 |
$(use_with sqlite) \ |
233 |
$(use_with tiff) \ |
234 |
$(use_with truetype freetype) \ |
235 |
--with-freetype-includes="/usr/include/freetype2/" \ |
236 |
${myconf} |
237 |
} |
238 |
|
239 |
src_compile() { |
240 |
# we don't want to link against embeded mysql lib |
241 |
base_src_compile MYSQLDLIB="" |
242 |
} |
243 |
|
244 |
src_install() { |
245 |
emake DESTDIR="${D}" \ |
246 |
INST_DIR="${D}"/usr/share/${PN}/$(get_version_component_range 1-2 ${PV})/ \ |
247 |
PREFIX="${D}"/usr/share/${PN}/$(get_version_component_range 1-2 ${PV})/ \ |
248 |
BINDIR="${D}"/usr/bin \ |
249 |
install || die |
250 |
|
251 |
cd "${D}"/usr/share/${PN}/$(get_version_component_range 1-2 ${PV})/ |
252 |
# fix docs |
253 |
dodoc AUTHORS CHANGES || die |
254 |
dohtml -r docs/html/* || die |
255 |
rm -rf docs/ || die |
256 |
rm -rf {AUTHORS,CHANGES,COPYING,GPL.TXT,REQUIREMENTS.html} || die |
257 |
|
258 |
# manuals |
259 |
dodir /usr/share/man/man1 || die |
260 |
mv man/man1/* "${D}"/usr/share/man/man1/ || die |
261 |
rm -rf man/ || die |
262 |
|
263 |
# translations |
264 |
dodir /usr/share/locale/ || die |
265 |
mv locale/* "${D}"/usr/share/locale/ || die |
266 |
rm -rf locale/ || die |
267 |
|
268 |
# get rid of DESTDIR in script path |
269 |
sed -i -e "s:${D}:/:" "${D}"usr/bin/${MY_PM/.} || die |
270 |
|
271 |
cd ${S} |
272 |
if use X; then |
273 |
generate_files |
274 |
doicon gui/icons/${PN}-48x48.png || die |
275 |
domenu ${MY_PM/.}-grass.desktop || die |
276 |
fi |
277 |
|
278 |
# FIXME: install .pc file so other apps know where to look for grass |
279 |
} |
280 |
|
281 |
pkg_postinst() { |
282 |
if use X; then |
283 |
fdo-mime_desktop_database_update |
284 |
gnome2_icon_cache_update |
285 |
fi |
286 |
} |
287 |
|
288 |
pkg_postrm() { |
289 |
if use X; then |
290 |
fdo-mime_desktop_database_update |
291 |
gnome2_icon_cache_update |
292 |
fi |
293 |
} |
294 |
|
295 |
generate_files() { |
296 |
local GUI="-gui" |
297 |
[[ ${WX_BUILD} == yes ]] && GUI="-wxpython" |
298 |
|
299 |
cat <<-EOF > ${MY_PM/.}-grass.desktop |
300 |
[Desktop Entry] |
301 |
Encoding=UTF-8 |
302 |
Version=1.0 |
303 |
Name=Grass ${PV} |
304 |
Type=Application |
305 |
Comment=GRASS (Geographic Resources Analysis Support System), the original GIS. |
306 |
Exec=${TERM} -T Grass -e /usr/bin/${MY_PM/.} ${GUI} |
307 |
Path= |
308 |
Icon=${PN}-48x48.png |
309 |
Categories=Science;Education; |
310 |
Terminal=false |
311 |
EOF |
312 |
} |