1 |
commit: 2ffabee7b66b17939f290a33324ec1bbfc91f913 |
2 |
Author: Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de> |
3 |
AuthorDate: Wed Feb 23 20:36:04 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 26 02:25:17 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2ffabee7 |
7 |
|
8 |
sci-geosciences/grass: version bump 7.8.7 |
9 |
|
10 |
Package-Manager: Portage-3.0.30, Repoman-3.0.3 |
11 |
Signed-off-by: Mario Haustein <mario.haustein <AT> hrz.tu-chemnitz.de> |
12 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
sci-geosciences/grass/Manifest | 1 + |
15 |
sci-geosciences/grass/grass-7.8.7.ebuild | 269 +++++++++++++++++++++++++++++++ |
16 |
2 files changed, 270 insertions(+) |
17 |
|
18 |
diff --git a/sci-geosciences/grass/Manifest b/sci-geosciences/grass/Manifest |
19 |
index 85de9606c6e5..4c2956704d54 100644 |
20 |
--- a/sci-geosciences/grass/Manifest |
21 |
+++ b/sci-geosciences/grass/Manifest |
22 |
@@ -1,2 +1,3 @@ |
23 |
DIST grass-7.8.6.tar.gz 66331264 BLAKE2B bb5a3387f74bc30b7ce3230765cecdc7e61ded8693d888e6cefc2d491022496409d053e170293fcef392a9c9178a41b070767e1ce90b57b448b189c9e16a2761 SHA512 6db10a20e5b70f0ce9a8fc4d6966c6f078453a88fa8f0577c1c62303f9787fa3bf3369e281f7ca864280c865e3ef022c51d8805d1258ea04da45e63cd34c27df |
24 |
+DIST grass-7.8.7.tar.gz 66333084 BLAKE2B 809daed6992838cd89b7f913c92bb588db05ae933c6e05b6fbd1add135dc36238260222f338df023c402b411b6c0338a56e06268d1fb736e9d9f6779bc2e4c42 SHA512 8c890b34a64c3a52285a8d99e2a2ec61b41de0258ae5b70d1876499988a9a8229925b82f4595df6b5cf21b77ecc8529feb75f765d4e92f324a734293dffc7303 |
25 |
DIST grass-8.0.0.tar.gz 64944539 BLAKE2B 61ea667321599026f2514333e5fe47313d232236a818458939e968d80ed88a511ddc29e2b51edd082bd246b614a0b121b10c09e9059ae31fd5c211e9844d89b1 SHA512 29bd57fb017937b0f3ad105790449704c6f12b56ffe79091f0aceed328f4da5293dd42cc3071158aad5386a51309f35a4f0b9bbd57221431e705f51880c2ce42 |
26 |
|
27 |
diff --git a/sci-geosciences/grass/grass-7.8.7.ebuild b/sci-geosciences/grass/grass-7.8.7.ebuild |
28 |
new file mode 100644 |
29 |
index 000000000000..eeef656e6c64 |
30 |
--- /dev/null |
31 |
+++ b/sci-geosciences/grass/grass-7.8.7.ebuild |
32 |
@@ -0,0 +1,269 @@ |
33 |
+# Copyright 1999-2022 Gentoo Authors |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+ |
36 |
+EAPI=8 |
37 |
+ |
38 |
+PYTHON_COMPAT=( python3_{8,9} ) |
39 |
+PYTHON_REQ_USE="sqlite" # bug 572440 |
40 |
+WX_GTK_VER="3.0-gtk3" |
41 |
+ |
42 |
+inherit autotools desktop python-single-r1 toolchain-funcs wxwidgets xdg |
43 |
+ |
44 |
+MY_PM=${PN}$(ver_cut 1-2 ${PV}) |
45 |
+MY_PM=${MY_PM/.} |
46 |
+MY_P=${P/_rc/RC} |
47 |
+ |
48 |
+DESCRIPTION="A free GIS with raster and vector functionality, as well as 3D vizualization" |
49 |
+HOMEPAGE="https://grass.osgeo.org/" |
50 |
+SRC_URI="https://grass.osgeo.org/${MY_PM}/source/${MY_P}.tar.gz" |
51 |
+ |
52 |
+LICENSE="GPL-2" |
53 |
+SLOT="0/7.8.0" |
54 |
+KEYWORDS="~amd64 ~ppc ~x86" |
55 |
+IUSE="blas cxx fftw geos lapack liblas mysql netcdf nls odbc opencl opengl openmp png postgres readline sqlite threads tiff truetype X zstd" |
56 |
+REQUIRED_USE=" |
57 |
+ ${PYTHON_REQUIRED_USE} |
58 |
+ opengl? ( X )" |
59 |
+ |
60 |
+RDEPEND=" |
61 |
+ ${PYTHON_DEPS} |
62 |
+ >=app-admin/eselect-1.2 |
63 |
+ $(python_gen_cond_dep ' |
64 |
+ dev-python/numpy[${PYTHON_USEDEP}] |
65 |
+ dev-python/six[${PYTHON_USEDEP}] |
66 |
+ ') |
67 |
+ sci-libs/gdal:= |
68 |
+ sys-libs/gdbm:= |
69 |
+ sys-libs/ncurses:0= |
70 |
+ sci-libs/proj:= |
71 |
+ sci-libs/xdrfile |
72 |
+ sys-libs/zlib |
73 |
+ blas? ( |
74 |
+ virtual/cblas[eselect-ldso(+)] |
75 |
+ virtual/blas[eselect-ldso(+)] |
76 |
+ ) |
77 |
+ fftw? ( sci-libs/fftw:3.0= ) |
78 |
+ geos? ( sci-libs/geos:= ) |
79 |
+ lapack? ( virtual/lapack[eselect-ldso(+)] ) |
80 |
+ liblas? ( sci-geosciences/liblas ) |
81 |
+ mysql? ( dev-db/mysql-connector-c:= ) |
82 |
+ netcdf? ( sci-libs/netcdf:= ) |
83 |
+ odbc? ( dev-db/unixODBC ) |
84 |
+ opencl? ( virtual/opencl ) |
85 |
+ opengl? ( virtual/opengl ) |
86 |
+ png? ( media-libs/libpng:0= ) |
87 |
+ postgres? ( >=dev-db/postgresql-8.4:= ) |
88 |
+ readline? ( sys-libs/readline:0= ) |
89 |
+ sqlite? ( dev-db/sqlite:3 ) |
90 |
+ tiff? ( media-libs/tiff:0= ) |
91 |
+ truetype? ( media-libs/freetype:2 ) |
92 |
+ X? ( |
93 |
+ dev-python/wxpython:4.0 |
94 |
+ x11-libs/cairo[X,opengl?] |
95 |
+ x11-libs/libICE |
96 |
+ x11-libs/libSM |
97 |
+ x11-libs/libX11 |
98 |
+ x11-libs/libXext |
99 |
+ x11-libs/libXt |
100 |
+ ) |
101 |
+ zstd? ( app-arch/zstd )" |
102 |
+DEPEND="${RDEPEND} |
103 |
+ X? ( x11-base/xorg-proto )" |
104 |
+BDEPEND=" |
105 |
+ sys-devel/bison |
106 |
+ sys-devel/flex |
107 |
+ sys-devel/gettext |
108 |
+ virtual/pkgconfig |
109 |
+ X? ( dev-lang/swig )" |
110 |
+ |
111 |
+S="${WORKDIR}/${MY_P}" |
112 |
+ |
113 |
+PATCHES=( |
114 |
+ # bug 746590 |
115 |
+ "${FILESDIR}/${PN}-flock.patch" |
116 |
+) |
117 |
+ |
118 |
+pkg_setup() { |
119 |
+ if use lapack; then |
120 |
+ local mylapack=$(eselect lapack show) |
121 |
+ if [[ -z "${mylapack/.*reference.*/}" ]] && \ |
122 |
+ [[ -z "${mylapack/.*atlas.*/}" ]]; then |
123 |
+ ewarn "You need to set lapack to atlas or reference. Do:" |
124 |
+ ewarn " eselect lapack set <impl>" |
125 |
+ ewarn "where <impl> is atlas, threaded-atlas or reference" |
126 |
+ die "setup failed" |
127 |
+ fi |
128 |
+ fi |
129 |
+ |
130 |
+ if use blas; then |
131 |
+ local myblas=$(eselect blas show) |
132 |
+ if [[ -z "${myblas/.*reference.*/}" ]] && \ |
133 |
+ [[ -z "${myblas/.*atlas.*/}" ]]; then |
134 |
+ ewarn "You need to set blas to atlas or reference. Do:" |
135 |
+ ewarn " eselect blas set <impl>" |
136 |
+ ewarn "where <impl> is atlas, threaded-atlas or reference" |
137 |
+ die "setup failed" |
138 |
+ fi |
139 |
+ fi |
140 |
+ |
141 |
+ python-single-r1_pkg_setup |
142 |
+} |
143 |
+ |
144 |
+src_prepare() { |
145 |
+ # Fix unversioned python calls |
146 |
+ sed -e "s:=python3:=${EPYTHON}:" -i "${S}/lib/init/grass.sh" || die |
147 |
+ sed -e "s:= python3:= ${EPYTHON}:" -i "${S}/include/Make/Platform.make.in" || die |
148 |
+ |
149 |
+ default |
150 |
+ eautoreconf |
151 |
+ |
152 |
+ ebegin "Fixing python shebangs" |
153 |
+ python_fix_shebang -q "${S}" |
154 |
+ eend $? |
155 |
+ |
156 |
+ # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3 |
157 |
+ shopt -s nullglob |
158 |
+ local mesa_cards=$(echo -n /dev/dri/card* /dev/dri/render* | sed 's/ /:/g') |
159 |
+ if test -n "${mesa_cards}"; then |
160 |
+ addpredict "${mesa_cards}" |
161 |
+ fi |
162 |
+ local ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g') |
163 |
+ if test -n "${ati_cards}"; then |
164 |
+ addpredict "${ati_cards}" |
165 |
+ fi |
166 |
+ shopt -u nullglob |
167 |
+ addpredict /dev/nvidiactl |
168 |
+} |
169 |
+ |
170 |
+src_configure() { |
171 |
+ if use X; then |
172 |
+ local WX_BUILD=yes |
173 |
+ setup-wxwidgets |
174 |
+ fi |
175 |
+ |
176 |
+ addwrite /dev/dri/renderD128 |
177 |
+ |
178 |
+ local myeconfargs=( |
179 |
+ --enable-shared |
180 |
+ --disable-w11 |
181 |
+ --without-opendwg |
182 |
+ --with-regex |
183 |
+ --with-gdal="${EPREFIX}"/usr/bin/gdal-config |
184 |
+ --with-proj-includes="${EPREFIX}"/usr/include/proj |
185 |
+ --with-proj-libs="${EPREFIX}"/usr/$(get_libdir) |
186 |
+ --with-proj-share="${EPREFIX}"/usr/share/proj/ |
187 |
+ $(use_with cxx) |
188 |
+ $(use_with tiff) |
189 |
+ $(use_with png) |
190 |
+ $(use_with postgres) |
191 |
+ $(use_with mysql) |
192 |
+ $(use_with mysql mysql-includes "${EPREFIX}"/usr/include/mysql) |
193 |
+ $(use_with sqlite) |
194 |
+ $(use_with opengl) |
195 |
+ $(use_with odbc) |
196 |
+ $(use_with fftw) |
197 |
+ $(use_with blas) |
198 |
+ $(use_with lapack) |
199 |
+ $(use_with X cairo) |
200 |
+ $(use_with truetype freetype) |
201 |
+ $(use_with truetype freetype-includes "${EPREFIX}"/usr/include/freetype2) |
202 |
+ $(use_with nls) |
203 |
+ $(use_with readline) |
204 |
+ $(use_with threads pthread) |
205 |
+ $(use_with openmp) |
206 |
+ $(use_with opencl) |
207 |
+ $(use_with liblas liblas "${EPREFIX}"/usr/bin/liblas-config) |
208 |
+ $(use_with X wxwidgets "${WX_CONFIG}") |
209 |
+ $(use_with netcdf netcdf "${EPREFIX}"/usr/bin/nc-config) |
210 |
+ $(use_with geos geos "${EPREFIX}"/usr/bin/geos-config) |
211 |
+ $(use_with X x) |
212 |
+ $(use_with zstd) |
213 |
+ ) |
214 |
+ econf "${myeconfargs[@]}" |
215 |
+} |
216 |
+ |
217 |
+src_compile() { |
218 |
+ # we don't want to link against embedded mysql lib |
219 |
+ emake CC="$(tc-getCC)" MYSQLDLIB="" |
220 |
+} |
221 |
+ |
222 |
+src_install() { |
223 |
+ emake DESTDIR="${ED}" \ |
224 |
+ INST_DIR=/usr/$(get_libdir)/${MY_PM} \ |
225 |
+ prefix=/usr/ BINDIR=/usr/bin \ |
226 |
+ install |
227 |
+ |
228 |
+ pushd "${ED}"/usr/$(get_libdir)/${MY_PM} >/dev/null || die |
229 |
+ |
230 |
+ local HTML_DOCS=( docs/html/. ) |
231 |
+ einstalldocs |
232 |
+ |
233 |
+ # translations |
234 |
+ if use nls; then |
235 |
+ insinto /usr/share/locale |
236 |
+ doins -r locale/. |
237 |
+ fi |
238 |
+ |
239 |
+ popd >/dev/null || die |
240 |
+ |
241 |
+ # link libraries in the ~standard~ place |
242 |
+ local f file |
243 |
+ for f in "${ED}"/usr/$(get_libdir)/${MY_PM}/lib/*; do |
244 |
+ file="${f##*/}" |
245 |
+ dosym ${MY_PM}/lib/${file} /usr/$(get_libdir)/${file} |
246 |
+ done |
247 |
+ |
248 |
+ # link headers in the ~standard~ place |
249 |
+ dodir /usr/include/ |
250 |
+ dosym ../$(get_libdir)/${MY_PM}/include/grass /usr/include/grass |
251 |
+ |
252 |
+ # fix paths in addons makefile includes |
253 |
+ local scriptMakeDir="${ED}"/usr/$(get_libdir)/${MY_PM}/include/Make/ |
254 |
+ for f in "${scriptMakeDir}"/*; do |
255 |
+ file="${f##*/}" |
256 |
+ echo sed -i "s|${ED}|/|g" "${scriptMakeDir}/${file}" || die |
257 |
+ sed -i "s|${ED}|/|g" "${scriptMakeDir}/${file}" || die |
258 |
+ done |
259 |
+ |
260 |
+ # get proper folder for grass path in script |
261 |
+ local gisbase=/usr/$(get_libdir)/${MY_PM} |
262 |
+ sed -e "s:GISBASE = os.path.normpath(\"${D}/usr/$(get_libdir)/${MY_PM}\"):\ |
263 |
+GISBASE = os.path.normpath(\"${gisbase}\"):" \ |
264 |
+ -i "${ED}"/usr/bin/${MY_PM} || die |
265 |
+ |
266 |
+ # get proper fonts path for fontcap |
267 |
+ sed -i \ |
268 |
+ -e "s|${ED}/usr/${MY_PM}|${EPREFIX}/usr/$(get_libdir)/${MY_PM}|" \ |
269 |
+ "${ED}"${gisbase}/etc/fontcap || die |
270 |
+ |
271 |
+ # set proper python interpreter |
272 |
+ sed -e "s:os.environ\[\"GRASS_PYTHON\"\] = \"python3\":\ |
273 |
+os.environ\[\"GRASS_PYTHON\"\] = \"${EPYTHON}\":" \ |
274 |
+ -i "${ED}"/usr/bin/${MY_PM} || die |
275 |
+ |
276 |
+ # set proper GISDBASE directory path in the demolocation .grassrc78 file |
277 |
+ sed -e "s:GISDBASE\:.*$:GISDBASE\: ${gisbase}:" \ |
278 |
+ -i "${ED}"${gisbase}/demolocation/.grassrc78 || die |
279 |
+ |
280 |
+ if use X; then |
281 |
+ local GUI="-gui" |
282 |
+ [[ ${WX_BUILD} == yes ]] && GUI="-wxpython" |
283 |
+ make_desktop_entry "/usr/bin/${MY_PM} ${GUI}" "${PN}" "${PN}-48x48" "Science;Education" |
284 |
+ doicon -s 48 gui/icons/${PN}-48x48.png |
285 |
+ fi |
286 |
+ |
287 |
+ # install .pc file so other apps know where to look for grass |
288 |
+ insinto /usr/$(get_libdir)/pkgconfig/ |
289 |
+ doins grass.pc |
290 |
+ |
291 |
+ # fix weird +x on tcl scripts |
292 |
+ find "${ED}" -name "*.tcl" -exec chmod +r-x '{}' \; || die |
293 |
+} |
294 |
+ |
295 |
+pkg_postinst() { |
296 |
+ use X && xdg_pkg_postinst |
297 |
+} |
298 |
+ |
299 |
+pkg_postrm() { |
300 |
+ use X && xdg_pkg_postrm |
301 |
+} |