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