Gentoo Archives: gentoo-commits

From: Andreas Sturmlechner <asturm@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: sci-geosciences/grass/files/, sci-geosciences/grass/
Date: Thu, 27 Jun 2019 17:21:27
Message-Id: 1561655883.504ecda44c5f9d0e661f6af325fe587e83ff9a22.asturm@gentoo
1 commit: 504ecda44c5f9d0e661f6af325fe587e83ff9a22
2 Author: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
3 AuthorDate: Thu Jun 27 13:59:05 2019 +0000
4 Commit: Andreas Sturmlechner <asturm <AT> gentoo <DOT> org>
5 CommitDate: Thu Jun 27 17:18:03 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=504ecda4
7
8 sci-geosciences/grass: Drop old
9
10 Package-Manager: Portage-2.3.67, Repoman-2.3.16
11 Signed-off-by: Andreas Sturmlechner <asturm <AT> gentoo.org>
12
13 sci-geosciences/grass/Manifest | 3 -
14 sci-geosciences/grass/files/grass-7.2.0-gcc7.patch | 94 -------
15 .../grass/files/grass-7.2.0-glibc-2.26-1.patch | 10 -
16 .../grass/files/grass-7.2.0-glibc-2.26-2.patch | 32 ---
17 sci-geosciences/grass/grass-7.2.0-r1.ebuild | 265 -------------------
18 sci-geosciences/grass/grass-7.4.0.ebuild | 281 --------------------
19 sci-geosciences/grass/grass-7.4.1.ebuild | 284 ---------------------
20 7 files changed, 969 deletions(-)
21
22 diff --git a/sci-geosciences/grass/Manifest b/sci-geosciences/grass/Manifest
23 index ab09e66a39f..1fcbb8c2267 100644
24 --- a/sci-geosciences/grass/Manifest
25 +++ b/sci-geosciences/grass/Manifest
26 @@ -1,4 +1 @@
27 -DIST grass-7.2.0.tar.gz 48315008 BLAKE2B 927da2119e199cee7cbf55a172141abfe9ce86499e307b355fec2cdf79ec3424acddc4410e3049e7cade5dd3da39e618af7e1003093f87de5735a981984b46c6 SHA512 b1aa17ec554c2f0473df3726993b0891df4589c60ca9362405932a4c479b5883245b0a0ba9e787ce2e9de210b6307f34883e4e63ddfbf04eb5d75e8583bc2c5b
28 -DIST grass-7.4.0.tar.gz 56329374 BLAKE2B 924ecd9ad073dd3c59542a871780397a2516e1f0d912b4644978154ea6305ccf50229655aa7f38ab20f2bf85e4a4783cd793fff5101423dd6c212108d638d1df SHA512 b0393ec5d149e2146cc1f30cdcea00e31039bf0a2541486ab0ecd5debe260d267d74e60761b45ce306ad9942264cce9134dbafbf3c75a55df1c610499877d321
29 -DIST grass-7.4.1.tar.gz 57969640 BLAKE2B 1d3d0fd20611971ec349bf0e26ef7d886b7047e1ec48f48584f8ba2e5562f352433c9869420d7e030e66fb5a9e60de20e6a78d1fd5142380fbcab51f700766d8 SHA512 66616e495aa798cd1ad7a0284a386f7e99741918596b816a712788114e7dc491be0b5f19551f102b436518a5cabcdedbc61042acf0a9b06b9d8df12b4de26c90
30 DIST grass-7.4.4.tar.gz 58454921 BLAKE2B bf8f85e4dad800a32ac0c23025b0844dde17c806aeec7d150d3263ff8fae80deab7b7052cfb664e138b2af1e5fbe3282db087d7545d42710db6d9890f0b285ee SHA512 9971bd1184c4b2eb38ecf5efafd28094c2d05d22e9ae53a8b074a15e26c029dd13c4627b442a428bca4030fd9118e49422863515cf0fc58dd46e70d2923a9f83
31
32 diff --git a/sci-geosciences/grass/files/grass-7.2.0-gcc7.patch b/sci-geosciences/grass/files/grass-7.2.0-gcc7.patch
33 deleted file mode 100644
34 index 97be4d7d860..00000000000
35 --- a/sci-geosciences/grass/files/grass-7.2.0-gcc7.patch
36 +++ /dev/null
37 @@ -1,94 +0,0 @@
38 -Index: releasebranch_7_2/lib/python/ctypes/ctypesgencore/parser/lextab.py
39 -===================================================================
40 ---- a/lib/python/ctypes/ctypesgencore/parser/lextab.py (revision 71218)
41 -+++ b/lib/python/ctypes/ctypesgencore/parser/lextab.py (revision 71219)
42 -@@ -1,59 +1,8 @@
43 - # lextab.py. This file automatically created by PLY (version 2.2). Don't edit!
44 --_lextokens = {
45 -- 'RIGHT_OP': None,
46 -- 'RIGHT_ASSIGN': None,
47 -- 'DEC_OP': None,
48 -- 'PP_MACRO_PARAM': None,
49 -- 'DIV_ASSIGN': None,
50 -- 'PP_DEFINE': None,
51 -- 'PP_END_DEFINE': None,
52 -- 'PP_DEFINE_MACRO_NAME': None,
53 -- 'HEADER_NAME': None,
54 -- 'NEWLINE': None,
55 -- 'CHARACTER_CONSTANT': None,
56 -- 'PP_STRINGIFY': None,
57 -- 'AND_ASSIGN': None,
58 -- 'PTR_OP': None,
59 -- 'ELLIPSIS': None,
60 -- 'IDENTIFIER': None,
61 -- 'ADD_ASSIGN': None,
62 -- 'PERIOD': None,
63 -- 'AND_OP': None,
64 -- 'OTHER': None,
65 -- 'LPAREN': None,
66 -- 'LEFT_OP': None,
67 -- 'LE_OP': None,
68 -- 'OR_OP': None,
69 -- 'SUB_ASSIGN': None,
70 -- 'MOD_ASSIGN': None,
71 -- 'STRING_LITERAL': None,
72 -- 'PP_IDENTIFIER_PASTE': None,
73 -- 'PP_NUMBER': None,
74 -- 'PP_DEFINE_NAME': None,
75 -- 'XOR_ASSIGN': None,
76 -- 'OR_ASSIGN': None,
77 -- 'GE_OP': None,
78 -- 'MUL_ASSIGN': None,
79 -- 'LEFT_ASSIGN': None,
80 -- 'INC_OP': None,
81 -- 'NE_OP': None,
82 -- 'EQ_OP': None}
83 --_lexreflags = 0
84 --_lexliterals = ''
85 -+_lextokens = {'RIGHT_OP': None, 'RIGHT_ASSIGN': None, 'DEC_OP': None, 'PP_MACRO_PARAM': None, 'DIV_ASSIGN': None, 'PP_DEFINE': None, 'PP_END_DEFINE': None, 'PP_DEFINE_MACRO_NAME': None, 'HEADER_NAME': None, 'NEWLINE': None, 'CHARACTER_CONSTANT': None, 'PP_STRINGIFY': None, 'AND_ASSIGN': None, 'PTR_OP': None, 'ELLIPSIS': None, 'IDENTIFIER': None, 'ADD_ASSIGN': None, 'PERIOD': None, 'AND_OP': None, 'OTHER': None, 'LPAREN': None, 'LEFT_OP': None, 'LE_OP': None, 'OR_OP': None, 'SUB_ASSIGN': None, 'MOD_ASSIGN': None, 'STRING_LITERAL': None, 'PP_IDENTIFIER_PASTE': None, 'PP_NUMBER': None, 'PP_DEFINE_NAME': None, 'XOR_ASSIGN': None, 'OR_ASSIGN': None, 'GE_OP': None, 'MUL_ASSIGN': None, 'LEFT_ASSIGN': None, 'INC_OP': None, 'NE_OP': None, 'EQ_OP': None}
86 -+_lexreflags = 0
87 -+_lexliterals = ''
88 - _lexstateinfo = {'INITIAL': 'inclusive', 'DEFINE': 'exclusive'}
89 --_lexstatere = {
90 -- 'INITIAL': [
91 -- ('(?P<t_ANY_directive>\\#\\s+(\\d+)\\s+"([^"]+)"[ \\d]*\\n)|(?P<t_ANY_punctuator>(\\.\\.\\.|\\|\\||\\+\\+|\\*=|\\^=|<<=|>>=|\\|=|\\+=|>=|>>|<<|<=|<:|%=|:>|<%|!=|\\)|\\+|\\*|\\.|\\?|==|&=|&&|\\[|\\^|--|/=|%>|-=|->|\\||!|%|&|-|,|/|;|:|=|>|]|<|{|}|~))', [
92 -- None, ('t_ANY_directive', 'ANY_directive'), None, None, ('t_ANY_punctuator', 'ANY_punctuator')]), ('(?P<t_INITIAL_identifier>[a-zA-Z_]([a-zA-Z_]|[0-9])*)', [
93 -- None, ('t_INITIAL_identifier', 'INITIAL_identifier')]), ('(?P<t_ANY_float>(?P<p1>[0-9]+)?(?P<dp>[.]?)(?P<p2>(?(p1)[0-9]*|[0-9]+))(?P<exp>(?:[Ee][+-]?[0-9]+)?)(?P<suf>[FflL]?)(?!\\w))', [
94 -- None, ('t_ANY_float', 'ANY_float'), None, None, None, None, None]), ('(?P<t_ANY_int>(?P<p1>(?:0x[a-fA-F0-9]+)|(?:[0-9]+))(?P<suf>[uUlL]*))', [
95 -- None, ('t_ANY_int', 'ANY_int'), None, None]), ('(?P<t_ANY_character_constant>L?\'(\\\\.|[^\\\\\'])+\')|(?P<t_ANY_string_literal>L?"(\\\\.|[^\\\\"])*")|(?P<t_ANY_lparen>\\()|(?P<t_INITIAL_newline>\\n)|(?P<t_INITIAL_pp_define>\\#define)', [
96 -- None, ('t_ANY_character_constant', 'ANY_character_constant'), None, ('t_ANY_string_literal', 'ANY_string_literal'), None, ('t_ANY_lparen', 'ANY_lparen'), ('t_INITIAL_newline', 'INITIAL_newline'), ('t_INITIAL_pp_define', 'INITIAL_pp_define')])], 'DEFINE': [
97 -- ('(?P<t_ANY_directive>\\#\\s+(\\d+)\\s+"([^"]+)"[ \\d]*\\n)|(?P<t_ANY_punctuator>(\\.\\.\\.|\\|\\||\\+\\+|\\*=|\\^=|<<=|>>=|\\|=|\\+=|>=|>>|<<|<=|<:|%=|:>|<%|!=|\\)|\\+|\\*|\\.|\\?|==|&=|&&|\\[|\\^|--|/=|%>|-=|->|\\||!|%|&|-|,|/|;|:|=|>|]|<|{|}|~))', [
98 -- None, ('t_ANY_directive', 'ANY_directive'), None, None, ('t_ANY_punctuator', 'ANY_punctuator')]), ('(?P<t_DEFINE_identifier>[a-zA-Z_]([a-zA-Z_]|[0-9])*)', [
99 -- None, ('t_DEFINE_identifier', 'DEFINE_identifier')]), ('(?P<t_ANY_float>(?P<p1>[0-9]+)?(?P<dp>[.]?)(?P<p2>(?(p1)[0-9]*|[0-9]+))(?P<exp>(?:[Ee][+-]?[0-9]+)?)(?P<suf>[FflL]?)(?!\\w))', [
100 -- None, ('t_ANY_float', 'ANY_float'), None, None, None, None, None]), ('(?P<t_ANY_int>(?P<p1>(?:0x[a-fA-F0-9]+)|(?:[0-9]+))(?P<suf>[uUlL]*))', [
101 -- None, ('t_ANY_int', 'ANY_int'), None, None]), ('(?P<t_ANY_character_constant>L?\'(\\\\.|[^\\\\\'])+\')|(?P<t_ANY_string_literal>L?"(\\\\.|[^\\\\"])*")|(?P<t_ANY_lparen>\\()|(?P<t_DEFINE_newline>\\n)|(?P<t_DEFINE_pp_param_op>(\\#\\#)|(\\#))', [
102 -- None, ('t_ANY_character_constant', 'ANY_character_constant'), None, ('t_ANY_string_literal', 'ANY_string_literal'), None, ('t_ANY_lparen', 'ANY_lparen'), ('t_DEFINE_newline', 'DEFINE_newline'), ('t_DEFINE_pp_param_op', 'DEFINE_pp_param_op')])]}
103 -+_lexstatere = {'INITIAL': [('(?P<t_ANY_directive>\\#\\s+(\\d+)\\s+"([^"]+)"[ \\d]*\\n)|(?P<t_ANY_punctuator>(\\.\\.\\.|\\|\\||\\+\\+|>>=|\\|=|\\^=|<<=|\\*=|\\+=|>=|>>|%=|:>|%>|!=|\\*|\\.|==|\\^|--|-=|->|\\||<<|<=|<:|<%|\\)|\\+|\\?|&=|&&|\\[|/=|&|,|:|<|>|~|!|%|-|/|;|=|]|{|}))', [None, ('t_ANY_directive', 'ANY_directive'), None, None, ('t_ANY_punctuator', 'ANY_punctuator')]), ('(?P<t_INITIAL_identifier>[a-zA-Z_]([a-zA-Z_]|[0-9])*)', [None, ('t_INITIAL_identifier', 'INITIAL_identifier')]), ('(?P<t_ANY_float>(?P<p1>[0-9]+)?(?P<dp>[.]?)(?P<p2>(?(p1)[0-9]*|[0-9]+))(?P<exp>(?:[Ee][+-]?[0-9]+)?)(?P<suf>([FfLl]|d[dfl]|D[DFL]|[fFdD][0-9]+x?)?)(?!\\w))', [None, ('t_ANY_float', 'ANY_float'), None, None, None, None, None]), ('(?P<t_ANY_int>(?P<p1>(?:0x[a-fA-F0-9]+)|(?:[0-9]+))(?P<suf>[uUlL]*))', [None, ('t_ANY_int', 'ANY_int'), None, None]), ('(?P<t_ANY_character_constant>L?\'(\\\\.|[^\\\\\'])+\')|(?P<t_ANY_string_literal>L?"(\\\\.|[^\\\\"])*")|(?P<t_ANY_lparen>\\()|(?P<t_INITIAL_newline>\\n)
104 |(?P<t_INITIAL_pp_define>\\#define)', [None, ('t_ANY_character_constant', 'ANY_character_constant'), None, ('t_ANY_string_literal', 'ANY_string_literal'), None, ('t_ANY_lparen', 'ANY_lparen'), ('t_INITIAL_newline', 'INITIAL_newline'), ('t_INITIAL_pp_define', 'INITIAL_pp_define')])], 'DEFINE': [('(?P<t_ANY_directive>\\#\\s+(\\d+)\\s+"([^"]+)"[ \\d]*\\n)|(?P<t_ANY_punctuator>(\\.\\.\\.|\\|\\||\\+\\+|>>=|\\|=|\\^=|<<=|\\*=|\\+=|>=|>>|%=|:>|%>|!=|\\*|\\.|==|\\^|--|-=|->|\\||<<|<=|<:|<%|\\)|\\+|\\?|&=|&&|\\[|/=|&|,|:|<|>|~|!|%|-|/|;|=|]|{|}))', [None, ('t_ANY_directive', 'ANY_directive'), None, None, ('t_ANY_punctuator', 'ANY_punctuator')]), ('(?P<t_DEFINE_identifier>[a-zA-Z_]([a-zA-Z_]|[0-9])*)', [None, ('t_DEFINE_identifier', 'DEFINE_identifier')]), ('(?P<t_ANY_float>(?P<p1>[0-9]+)?(?P<dp>[.]?)(?P<p2>(?(p1)[0-9]*|[0-9]+))(?P<exp>(?:[Ee][+-]?[0-9]+)?)(?P<suf>([FfLl]|d[dfl]|D[DFL]|[fFdD][0-9]+x?)?)(?!\\w))', [None, ('t_ANY_float', 'ANY_float'), None, None, None, None, None]), ('(?P<t_ANY
105 _int>(?P<p1>(?:0x[a-fA-F0-9]+)|(?:[0-9]+))(?P<suf>[uUlL]*))', [None, ('t_ANY_int', 'ANY_int'), None, None]), ('(?P<t_ANY_character_constant>L?\'(\\\\.|[^\\\\\'])+\')|(?P<t_ANY_string_literal>L?"(\\\\.|[^\\\\"])*")|(?P<t_ANY_lparen>\\()|(?P<t_DEFINE_newline>\\n)|(?P<t_DEFINE_pp_param_op>(\\#\\#)|(\\#))', [None, ('t_ANY_character_constant', 'ANY_character_constant'), None, ('t_ANY_string_literal', 'ANY_string_literal'), None, ('t_ANY_lparen', 'ANY_lparen'), ('t_DEFINE_newline', 'DEFINE_newline'), ('t_DEFINE_pp_param_op', 'DEFINE_pp_param_op')])]}
106 - _lexstateignore = {'INITIAL': ' \t\x0b\x0c\r', 'DEFINE': ' \t\x0b\x0c\r'}
107 - _lexstateerrorf = {'INITIAL': 't_INITIAL_error', 'DEFINE': 't_DEFINE_error'}
108 -Index: releasebranch_7_2/lib/python/ctypes/ctypesgencore/parser/pplexer.py
109 -===================================================================
110 ---- a/lib/python/ctypes/ctypesgencore/parser/pplexer.py (revision 71218)
111 -+++ b/lib/python/ctypes/ctypesgencore/parser/pplexer.py (revision 71219)
112 -@@ -52,7 +52,7 @@
113 - 'L': '[a-zA-Z_]',
114 - 'H': '[a-fA-F0-9]',
115 - 'E': '[Ee][+-]?\s*{D}+',
116 -- 'FS': '[FflL]',
117 -+ 'FS': '([FfLl]|d[dfl]|D[DFL]|[fFdD][0-9]+x?)',
118 - 'IS': '[uUlL]*',
119 - }
120 - # Helper: substitute {foo} with subs[foo] in string (makes regexes more lexy)
121 -@@ -226,10 +226,10 @@
122 - exp = m.group("exp")
123 - suf = m.group("suf")
124 -
125 -- if dp or exp or (suf and suf in ("Ff")):
126 -+ if dp or exp or (suf and suf not in ("Ll")):
127 - s = m.group(0)
128 - if suf:
129 -- s = s[:-1]
130 -+ s = s[:-len(suf)]
131 - # Attach a prefix so the parser can figure out if should become an
132 - # integer, float, or long
133 - t.value = "f" + s
134
135 diff --git a/sci-geosciences/grass/files/grass-7.2.0-glibc-2.26-1.patch b/sci-geosciences/grass/files/grass-7.2.0-glibc-2.26-1.patch
136 deleted file mode 100644
137 index 115ff06febc..00000000000
138 --- a/sci-geosciences/grass/files/grass-7.2.0-glibc-2.26-1.patch
139 +++ /dev/null
140 @@ -1,10 +0,0 @@
141 -Index: /grass/trunk/lib/raster/R.h
142 -===================================================================
143 ---- /grass/trunk/lib/raster/R.h (revision 71264)
144 -+++ /grass/trunk/lib/raster/R.h (revision 71265)
145 -@@ -1,5 +1,4 @@
146 - #include <grass/config.h>
147 - #include <grass/gis.h>
148 --#include <rpc/types.h>
149 - #ifdef HAVE_GDAL
150 - #include <gdal.h>
151
152 diff --git a/sci-geosciences/grass/files/grass-7.2.0-glibc-2.26-2.patch b/sci-geosciences/grass/files/grass-7.2.0-glibc-2.26-2.patch
153 deleted file mode 100644
154 index c1361f6af08..00000000000
155 --- a/sci-geosciences/grass/files/grass-7.2.0-glibc-2.26-2.patch
156 +++ /dev/null
157 @@ -1,32 +0,0 @@
158 -Index: /grass/branches/releasebranch_7_2/lib/raster/get_row.c
159 -===================================================================
160 ---- /grass/branches/releasebranch_7_2/lib/raster/get_row.c (revision 71943)
161 -+++ /grass/branches/releasebranch_7_2/lib/raster/get_row.c (revision 71944)
162 -@@ -15,6 +15,4 @@
163 - #include <unistd.h>
164 - #include <sys/types.h>
165 --
166 --#include <rpc/types.h> /* need this for sgi */
167 -
168 - #include <grass/config.h>
169 -Index: /grass/branches/releasebranch_7_2/lib/raster/open.c
170 -===================================================================
171 ---- /grass/branches/releasebranch_7_2/lib/raster/open.c (revision 71943)
172 -+++ /grass/branches/releasebranch_7_2/lib/raster/open.c (revision 71944)
173 -@@ -13,6 +13,4 @@
174 - */
175 -
176 --#include <rpc/types.h>
177 --#include <rpc/xdr.h>
178 - #include <unistd.h>
179 - #include <string.h>
180 -Index: /grass/branches/releasebranch_7_2/lib/raster/range.c
181 -===================================================================
182 ---- /grass/branches/releasebranch_7_2/lib/raster/range.c (revision 71943)
183 -+++ /grass/branches/releasebranch_7_2/lib/raster/range.c (revision 71944)
184 -@@ -13,5 +13,4 @@
185 -
186 - #include <unistd.h>
187 --#include <rpc/types.h> /* need this for sgi */
188 -
189 - #include <grass/raster.h>
190
191 diff --git a/sci-geosciences/grass/grass-7.2.0-r1.ebuild b/sci-geosciences/grass/grass-7.2.0-r1.ebuild
192 deleted file mode 100644
193 index 6b99aa466e7..00000000000
194 --- a/sci-geosciences/grass/grass-7.2.0-r1.ebuild
195 +++ /dev/null
196 @@ -1,265 +0,0 @@
197 -# Copyright 1999-2019 Gentoo Authors
198 -# Distributed under the terms of the GNU General Public License v2
199 -
200 -EAPI=6
201 -
202 -PYTHON_COMPAT=( python2_7 )
203 -PYTHON_REQ_USE="sqlite" # bug 572440
204 -WANT_AUTOCONF="2.1"
205 -WX_GTK_VER=3.0
206 -
207 -inherit autotools gnome2 python-single-r1 versionator wxwidgets xdg-utils
208 -
209 -MY_PM=${PN}$(get_version_component_range 1-2 ${PV})
210 -MY_PM=${MY_PM/.}
211 -MY_P=${P/_rc/RC}
212 -
213 -DESCRIPTION="A free GIS with raster and vector functionality, as well as 3D vizualization"
214 -HOMEPAGE="https://grass.osgeo.org/"
215 -SRC_URI="https://grass.osgeo.org/${MY_PM}/source/${MY_P}.tar.gz"
216 -
217 -LICENSE="GPL-2"
218 -SLOT="0/7.2.0"
219 -KEYWORDS="~amd64 ~ppc ~x86"
220 -IUSE="X blas cxx fftw geos lapack liblas mysql netcdf nls odbc opencl opengl openmp png postgres readline sqlite threads tiff truetype"
221 -
222 -RDEPEND="${PYTHON_DEPS}
223 - >=app-admin/eselect-1.2
224 - dev-python/numpy[${PYTHON_USEDEP}]
225 - media-libs/libprojectm
226 - sci-libs/proj
227 - sci-libs/xdrfile
228 - sci-libs/gdal
229 - sys-libs/gdbm
230 - sys-libs/ncurses:0=
231 - sys-libs/zlib:=
232 - fftw? ( sci-libs/fftw:3.0= )
233 - geos? ( sci-libs/geos )
234 - blas? ( virtual/blas
235 - sci-libs/cblas-reference )
236 - lapack? ( virtual/lapack )
237 - liblas? ( sci-geosciences/liblas )
238 - mysql? ( virtual/mysql )
239 - netcdf? ( sci-libs/netcdf )
240 - odbc? ( dev-db/unixODBC )
241 - opencl? ( virtual/opencl )
242 - opengl? ( virtual/opengl )
243 - png? ( media-libs/libpng:0= )
244 - postgres? ( >=dev-db/postgresql-8.4:= )
245 - readline? ( sys-libs/readline:0= )
246 - sqlite? ( dev-db/sqlite:3 )
247 - tiff? ( media-libs/tiff:0= )
248 - truetype? ( media-libs/freetype:2 )
249 - X? (
250 - dev-python/wxpython:3.0[cairo,opengl?]
251 - x11-libs/cairo[X,opengl?]
252 - x11-libs/libICE
253 - x11-libs/libSM
254 - x11-libs/libX11
255 - x11-libs/libXext
256 - x11-libs/libXt
257 - )"
258 -
259 -DEPEND="${RDEPEND}
260 - virtual/pkgconfig
261 - sys-devel/flex
262 - sys-devel/gettext
263 - sys-devel/bison
264 - X? (
265 - dev-lang/swig
266 - x11-base/xorg-proto
267 - )"
268 -
269 -S="${WORKDIR}/${MY_P}"
270 -
271 -REQUIRED_USE="
272 - ${PYTHON_REQUIRED_USE}
273 - opengl? ( X )"
274 -
275 -PATCHES=(
276 - "${FILESDIR}/${PN}"-7.0.1-declare-inespg.patch
277 - "${FILESDIR}/${P}"-gcc7.patch
278 - "${FILESDIR}/${P}"-glibc-2.26-{1,2}.patch
279 -)
280 -
281 -pkg_setup() {
282 - if use lapack; then
283 - local mylapack
284 - mylapack=$(eselect lapack show) || die
285 - if [[ -z "${mylapack/.*reference.*/}" ]] && \
286 - [[ -z "${mylapack/.*atlas.*/}" ]]; then
287 - ewarn "You need to set lapack to atlas or reference. Do:"
288 - ewarn " eselect lapack set <impl>"
289 - ewarn "where <impl> is atlas, threaded-atlas or reference"
290 - die "setup failed"
291 - fi
292 - fi
293 -
294 - if use blas; then
295 - local myblas
296 - myblas=$(eselect blas show) || die
297 - if [[ -z "${myblas/.*reference.*/}" ]] && \
298 - [[ -z "${myblas/.*atlas.*/}" ]]; then
299 - ewarn "You need to set blas to atlas or reference. Do:"
300 - ewarn " eselect blas set <impl>"
301 - ewarn "where <impl> is atlas, threaded-atlas or reference"
302 - die "setup failed"
303 - fi
304 - fi
305 -
306 - python-single-r1_pkg_setup
307 -}
308 -
309 -src_prepare() {
310 - # Fix unversioned python calls
311 - local pyver=${EPYTHON/python/}
312 - sed -e "s:GRASS_PYTHON=.*:&${pyver}:" -i "${S}/lib/init/grass.sh" || die
313 - sed -e "s:= python:&${pyver}:" -i "${S}/include/Make/Platform.make.in" || die
314 -
315 - # fix header being unconditionally included
316 - # see upstream https://trac.osgeo.org/grass/ticket/2779
317 - sed -e 's:\(#include <ogr_api.h>\):#ifdef HAVE_OGR\n\1\n#endif:' \
318 - -i "${S}/vector/v.external/main.c" || die "failed to sed main.c"
319 -
320 - default
321 - eautoconf
322 -
323 - ebegin "Fixing python shebangs"
324 - python_fix_shebang -q "${S}"
325 - eend $?
326 -}
327 -
328 -src_configure() {
329 - if use X; then
330 - WX_BUILD=yes
331 - setup-wxwidgets
332 - fi
333 -
334 - addwrite "${ROOT}dev/dri/renderD128"
335 -
336 - econf \
337 - --enable-shared \
338 - --disable-w11 \
339 - $(use_with cxx) \
340 - $(use_with tiff) \
341 - $(use_with png) \
342 - $(use_with postgres) \
343 - $(use_with mysql) \
344 - $(use_with mysql mysql-includes "${ROOT}usr/include/mysql") \
345 - $(use_with mysql mysql-libs "${ROOT}usr/$(get_libdir)/mysql") \
346 - $(use_with sqlite) \
347 - $(use_with opengl) \
348 - $(use_with odbc) \
349 - $(use_with fftw) \
350 - $(use_with blas) \
351 - $(use_with lapack) \
352 - $(use_with X cairo) \
353 - $(use_with truetype freetype) \
354 - $(use_with truetype freetype-includes "${ROOT}usr/include/freetype2") \
355 - $(use_with nls) \
356 - $(use_with readline) \
357 - --without-opendwg \
358 - --with-regex \
359 - $(use_with threads pthread) \
360 - $(use_with openmp) \
361 - $(use_with opencl) \
362 - --with-gdal="${ROOT}usr/bin/gdal-config" \
363 - $(use_with liblas liblas "${ROOT}usr/bin/liblas-config") \
364 - $(use_with X wxwidgets "${WX_CONFIG}") \
365 - $(use_with netcdf netcdf "${ROOT}usr/bin/nc-config") \
366 - $(use_with geos geos "${ROOT}usr/bin/geos-config") \
367 - --with-proj-includes="${ROOT}usr/include/libprojectM" \
368 - --with-proj-libs="${ROOT}usr/$(get_libdir)" \
369 - --with-proj-share="${ROOT}usr/share/proj/" \
370 - $(use_with X x)
371 -}
372 -
373 -src_compile() {
374 - # we don't want to link against embedded mysql lib
375 - emake CC="$(tc-getCC)" MYSQLDLIB=""
376 -}
377 -
378 -src_install() {
379 - emake DESTDIR="${D}" \
380 - INST_DIR="${D}usr/${MY_PM}" \
381 - prefix="${D}usr" BINDIR="${D}usr/bin" \
382 - PREFIX="${D}usr/" \
383 - install
384 -
385 - pushd "${D}usr/${MY_PM}" &> /dev/null || die
386 -
387 - # fix docs
388 - dodoc AUTHORS CHANGES
389 - docinto html
390 - dodoc -r docs/html/*
391 - rm -rf docs/ || die
392 - rm -rf {AUTHORS,CHANGES,COPYING,GPL.TXT,REQUIREMENTS.html} || die
393 -
394 - # manuals
395 - dodir /usr/share/man/man1
396 - rm -rf man/ || die
397 -
398 - # translations
399 - if use nls; then
400 - dodir /usr/share/locale/
401 - mv locale/* "${D}usr/share/locale/" || die
402 - rm -rf locale/ || die
403 - # pt_BR is broken
404 - mv "${D}usr/share/locale/pt_br" "${D}usr/share/locale/pt_BR" || die
405 - fi
406 -
407 - popd &> /dev/null || die
408 -
409 - # place libraries where they belong
410 - mv "${D}usr/${MY_PM}/lib/" "${D}usr/$(get_libdir)/" || die
411 -
412 - # place header files where they belong
413 - mv "${D}usr/${MY_PM}/include/" "${D}usr/include/" || die
414 - # make rules are not required on installed system
415 - rm -rf "${D}usr/include/Make" || die
416 -
417 - # mv remaining gisbase stuff to libdir
418 - mv "${D}usr/${MY_PM}" "${D}usr/$(get_libdir)" || die
419 -
420 - # get proper folder for grass path in script
421 - local gisbase
422 - gisbase="${ROOT}usr/$(get_libdir)/${MY_PM}"
423 - sed -e "s:gisbase = \".*:gisbase = \"${gisbase}\":" \
424 - -i "${D}usr/bin/${MY_PM}" || die
425 -
426 - # get proper fonts path for fontcap
427 - sed -i \
428 - -e "s|${D}usr/${MY_PM}|${EPREFIX}usr/$(get_libdir)/${MY_PM}|" \
429 - "${D}usr/$(get_libdir)/${MY_PM}/etc/fontcap" || die
430 -
431 - # set proper python interpreter
432 - sed -e "s:= \"python\":= \"${EPYTHON}\":" -i "${D}usr/bin/${MY_PM}" || die
433 -
434 - if use X; then
435 - local GUI="-gui"
436 - [[ ${WX_BUILD} == yes ]] && GUI="-wxpython"
437 - make_desktop_entry "/usr/bin/${MY_PM} ${GUI}" "${PN}" "${PN}-48x48" "Science;Education"
438 - doicon -s 48 gui/icons/${PN}-48x48.png
439 - fi
440 -
441 - # install .pc file so other apps know where to look for grass
442 - insinto /usr/$(get_libdir)/pkgconfig/
443 - doins grass.pc
444 -
445 - # fix weird +x on tcl scripts
446 - find "${D}" -name "*.tcl" -exec chmod +r-x '{}' \;
447 -}
448 -
449 -pkg_postinst() {
450 - if use X; then
451 - xdg_desktop_database_update
452 - gnome2_icon_cache_update
453 - fi
454 -}
455 -
456 -pkg_postrm() {
457 - if use X; then
458 - xdg_desktop_database_update
459 - gnome2_icon_cache_update
460 - fi
461 -}
462
463 diff --git a/sci-geosciences/grass/grass-7.4.0.ebuild b/sci-geosciences/grass/grass-7.4.0.ebuild
464 deleted file mode 100644
465 index 4b0679f5b2c..00000000000
466 --- a/sci-geosciences/grass/grass-7.4.0.ebuild
467 +++ /dev/null
468 @@ -1,281 +0,0 @@
469 -# Copyright 1999-2019 Gentoo Authors
470 -# Distributed under the terms of the GNU General Public License v2
471 -
472 -EAPI=6
473 -
474 -PYTHON_COMPAT=( python2_7 )
475 -PYTHON_REQ_USE="sqlite" # bug 572440
476 -WANT_AUTOCONF="2.1"
477 -WX_GTK_VER=3.0
478 -
479 -inherit autotools gnome2 python-single-r1 versionator wxwidgets xdg-utils
480 -
481 -MY_PM=${PN}$(get_version_component_range 1-2 ${PV})
482 -MY_PM=${MY_PM/.}
483 -MY_P=${P/_rc/RC}
484 -
485 -DESCRIPTION="A free GIS with raster and vector functionality, as well as 3D vizualization"
486 -HOMEPAGE="https://grass.osgeo.org/"
487 -SRC_URI="https://grass.osgeo.org/${MY_PM}/source/${MY_P}.tar.gz"
488 -
489 -LICENSE="GPL-2"
490 -SLOT="0/7.4.0"
491 -KEYWORDS="~amd64 ~ppc ~x86"
492 -IUSE="X blas cxx fftw geos lapack liblas mysql netcdf nls odbc opencl opengl openmp png postgres readline sqlite threads tiff truetype"
493 -
494 -RDEPEND="${PYTHON_DEPS}
495 - >=app-admin/eselect-1.2
496 - dev-python/numpy[${PYTHON_USEDEP}]
497 - media-libs/libprojectm
498 - sci-libs/proj
499 - sci-libs/xdrfile
500 - sci-libs/gdal
501 - sys-libs/gdbm
502 - sys-libs/ncurses:0=
503 - sys-libs/zlib:=
504 - fftw? ( sci-libs/fftw:3.0= )
505 - geos? ( sci-libs/geos )
506 - blas? ( virtual/blas
507 - sci-libs/cblas-reference )
508 - lapack? ( virtual/lapack )
509 - liblas? ( sci-geosciences/liblas )
510 - mysql? ( virtual/mysql )
511 - netcdf? ( sci-libs/netcdf )
512 - odbc? ( dev-db/unixODBC )
513 - opencl? ( virtual/opencl )
514 - opengl? ( virtual/opengl )
515 - png? ( media-libs/libpng:0= )
516 - postgres? ( >=dev-db/postgresql-8.4:= )
517 - readline? ( sys-libs/readline:0= )
518 - sqlite? ( dev-db/sqlite:3 )
519 - tiff? ( media-libs/tiff:0= )
520 - truetype? ( media-libs/freetype:2 )
521 - X? (
522 - dev-python/wxpython:3.0[cairo,opengl?]
523 - x11-libs/cairo[X,opengl?]
524 - x11-libs/libICE
525 - x11-libs/libSM
526 - x11-libs/libX11
527 - x11-libs/libXext
528 - x11-libs/libXt
529 - )"
530 -
531 -DEPEND="${RDEPEND}
532 - virtual/pkgconfig
533 - sys-devel/flex
534 - sys-devel/gettext
535 - sys-devel/bison
536 - X? (
537 - dev-lang/swig
538 - x11-base/xorg-proto
539 - )"
540 -
541 -S="${WORKDIR}/${MY_P}"
542 -
543 -REQUIRED_USE="
544 - ${PYTHON_REQUIRED_USE}
545 - opengl? ( X )"
546 -
547 -PATCHES=(
548 - "${FILESDIR}/${PN}"-7.0.1-declare-inespg.patch
549 -)
550 -
551 -#pre_pkg_setup() {
552 -# export LIBS="$(pkg-config --libs libtirpc) ${LIBS}"
553 -# export CPPFLAGS="$(pkg-config --cflags libtirpc) ${CPPFLAGS}"
554 -# einfo "LIBS='${LIBS}' CPPFLAGS='${CPPFLAGS}' # bug #588980"
555 -#}
556 -
557 -pkg_setup() {
558 - if use lapack; then
559 - local mylapack
560 - mylapack=$(eselect lapack show) || die
561 - if [[ -z "${mylapack/.*reference.*/}" ]] && \
562 - [[ -z "${mylapack/.*atlas.*/}" ]]; then
563 - ewarn "You need to set lapack to atlas or reference. Do:"
564 - ewarn " eselect lapack set <impl>"
565 - ewarn "where <impl> is atlas, threaded-atlas or reference"
566 - die "setup failed"
567 - fi
568 - fi
569 -
570 - if use blas; then
571 - local myblas
572 - myblas=$(eselect blas show) || die
573 - if [[ -z "${myblas/.*reference.*/}" ]] && \
574 - [[ -z "${myblas/.*atlas.*/}" ]]; then
575 - ewarn "You need to set blas to atlas or reference. Do:"
576 - ewarn " eselect blas set <impl>"
577 - ewarn "where <impl> is atlas, threaded-atlas or reference"
578 - die "setup failed"
579 - fi
580 - fi
581 -
582 - python-single-r1_pkg_setup
583 -}
584 -
585 -src_prepare() {
586 - # Fix unversioned python calls
587 - local pyver=${EPYTHON/python/}
588 - sed -e "s:GRASS_PYTHON=.*:&${pyver}:" -i "${S}/lib/init/grass.sh" || die
589 - sed -e "s:= python:&${pyver}:" -i "${S}/include/Make/Platform.make.in" || die
590 -
591 - # fix header being unconditionally included
592 - # see upstream https://trac.osgeo.org/grass/ticket/2779
593 - sed -e 's:\(#include <ogr_api.h>\):#ifdef HAVE_OGR\n\1\n#endif:' \
594 - -i "${S}/vector/v.external/main.c" || die "failed to sed main.c"
595 -
596 - default
597 - eautoconf
598 -
599 - ebegin "Fixing python shebangs"
600 - python_fix_shebang -q "${S}"
601 - eend $?
602 -
603 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
604 - shopt -s nullglob
605 - mesa_cards=$(echo -n /dev/dri/card* /dev/dri/render* | sed 's/ /:/g')
606 - if test -n "${mesa_cards}"; then
607 - addpredict "${mesa_cards}"
608 - fi
609 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
610 - if test -n "${ati_cards}"; then
611 - addpredict "${ati_cards}"
612 - fi
613 - shopt -u nullglob
614 - addpredict /dev/nvidiactl
615 -
616 -}
617 -
618 -src_configure() {
619 - if use X; then
620 - WX_BUILD=yes
621 - setup-wxwidgets
622 - fi
623 -
624 - addwrite "${EPREFIX}/dev/dri/renderD128"
625 -
626 - econf \
627 - --enable-shared \
628 - --disable-w11 \
629 - $(use_with cxx) \
630 - $(use_with tiff) \
631 - $(use_with png) \
632 - $(use_with postgres) \
633 - $(use_with mysql) \
634 - $(use_with mysql mysql-includes "${EPREFIX}/usr/include/mysql") \
635 - $(use_with mysql mysql-libs "${EPREFIX}/usr/$(get_libdir)/mysql") \
636 - $(use_with sqlite) \
637 - $(use_with opengl) \
638 - $(use_with odbc) \
639 - $(use_with fftw) \
640 - $(use_with blas) \
641 - $(use_with lapack) \
642 - $(use_with X cairo) \
643 - $(use_with truetype freetype) \
644 - $(use_with truetype freetype-includes "${EPREFIX}/usr/include/freetype2") \
645 - $(use_with nls) \
646 - $(use_with readline) \
647 - --without-opendwg \
648 - --with-regex \
649 - $(use_with threads pthread) \
650 - $(use_with openmp) \
651 - $(use_with opencl) \
652 - --with-gdal="${EPREFIX}/usr/bin/gdal-config" \
653 - $(use_with liblas liblas "${EPREFIX}/usr/bin/liblas-config") \
654 - $(use_with X wxwidgets "${WX_CONFIG}") \
655 - $(use_with netcdf netcdf "${EPREFIX}/usr/bin/nc-config") \
656 - $(use_with geos geos "${EPREFIX}/usr/bin/geos-config") \
657 - --with-proj-includes="${EPREFIX}/usr/include/libprojectM" \
658 - --with-proj-libs="${EPREFIX}/usr/$(get_libdir)" \
659 - --with-proj-share="${EPREFIX}/usr/share/proj/" \
660 - $(use_with X x)
661 -}
662 -
663 -src_compile() {
664 - # we don't want to link against embedded mysql lib
665 - emake CC="$(tc-getCC)" MYSQLDLIB=""
666 -}
667 -
668 -src_install() {
669 - emake DESTDIR="${D}" \
670 - INST_DIR="${D}usr/${MY_PM}" \
671 - prefix="${D}usr" BINDIR="${D}usr/bin" \
672 - PREFIX="${D}usr/" \
673 - install
674 -
675 - pushd "${D}usr/${MY_PM}" &> /dev/null || die
676 -
677 - # fix docs
678 - dodoc AUTHORS CHANGES
679 - docinto html
680 - dodoc -r docs/html/*
681 - rm -rf docs/ || die
682 - rm -rf {AUTHORS,CHANGES,COPYING,GPL.TXT,REQUIREMENTS.html} || die
683 -
684 - # manuals
685 - dodir /usr/share/man/man1
686 - rm -rf man/ || die
687 -
688 - # translations
689 - if use nls; then
690 - dodir /usr/share/locale/
691 - mv locale/* "${D}usr/share/locale/" || die
692 - rm -rf locale/ || die
693 - fi
694 -
695 - popd &> /dev/null || die
696 -
697 - # place libraries where they belong
698 - mv "${D}usr/${MY_PM}/lib/" "${D}usr/$(get_libdir)/" || die
699 -
700 - # place header files where they belong
701 - mv "${D}usr/${MY_PM}/include/" "${D}usr/include/" || die
702 - # make rules are not required on installed system
703 - rm -rf "${D}usr/include/Make" || die
704 -
705 - # mv remaining gisbase stuff to libdir
706 - mv "${D}usr/${MY_PM}" "${D}usr/$(get_libdir)" || die
707 -
708 - # get proper folder for grass path in script
709 - local gisbase
710 - gisbase="${ROOT}usr/$(get_libdir)/${MY_PM}"
711 - sed -e "s:gisbase = \".*:gisbase = \"${gisbase}\":" \
712 - -i "${D}usr/bin/${MY_PM}" || die
713 -
714 - # get proper fonts path for fontcap
715 - sed -i \
716 - -e "s|${D}usr/${MY_PM}|${EPREFIX}usr/$(get_libdir)/${MY_PM}|" \
717 - "${D}usr/$(get_libdir)/${MY_PM}/etc/fontcap" || die
718 -
719 - # set proper python interpreter
720 - sed -e "s:= \"python\":= \"${EPYTHON}\":" -i "${D}usr/bin/${MY_PM}" || die
721 -
722 - if use X; then
723 - local GUI="-gui"
724 - [[ ${WX_BUILD} == yes ]] && GUI="-wxpython"
725 - make_desktop_entry "/usr/bin/${MY_PM} ${GUI}" "${PN}" "${PN}-48x48" "Science;Education"
726 - doicon -s 48 gui/icons/${PN}-48x48.png
727 - fi
728 -
729 - # install .pc file so other apps know where to look for grass
730 - insinto /usr/$(get_libdir)/pkgconfig/
731 - doins grass.pc
732 -
733 - # fix weird +x on tcl scripts
734 - find "${D}" -name "*.tcl" -exec chmod +r-x '{}' \;
735 -}
736 -
737 -pkg_postinst() {
738 - if use X; then
739 - xdg_desktop_database_update
740 - gnome2_icon_cache_update
741 - fi
742 -}
743 -
744 -pkg_postrm() {
745 - if use X; then
746 - xdg_desktop_database_update
747 - gnome2_icon_cache_update
748 - fi
749 -}
750
751 diff --git a/sci-geosciences/grass/grass-7.4.1.ebuild b/sci-geosciences/grass/grass-7.4.1.ebuild
752 deleted file mode 100644
753 index 7c4d6e63529..00000000000
754 --- a/sci-geosciences/grass/grass-7.4.1.ebuild
755 +++ /dev/null
756 @@ -1,284 +0,0 @@
757 -# Copyright 1999-2019 Gentoo Authors
758 -# Distributed under the terms of the GNU General Public License v2
759 -
760 -EAPI=6
761 -
762 -PYTHON_COMPAT=( python2_7 )
763 -PYTHON_REQ_USE="sqlite" # bug 572440
764 -WANT_AUTOCONF="2.1"
765 -WX_GTK_VER=3.0
766 -
767 -inherit autotools gnome2 python-single-r1 versionator wxwidgets xdg-utils
768 -
769 -MY_PM=${PN}$(get_version_component_range 1-2 ${PV})
770 -MY_PM=${MY_PM/.}
771 -MY_P=${P/_rc/RC}
772 -
773 -DESCRIPTION="A free GIS with raster and vector functionality, as well as 3D vizualization"
774 -HOMEPAGE="https://grass.osgeo.org/"
775 -SRC_URI="https://grass.osgeo.org/${MY_PM}/source/${MY_P}.tar.gz"
776 -
777 -LICENSE="GPL-2"
778 -SLOT="0/7.4.0"
779 -KEYWORDS="~amd64 ~ppc ~x86"
780 -IUSE="X blas cxx fftw geos lapack liblas mysql netcdf nls odbc opencl opengl openmp png postgres readline sqlite threads tiff truetype"
781 -
782 -RDEPEND="${PYTHON_DEPS}
783 - >=app-admin/eselect-1.2
784 - dev-python/numpy[${PYTHON_USEDEP}]
785 - media-libs/libprojectm
786 - sci-libs/proj
787 - sci-libs/xdrfile
788 - sci-libs/gdal
789 - sys-libs/gdbm
790 - sys-libs/ncurses:0=
791 - sys-libs/zlib:=
792 - fftw? ( sci-libs/fftw:3.0= )
793 - geos? ( sci-libs/geos )
794 - blas? ( virtual/blas
795 - sci-libs/cblas-reference )
796 - lapack? ( virtual/lapack )
797 - liblas? ( sci-geosciences/liblas )
798 - mysql? ( virtual/mysql )
799 - netcdf? ( sci-libs/netcdf )
800 - odbc? ( dev-db/unixODBC )
801 - opencl? ( virtual/opencl )
802 - opengl? ( virtual/opengl )
803 - png? ( media-libs/libpng:0= )
804 - postgres? ( >=dev-db/postgresql-8.4:= )
805 - readline? ( sys-libs/readline:0= )
806 - sqlite? ( dev-db/sqlite:3 )
807 - tiff? ( media-libs/tiff:0= )
808 - truetype? ( media-libs/freetype:2 )
809 - X? (
810 - dev-python/wxpython:3.0[cairo,opengl?]
811 - x11-libs/cairo[X,opengl?]
812 - x11-libs/libICE
813 - x11-libs/libSM
814 - x11-libs/libX11
815 - x11-libs/libXext
816 - x11-libs/libXt
817 - )"
818 -
819 -DEPEND="${RDEPEND}
820 - virtual/pkgconfig
821 - sys-devel/flex
822 - sys-devel/gettext
823 - sys-devel/bison
824 - X? (
825 - dev-lang/swig
826 - x11-base/xorg-proto
827 - )"
828 -
829 -S="${WORKDIR}/${MY_P}"
830 -
831 -REQUIRED_USE="
832 - ${PYTHON_REQUIRED_USE}
833 - opengl? ( X )"
834 -
835 -PATCHES=(
836 - "${FILESDIR}/${PN}"-7.0.1-declare-inespg.patch
837 -)
838 -
839 -pkg_setup() {
840 - if use lapack; then
841 - local mylapack
842 - mylapack=$(eselect lapack show) || die
843 - if [[ -z "${mylapack/.*reference.*/}" ]] && \
844 - [[ -z "${mylapack/.*atlas.*/}" ]]; then
845 - ewarn "You need to set lapack to atlas or reference. Do:"
846 - ewarn " eselect lapack set <impl>"
847 - ewarn "where <impl> is atlas, threaded-atlas or reference"
848 - die "setup failed"
849 - fi
850 - fi
851 -
852 - if use blas; then
853 - local myblas
854 - myblas=$(eselect blas show) || die
855 - if [[ -z "${myblas/.*reference.*/}" ]] && \
856 - [[ -z "${myblas/.*atlas.*/}" ]]; then
857 - ewarn "You need to set blas to atlas or reference. Do:"
858 - ewarn " eselect blas set <impl>"
859 - ewarn "where <impl> is atlas, threaded-atlas or reference"
860 - die "setup failed"
861 - fi
862 - fi
863 -
864 - python-single-r1_pkg_setup
865 -}
866 -
867 -src_prepare() {
868 - # Fix unversioned python calls
869 - local pyver=${EPYTHON/python/}
870 - sed -e "s:GRASS_PYTHON=.*:&${pyver}:" -i "${S}/lib/init/grass.sh" || die
871 - sed -e "s:= python:&${pyver}:" -i "${S}/include/Make/Platform.make.in" || die
872 -
873 - # fix header being unconditionally included
874 - # see upstream https://trac.osgeo.org/grass/ticket/2779
875 - sed -e 's:\(#include <ogr_api.h>\):#ifdef HAVE_OGR\n\1\n#endif:' \
876 - -i "${S}/vector/v.external/main.c" || die "failed to sed main.c"
877 -
878 - default
879 - eautoconf
880 -
881 - ebegin "Fixing python shebangs"
882 - python_fix_shebang -q "${S}"
883 - eend $?
884 -
885 - # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3
886 - shopt -s nullglob
887 - mesa_cards=$(echo -n /dev/dri/card* /dev/dri/render* | sed 's/ /:/g')
888 - if test -n "${mesa_cards}"; then
889 - addpredict "${mesa_cards}"
890 - fi
891 - ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g')
892 - if test -n "${ati_cards}"; then
893 - addpredict "${ati_cards}"
894 - fi
895 - shopt -u nullglob
896 - addpredict /dev/nvidiactl
897 -
898 -}
899 -
900 -src_configure() {
901 - if use X; then
902 - WX_BUILD=yes
903 - setup-wxwidgets
904 - fi
905 -
906 - addwrite "${EPREFIX}/dev/dri/renderD128"
907 -
908 - econf \
909 - --enable-shared \
910 - --disable-w11 \
911 - $(use_with cxx) \
912 - $(use_with tiff) \
913 - $(use_with png) \
914 - $(use_with postgres) \
915 - $(use_with mysql) \
916 - $(use_with mysql mysql-includes "${EPREFIX}/usr/include/mysql") \
917 - $(use_with mysql mysql-libs "${EPREFIX}/usr/$(get_libdir)/mysql") \
918 - $(use_with sqlite) \
919 - $(use_with opengl) \
920 - $(use_with odbc) \
921 - $(use_with fftw) \
922 - $(use_with blas) \
923 - $(use_with lapack) \
924 - $(use_with X cairo) \
925 - $(use_with truetype freetype) \
926 - $(use_with truetype freetype-includes "${EPREFIX}/usr/include/freetype2") \
927 - $(use_with nls) \
928 - $(use_with readline) \
929 - --without-opendwg \
930 - --with-regex \
931 - $(use_with threads pthread) \
932 - $(use_with openmp) \
933 - $(use_with opencl) \
934 - --with-gdal="${EPREFIX}/usr/bin/gdal-config" \
935 - $(use_with liblas liblas "${EPREFIX}/usr/bin/liblas-config") \
936 - $(use_with X wxwidgets "${WX_CONFIG}") \
937 - $(use_with netcdf netcdf "${EPREFIX}/usr/bin/nc-config") \
938 - $(use_with geos geos "${EPREFIX}/usr/bin/geos-config") \
939 - --with-proj-includes="${EPREFIX}/usr/include/libprojectM" \
940 - --with-proj-libs="${EPREFIX}/usr/$(get_libdir)" \
941 - --with-proj-share="${EPREFIX}/usr/share/proj/" \
942 - $(use_with X x)
943 -}
944 -
945 -src_compile() {
946 - # we don't want to link against embedded mysql lib
947 - emake CC="$(tc-getCC)" MYSQLDLIB=""
948 -}
949 -
950 -src_install() {
951 - emake DESTDIR="${D}" \
952 - INST_DIR="${D}/usr/$(get_libdir)/${MY_PM}" \
953 - prefix="${D}/usr/" BINDIR="${D}/usr/bin" \
954 - PREFIX="${D}/usr/" \
955 - install
956 -
957 - pushd "${D}/usr/$(get_libdir)/${MY_PM}" &> /dev/null || die
958 -
959 - dodoc AUTHORS CHANGES
960 - docinto html
961 - dodoc -r docs/html/*
962 -
963 - # manuals
964 - dodir /usr/share/man/man1
965 - rm -rf man/ || die
966 -
967 - # translations
968 - if use nls; then
969 - dodir /usr/share/locale/
970 - mv locale/* "${D}usr/share/locale/" || die
971 - fi
972 -
973 - popd &> /dev/null || die
974 -
975 - # link libraries in the ~standard~ place
976 - for fLib in $(ls "${D}/usr/$(get_libdir)/${MY_PM}/lib/"); do
977 - dosym "${MY_PM}/lib/${fLib}" "/usr/$(get_libdir)/${fLib}"
978 - done
979 -
980 - # link headers in the ~standard~ place
981 - dodir "/usr/include/"
982 - dosym "../$(get_libdir)/${MY_PM}/include/grass" "/usr/include/grass"
983 -
984 - # fix paths in addons makefile includes
985 - local scriptMakeDir
986 - scriptMakeDir="${D}/usr/$(get_libdir)/${MY_PM}/include/Make/"
987 - for mkFile in $(ls "${scriptMakeDir}"); do
988 - echo sed -i "s|${D}|/|g" "${scriptMakeDir}/${mkFile}" || die
989 - sed -i "s|${D}|/|g" "${scriptMakeDir}/${mkFile}" || die
990 - done
991 -
992 - # get proper folder for grass path in script
993 - local gisbase
994 - gisbase="${ROOT}usr/$(get_libdir)/${MY_PM}"
995 - sed -e "s:gisbase = \".*:gisbase = \"${gisbase}\":" \
996 - -i "${D}usr/bin/${MY_PM}" || die
997 -
998 - # get proper fonts path for fontcap
999 - sed -i \
1000 - -e "s|${D}usr/${MY_PM}|${EPREFIX}usr/$(get_libdir)/${MY_PM}|" \
1001 - "${D}usr/$(get_libdir)/${MY_PM}/etc/fontcap" || die
1002 -
1003 - # set proper python interpreter
1004 - sed -e "s:= \"python\":= \"${EPYTHON}\":" -i "${D}usr/bin/${MY_PM}" || die
1005 -
1006 - if use X; then
1007 - local GUI="-gui"
1008 - [[ ${WX_BUILD} == yes ]] && GUI="-wxpython"
1009 - make_desktop_entry "/usr/bin/${MY_PM} ${GUI}" "${PN}" "${PN}-48x48" "Science;Education"
1010 - doicon -s 48 gui/icons/${PN}-48x48.png
1011 - fi
1012 -
1013 - # install .pc file so other apps know where to look for grass
1014 - insinto /usr/$(get_libdir)/pkgconfig/
1015 - doins grass.pc
1016 -
1017 - # fix weird +x on tcl scripts
1018 - find "${D}" -name "*.tcl" -exec chmod +r-x '{}' \;
1019 -}
1020 -
1021 -pkg_postinst() {
1022 - if use X; then
1023 - xdg_desktop_database_update
1024 - gnome2_icon_cache_update
1025 - fi
1026 -
1027 - ewarn "GRASS addons may fail due to Python 3 incompatibility."
1028 - ewarn "If that is tha case you can change the shebang a the beginning of"
1029 - ewarn "the script to enforce Python 2 usage."
1030 - ewarn "#!/usr/bin/env python"
1031 - ewarn "Should be changed into"
1032 - ewarn "#!/usr/bin/env python2"
1033 -}
1034 -
1035 -pkg_postrm() {
1036 - if use X; then
1037 - xdg_desktop_database_update
1038 - gnome2_icon_cache_update
1039 - fi
1040 -}