1 |
commit: 4db707b07e1e3c905187a8023a0c255ab294d9a0 |
2 |
Author: Mario Haustein <mario.haustein <AT> hrz <DOT> tu-chemnitz <DOT> de> |
3 |
AuthorDate: Thu Dec 30 20:48:27 2021 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Sun Jan 2 07:02:55 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4db707b0 |
7 |
|
8 |
sci-geosciences/grass: remove old |
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 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
13 |
|
14 |
sci-geosciences/grass/Manifest | 1 - |
15 |
sci-geosciences/grass/grass-7.8.5-r1.ebuild | 269 ---------------------------- |
16 |
2 files changed, 270 deletions(-) |
17 |
|
18 |
diff --git a/sci-geosciences/grass/Manifest b/sci-geosciences/grass/Manifest |
19 |
index a899a616598a..fb08af1e1a26 100644 |
20 |
--- a/sci-geosciences/grass/Manifest |
21 |
+++ b/sci-geosciences/grass/Manifest |
22 |
@@ -1,2 +1 @@ |
23 |
-DIST grass-7.8.5.tar.gz 61801712 BLAKE2B d7a929e28ea050285f47dd84093c6db85e00aeab6c397fbb63ac0e6ccac391d2dcad0d3fad18924ecae74b57638b7e3ccf1c8ef4a3a44e63b32f5651bf3f6c71 SHA512 054923e31c163b50537e89636da97cdb705f3a77e566ef869b8aa77303b1c6fa3040f198a2cdc639b773843fe38e50c40149ef683beb0cd2dcf1ca2f77d3dd65 |
24 |
DIST grass-7.8.6.tar.gz 66331264 BLAKE2B bb5a3387f74bc30b7ce3230765cecdc7e61ded8693d888e6cefc2d491022496409d053e170293fcef392a9c9178a41b070767e1ce90b57b448b189c9e16a2761 SHA512 6db10a20e5b70f0ce9a8fc4d6966c6f078453a88fa8f0577c1c62303f9787fa3bf3369e281f7ca864280c865e3ef022c51d8805d1258ea04da45e63cd34c27df |
25 |
|
26 |
diff --git a/sci-geosciences/grass/grass-7.8.5-r1.ebuild b/sci-geosciences/grass/grass-7.8.5-r1.ebuild |
27 |
deleted file mode 100644 |
28 |
index d1341ec38da6..000000000000 |
29 |
--- a/sci-geosciences/grass/grass-7.8.5-r1.ebuild |
30 |
+++ /dev/null |
31 |
@@ -1,269 +0,0 @@ |
32 |
-# Copyright 1999-2021 Gentoo Authors |
33 |
-# Distributed under the terms of the GNU General Public License v2 |
34 |
- |
35 |
-EAPI=7 |
36 |
- |
37 |
-PYTHON_COMPAT=( python3_{7..9} ) |
38 |
-PYTHON_REQ_USE="sqlite" # bug 572440 |
39 |
-WANT_AUTOCONF="2.1" |
40 |
-WX_GTK_VER="3.0-gtk3" |
41 |
- |
42 |
-inherit autotools desktop flag-o-matic 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}-7.8-flock.patch" |
116 |
- # bug 792801 |
117 |
- "${FILESDIR}/${PN}-7.8.5-bool.patch" |
118 |
-) |
119 |
- |
120 |
-pkg_setup() { |
121 |
- if use lapack; then |
122 |
- local mylapack=$(eselect lapack show) |
123 |
- if [[ -z "${mylapack/.*reference.*/}" ]] && \ |
124 |
- [[ -z "${mylapack/.*atlas.*/}" ]]; then |
125 |
- ewarn "You need to set lapack to atlas or reference. Do:" |
126 |
- ewarn " eselect lapack set <impl>" |
127 |
- ewarn "where <impl> is atlas, threaded-atlas or reference" |
128 |
- die "setup failed" |
129 |
- fi |
130 |
- fi |
131 |
- |
132 |
- if use blas; then |
133 |
- local myblas=$(eselect blas show) |
134 |
- if [[ -z "${myblas/.*reference.*/}" ]] && \ |
135 |
- [[ -z "${myblas/.*atlas.*/}" ]]; then |
136 |
- ewarn "You need to set blas to atlas or reference. Do:" |
137 |
- ewarn " eselect blas set <impl>" |
138 |
- ewarn "where <impl> is atlas, threaded-atlas or reference" |
139 |
- die "setup failed" |
140 |
- fi |
141 |
- fi |
142 |
- |
143 |
- python-single-r1_pkg_setup |
144 |
-} |
145 |
- |
146 |
-src_prepare() { |
147 |
- # Fix unversioned python calls |
148 |
- sed -e "s:=python3:=${EPYTHON}:" -i "${S}/lib/init/grass.sh" || die |
149 |
- sed -e "s:= python3:= ${EPYTHON}:" -i "${S}/include/Make/Platform.make.in" || die |
150 |
- |
151 |
- default |
152 |
- eautoreconf |
153 |
- |
154 |
- ebegin "Fixing python shebangs" |
155 |
- python_fix_shebang -q "${S}" |
156 |
- eend $? |
157 |
- |
158 |
- # For testsuite, see https://bugs.gentoo.org/show_bug.cgi?id=500580#c3 |
159 |
- shopt -s nullglob |
160 |
- local mesa_cards=$(echo -n /dev/dri/card* /dev/dri/render* | sed 's/ /:/g') |
161 |
- if test -n "${mesa_cards}"; then |
162 |
- addpredict "${mesa_cards}" |
163 |
- fi |
164 |
- local ati_cards=$(echo -n /dev/ati/card* | sed 's/ /:/g') |
165 |
- if test -n "${ati_cards}"; then |
166 |
- addpredict "${ati_cards}" |
167 |
- fi |
168 |
- shopt -u nullglob |
169 |
- addpredict /dev/nvidiactl |
170 |
-} |
171 |
- |
172 |
-src_configure() { |
173 |
- if use X; then |
174 |
- local WX_BUILD=yes |
175 |
- setup-wxwidgets |
176 |
- fi |
177 |
- |
178 |
- addwrite /dev/dri/renderD128 |
179 |
- |
180 |
- local myeconfargs=( |
181 |
- --enable-shared |
182 |
- --disable-w11 |
183 |
- --without-opendwg |
184 |
- --with-regex |
185 |
- --with-gdal="${EPREFIX}"/usr/bin/gdal-config |
186 |
- --with-proj-includes="${EPREFIX}"/usr/include/proj |
187 |
- --with-proj-libs="${EPREFIX}"/usr/$(get_libdir) |
188 |
- --with-proj-share="${EPREFIX}"/usr/share/proj/ |
189 |
- $(use_with cxx) |
190 |
- $(use_with tiff) |
191 |
- $(use_with png) |
192 |
- $(use_with postgres) |
193 |
- $(use_with mysql) |
194 |
- $(use_with mysql mysql-includes "${EPREFIX}"/usr/include/mysql) |
195 |
- $(use_with sqlite) |
196 |
- $(use_with opengl) |
197 |
- $(use_with odbc) |
198 |
- $(use_with fftw) |
199 |
- $(use_with blas) |
200 |
- $(use_with lapack) |
201 |
- $(use_with X cairo) |
202 |
- $(use_with truetype freetype) |
203 |
- $(use_with truetype freetype-includes "${EPREFIX}"/usr/include/freetype2) |
204 |
- $(use_with nls) |
205 |
- $(use_with readline) |
206 |
- $(use_with threads pthread) |
207 |
- $(use_with openmp) |
208 |
- $(use_with opencl) |
209 |
- $(use_with liblas liblas "${EPREFIX}"/usr/bin/liblas-config) |
210 |
- $(use_with X wxwidgets "${WX_CONFIG}") |
211 |
- $(use_with netcdf netcdf "${EPREFIX}"/usr/bin/nc-config) |
212 |
- $(use_with geos geos "${EPREFIX}"/usr/bin/geos-config) |
213 |
- $(use_with X x) |
214 |
- $(use_with zstd) |
215 |
- ) |
216 |
- econf "${myeconfargs[@]}" |
217 |
-} |
218 |
- |
219 |
-src_compile() { |
220 |
- # we don't want to link against embedded mysql lib |
221 |
- emake CC="$(tc-getCC)" MYSQLDLIB="" |
222 |
-} |
223 |
- |
224 |
-src_install() { |
225 |
- emake DESTDIR="${ED}" \ |
226 |
- INST_DIR="${ED}"/usr/$(get_libdir)/${MY_PM} \ |
227 |
- prefix="${ED}"/usr/ BINDIR="${ED}"/usr/bin \ |
228 |
- PREFIX="${ED}"/usr/ \ |
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/${MY_PM} || 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}"/usr/$(get_libdir)/${MY_PM}/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/${MY_PM} || die |
278 |
- |
279 |
- if use X; then |
280 |
- local GUI="-gui" |
281 |
- [[ ${WX_BUILD} == yes ]] && GUI="-wxpython" |
282 |
- make_desktop_entry "/usr/bin/${MY_PM} ${GUI}" "${PN}" "${PN}-48x48" "Science;Education" |
283 |
- doicon -s 48 gui/icons/${PN}-48x48.png |
284 |
- fi |
285 |
- |
286 |
- # install .pc file so other apps know where to look for grass |
287 |
- insinto /usr/$(get_libdir)/pkgconfig/ |
288 |
- doins grass.pc |
289 |
- |
290 |
- # fix weird +x on tcl scripts |
291 |
- find "${ED}" -name "*.tcl" -exec chmod +r-x '{}' \; || die |
292 |
-} |
293 |
- |
294 |
-pkg_postinst() { |
295 |
- use X && xdg_pkg_postinst |
296 |
-} |
297 |
- |
298 |
-pkg_postrm() { |
299 |
- use X && xdg_pkg_postrm |
300 |
-} |