Gentoo Archives: gentoo-commits

From: Ian Delaney <idella4@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/grass/
Date: Tue, 01 Dec 2015 08:38:59
Message-Id: 1448959086.7b7292c071b7e6f0c8be5952cf2a05691d072222.idella4@gentoo
1 commit: 7b7292c071b7e6f0c8be5952cf2a05691d072222
2 Author: Ian Delaney <idella4 <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 1 08:38:06 2015 +0000
4 Commit: Ian Delaney <idella4 <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 1 08:38:06 2015 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b7292c0
7
8 sci-geosciences/grass: remove pmasked and broken vn. 6.4.2
9
10 Package-Manager: portage-2.2.24
11
12 sci-geosciences/grass/Manifest | 1 -
13 sci-geosciences/grass/grass-6.4.2.ebuild | 327 -------------------------------
14 2 files changed, 328 deletions(-)
15
16 diff --git a/sci-geosciences/grass/Manifest b/sci-geosciences/grass/Manifest
17 index f520f8f..4fc483a 100644
18 --- a/sci-geosciences/grass/Manifest
19 +++ b/sci-geosciences/grass/Manifest
20 @@ -1,2 +1 @@
21 -DIST grass-6.4.2.tar.gz 24097202 SHA256 670bb74d3000ea0932b7e988d3080d0c629f9eb22a8479bb2987ded473f7b4ca SHA512 537905942965ca949ce241c9e147bb340837f1815d36a1d0170cf18482f66936cb24bda540345d8287a98e4a9275fc129bbc4decf7c3053d123e0f90819b2e5b WHIRLPOOL 65e71c9846f59226bf2ccb3cf224628ac4065dfb2385454083e1db21361e1872192e05763c8a28154f1b536d9b276084efdeb58d730a40f99402ff3e5bf13eb4
22 DIST grass-7.0.1.tar.gz 33733368 SHA256 0987dd1618fde24b05785a502c7db8c09401a522a7a3ee50543068fab4eb405f SHA512 cb1c356eb19f793530e4e313cc5e81b3be27817eea8961c6e5673b955726e7ae26c38942d6a620dc89c60b8051cdb0ed549c70fdfab8c65f5d17c901521ffaff WHIRLPOOL ed97e45873ea39df32e4ad9ed663087e0077d4bfbbbc9f1fc89729c1d411d550e3354fbc937741c465d94929b6da30311e44926db53fe0f1edb3ce7b850b2266
23
24 diff --git a/sci-geosciences/grass/grass-6.4.2.ebuild b/sci-geosciences/grass/grass-6.4.2.ebuild
25 deleted file mode 100644
26 index d76e8bf..0000000
27 --- a/sci-geosciences/grass/grass-6.4.2.ebuild
28 +++ /dev/null
29 @@ -1,327 +0,0 @@
30 -# Copyright 1999-2015 Gentoo Foundation
31 -# Distributed under the terms of the GNU General Public License v2
32 -# $Id$
33 -
34 -EAPI=4
35 -
36 -PYTHON_DEPEND="python? 2"
37 -WANT_AUTOCONF="2.1"
38 -
39 -inherit eutils gnome2 multilib python versionator wxwidgets autotools
40 -
41 -MY_PM=${PN}$(get_version_component_range 1-2 ${PV})
42 -MY_PM=${MY_PM/.}
43 -MY_P=${P/_rc/RC}
44 -
45 -DESCRIPTION="A free GIS with raster and vector functionality, as well as 3D vizualization"
46 -HOMEPAGE="http://grass.osgeo.org/"
47 -SRC_URI="http://grass.osgeo.org/${MY_PM}/source/${MY_P}.tar.gz"
48 -
49 -LICENSE="GPL-2"
50 -SLOT="6"
51 -KEYWORDS="amd64 ppc ~ppc64 x86"
52 -IUSE="X cairo cxx ffmpeg fftw gmath jpeg motif mysql nls odbc opengl png postgres python readline sqlite tiff truetype wxwidgets"
53 -
54 -TCL_DEPS="
55 - >=dev-lang/tcl-8.5:0
56 - >=dev-lang/tk-8.5:0
57 - "
58 -
59 -RDEPEND="
60 - >=app-admin/eselect-1.2
61 - sci-libs/gdal
62 - sci-libs/proj
63 - sys-libs/gdbm
64 - sys-libs/ncurses
65 - sys-libs/zlib
66 - cairo? ( x11-libs/cairo[X?,opengl?] )
67 - ffmpeg? ( >=virtual/ffmpeg-0.10 )
68 - fftw? ( sci-libs/fftw:3.0 )
69 - gmath? (
70 - virtual/blas
71 - virtual/lapack
72 - )
73 - jpeg? ( virtual/jpeg:0 )
74 - mysql? ( virtual/mysql )
75 - odbc? ( dev-db/unixODBC )
76 - opengl? (
77 - virtual/opengl
78 - ${TCL_DEPS}
79 - )
80 - png? ( media-libs/libpng:0 )
81 - postgres? ( >=dev-db/postgresql-8.4 )
82 - readline? ( sys-libs/readline:0 )
83 - sqlite? ( dev-db/sqlite:3 )
84 - tiff? ( media-libs/tiff:0 )
85 - truetype? ( media-libs/freetype:2 )
86 - wxwidgets? ( >=dev-python/wxpython-2.8.10.1[cairo,opengl?] )
87 - X? (
88 - x11-libs/libICE
89 - x11-libs/libSM
90 - x11-libs/libX11
91 - x11-libs/libXaw
92 - x11-libs/libXext
93 - x11-libs/libXmu
94 - x11-libs/libXp
95 - x11-libs/libXpm
96 - x11-libs/libXt
97 - motif? (
98 - >=x11-libs/motif-2.3:0
99 - opengl? (
100 - || (
101 - media-libs/mesa[motif]
102 - ( media-libs/mesa x11-libs/libGLw )
103 - )
104 - )
105 - )
106 - !python? ( ${TCL_DEPS} )
107 - !wxwidgets? ( ${TCL_DEPS} )
108 - )"
109 -
110 -DEPEND="${RDEPEND}
111 - virtual/pkgconfig
112 - sys-devel/flex
113 - sys-devel/gettext
114 - sys-devel/bison
115 - wxwidgets? ( dev-lang/swig )
116 - X? (
117 - x11-proto/xextproto
118 - x11-proto/xproto
119 - )"
120 -
121 -S="${WORKDIR}/${MY_P}"
122 -
123 -PATCHES=(
124 - "${FILESDIR}"/${PN}-pkgconf.patch
125 - "${FILESDIR}"/${PN}-6.4.1-libav-0.8.patch
126 - "${FILESDIR}"/${PN}-6.4.2-ffmpeg-1.patch
127 - "${FILESDIR}"/${PN}-6.4.2-configure.patch
128 - "${FILESDIR}"/${PN}-6.4.2-libav-9.patch
129 -)
130 -
131 -REQUIRED_USE="
132 - motif? ( X )
133 - opengl? ( X )
134 - wxwidgets? ( X python )
135 -"
136 -
137 -pkg_setup() {
138 - local myblas
139 -
140 - # check correct gmath profiles (this must sadly die)
141 - if use gmath; then
142 - for d in $(eselect lapack show); do myblas=${d}; done
143 - if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then
144 - ewarn "You need to set lapack to atlas or reference. Do:"
145 - ewarn " eselect lapack set <impl>"
146 - ewarn "where <impl> is atlas, threaded-atlas or reference"
147 - die "setup failed"
148 - fi
149 - for d in $(eselect blas show); do myblas=${d}; done
150 - if [[ -z "${myblas/reference/}" ]] && [[ -z "${myblas/atlas/}" ]]; then
151 - ewarn "You need to set blas to atlas or reference. Do:"
152 - ewarn " eselect blas set <impl>"
153 - ewarn "where <impl> is atlas, threaded-atlas or reference"
154 - die "setup failed"
155 - fi
156 - fi
157 -
158 - if use python; then
159 - # only py2 is supported
160 - python_set_active_version 2
161 - fi
162 -}
163 -
164 -src_prepare() {
165 - use opengl || epatch "${FILESDIR}"/${PN}-6.4.0-html-nonviz.patch
166 - epatch ${PATCHES[@]}
167 - epatch_user
168 - eautoconf
169 -}
170 -
171 -src_configure() {
172 - local myconf TCL_LIBDIR
173 -
174 - if use X; then
175 - TCL_LIBDIR="/usr/$(get_libdir)/tcl8.5"
176 - myconf+="
177 - --with-tcltk-libs=${TCL_LIBDIR}
178 - $(use_with motif)
179 - $(use_with opengl)
180 - --with-x
181 - "
182 -
183 - use opengl && myconf+=" --with-tcltk"
184 - use motif && use opengl && myconf+=" --with-glw"
185 - use motif || myconf+=" --without-glw"
186 -
187 - if use wxwidgets; then
188 - WX_BUILD=yes
189 - WX_GTK_VER=2.8
190 - need-wxwidgets unicode
191 - myconf+="
192 - --without-tcltk
193 - --with-wxwidgets=${WX_CONFIG}
194 - "
195 - else
196 - WX_BUILD=no
197 - # use tcl gui if wxwidgets are disabled
198 - myconf+="
199 - --with-tcltk
200 - --without-wxwidgets
201 - "
202 - fi
203 - else
204 - myconf+="
205 - --without-glw
206 - --without-opengl
207 - --without-tcltk
208 - --without-wxwidgets
209 - --without-x
210 - "
211 - fi
212 -
213 - econf \
214 - --with-gdal=$(type -P gdal-config) \
215 - --with-curses \
216 - --with-proj \
217 - --with-proj-share="/usr/share/proj/" \
218 - --without-glw \
219 - --enable-shared \
220 - $(use_enable amd64 64bit) \
221 - $(use_enable ppc64 64bit) \
222 - $(use_with cairo) \
223 - $(use_with cxx) \
224 - $(use_with fftw) \
225 - $(use_with ffmpeg) \
226 - $(use_with gmath blas) \
227 - $(use_with gmath lapack) \
228 - $(use_with jpeg) \
229 - $(use_with mysql) \
230 - --with-mysql-includes=/usr/include/mysql \
231 - --with-mysql-libs=/usr/$(get_libdir)/mysql \
232 - $(use_with nls) \
233 - $(use_with odbc) \
234 - $(use_with png) \
235 - $(use_with postgres) \
236 - $(use_with python) \
237 - $(use_with readline) \
238 - $(use_with sqlite) \
239 - $(use_with tiff) \
240 - $(use_with truetype freetype) \
241 - --with-freetype-includes="/usr/include/freetype2/" \
242 - --enable-largefile \
243 - ${myconf}
244 -}
245 -
246 -src_compile() {
247 - # we don't want to link against embeded mysql lib
248 - emake MYSQLDLIB=""
249 -}
250 -
251 -src_install() {
252 - emake DESTDIR="${D}" \
253 - INST_DIR="${D}"/usr/${MY_PM} \
254 - prefix="${D}"/usr BINDIR="${D}"/usr/bin \
255 - PREFIX="${D}"/usr/ \
256 - install
257 -
258 - pushd "${ED}"/usr/${MY_PM} &> /dev/null
259 -
260 - # fix docs
261 - dodoc AUTHORS CHANGES
262 - dohtml -r docs/html/*
263 - rm -rf docs/ || die
264 - rm -rf {AUTHORS,CHANGES,COPYING,GPL.TXT,REQUIREMENTS.html} || die
265 -
266 - # manuals
267 - dodir /usr/share/man/man1
268 - mv man/man1/* "${ED}"/usr/share/man/man1/ || die
269 - rm -rf man/ || die
270 - mv -vf "${ED}"/usr/share/man/man1/sql.1{,grass} || die #381599
271 -
272 - # translations
273 - if use nls; then
274 - dodir /usr/share/locale/
275 - mv locale/* "${ED}"/usr/share/locale/ || die
276 - rm -rf locale/ || die
277 - # pt_BR is broken
278 - mv "${ED}"/usr/share/locale/pt_br "${ED}"/usr/share/locale/pt_BR || die
279 - fi
280 -
281 - popd &> /dev/null
282 -
283 - # place libraries where they belong
284 - mv "${ED}"/usr/${MY_PM}/lib/ "${ED}"/usr/$(get_libdir)/ || die
285 -
286 - # place header files where they belong
287 - mv "${ED}"/usr/${MY_PM}/include/ "${ED}"/usr/include/ || die
288 - # make rules are not required on installed system
289 - rm -rf "${ED}"/usr/include/Make || die
290 -
291 - # mv remaining gisbase stuff to libdir
292 - mv "${ED}"/usr/${MY_PM} "${ED}"/usr/$(get_libdir) || die
293 -
294 - # set proper default window renderer
295 - if [[ ${WX_BUILD} == yes ]]; then
296 - sed -i \
297 - -e "1,\$s:^DEFAULT_GUI.*:DEFAULT_GUI=\"wxpython\":" \
298 - "${ED}"/usr/$(get_libdir)/${MY_PM}/etc/Init.sh || die
299 - fi
300 -
301 - # get proper folder for grass path in script
302 - sed -i \
303 - -e "1,\$s:^GISBASE.*:GISBASE=/usr/$(get_libdir)/${MY_PM}:" \
304 - "${ED}"usr/bin/${MY_PM} || die
305 -
306 - # get proper fonts path for fontcap
307 - sed -i \
308 - -e "s|${ED}/usr/${MY_PM}|${EPREFIX}usr/$(get_libdir)/${MY_PM}|" \
309 - "${ED}"/usr/$(get_libdir)/${MY_PM}/etc/fontcap || die
310 -
311 - if use X; then
312 - generate_files
313 - doicon gui/icons/${PN}-48x48.png
314 - domenu ${MY_PM}-grass.desktop
315 - fi
316 -
317 - # install .pc file so other apps know where to look for grass
318 - insinto /usr/$(get_libdir)/pkgconfig/
319 - doins grass.pc
320 -
321 - # fix weird +x on tcl scripts
322 - find "${D}" -name "*.tcl" -exec chmod +r-x '{}' \;
323 -}
324 -
325 -pkg_postinst() {
326 - if use X; then
327 - fdo-mime_desktop_database_update
328 - gnome2_icon_cache_update
329 - fi
330 -}
331 -
332 -pkg_postrm() {
333 - if use X; then
334 - fdo-mime_desktop_database_update
335 - gnome2_icon_cache_update
336 - fi
337 -}
338 -
339 -generate_files() {
340 - local GUI="-gui"
341 - [[ ${WX_BUILD} == yes ]] && GUI="-wxpython"
342 -
343 - cat <<-EOF > ${MY_PM}-grass.desktop
344 - [Desktop Entry]
345 - Encoding=UTF-8
346 - Version=1.0
347 - Name=Grass ${PV}
348 - Type=Application
349 - Comment=GRASS (Geographic Resources Analysis Support System), the original GIS.
350 - Exec=${TERM} -T Grass -e /usr/bin/${MY_PM} ${GUI}
351 - Path=
352 - Icon=${PN}-48x48.png
353 - Categories=Science;Education;
354 - Terminal=false
355 -EOF
356 -}