Gentoo Archives: gentoo-commits

From: Andrey Grozin <grozin@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/asymptote/files/, media-gfx/asymptote/
Date: Tue, 01 Dec 2020 07:33:47
Message-Id: 1606807989.85abc518f008024ab2b3a123d3703ca2922cf9ff.grozin@gentoo
1 commit: 85abc518f008024ab2b3a123d3703ca2922cf9ff
2 Author: Andrey Grozin <grozin <AT> gentoo <DOT> org>
3 AuthorDate: Tue Dec 1 07:33:09 2020 +0000
4 Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org>
5 CommitDate: Tue Dec 1 07:33:09 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=85abc518
7
8 media-gfx/asymptote: clean old versions
9
10 Package-Manager: Portage-3.0.10, Repoman-3.0.2
11 Signed-off-by: Andrey Grozin <grozin <AT> gentoo.org>
12
13 media-gfx/asymptote/Manifest | 2 -
14 media-gfx/asymptote/asymptote-2.61.ebuild | 211 ---------------------
15 media-gfx/asymptote/asymptote-2.62.ebuild | 211 ---------------------
16 .../asymptote/files/asymptote-2.61-info.patch | 13 --
17 .../asymptote/files/asymptote-2.61-xdg-utils.patch | 22 ---
18 .../asymptote/files/asymptote-2.62-info.patch | 13 --
19 .../asymptote/files/asymptote-2.62-xdg-utils.patch | 22 ---
20 7 files changed, 494 deletions(-)
21
22 diff --git a/media-gfx/asymptote/Manifest b/media-gfx/asymptote/Manifest
23 index 96bdef79e14..e9051c787ba 100644
24 --- a/media-gfx/asymptote/Manifest
25 +++ b/media-gfx/asymptote/Manifest
26 @@ -1,4 +1,2 @@
27 -DIST asymptote-2.61.src.tgz 4623504 BLAKE2B 8432f07ce21f630c5bdae609650c0bb2bcd237a121df68030dc19d1cae986f0bfa56dd0e241570809f9fcb202440e8b9b3c6d47a22eeaabe3eb9523360a166ca SHA512 34bb610360b4536da70ca9edf1e069ebbf0c9225948b92b3d59ea25e8684587364fa7bbb03909ba02617e6ee81d41a2e530c9ed639141e4cda42096143cab5f7
28 -DIST asymptote-2.62.src.tgz 4625853 BLAKE2B 49a5c75f936149139576cc224b005e76d2465a6c813bcb152f2534e98e042685c1500eafb0954b9e53ac0e667b47ab88a8b3387f1627d58828008d0e4d4cc0c8 SHA512 f7e817cdbb3c079a10c5f6f56a1eb47b1aaf8230902c06870bc8feacfed5f7af3d8ed22e4c60cc7130828ced8d36ec035533de1074cb049d3de9006ee542ac2e
29 DIST asymptote-2.65.src.tgz 4640419 BLAKE2B a508532b9697a0744d48f8109d5b04ca71eb1ee7a08f15eccd2b95d63c16c980621ef03d01a03917a767c774f14a239a13f8fe50ad98b154b092f710917af1ad SHA512 c6879689192c1646a318b389de222accc55c8d5e9df17fab3c88c37f627d2cff8133cdefe9e6dec2784cf72edf261e557ad83f7fac6e67fd49c483e9d8971026
30 DIST asymptote-2.67.src.tgz 4668696 BLAKE2B 30be754a0e5869caad4d605f162dffe688d2dc09a0163a8c37d15fd9d6dd05652b7b0b2710ab31edaa8f4b36484df256d032f8826f3547e755eb90e5dbb179ec SHA512 5854ce51bc7a3d330eeb0887376645c3d292a368b06d01ec84c15ee5beee90ae429abfee1bff5025bdfb51edfa7f66e535c1187f66440df0c6626c79e3de6210
31
32 diff --git a/media-gfx/asymptote/asymptote-2.61.ebuild b/media-gfx/asymptote/asymptote-2.61.ebuild
33 deleted file mode 100644
34 index 0117ea06a1d..00000000000
35 --- a/media-gfx/asymptote/asymptote-2.61.ebuild
36 +++ /dev/null
37 @@ -1,211 +0,0 @@
38 -# Copyright 1999-2020 Gentoo Authors
39 -# Distributed under the terms of the GNU General Public License v2
40 -
41 -EAPI=7
42 -
43 -PYTHON_COMPAT=( python3_{6,7} )
44 -
45 -inherit autotools elisp-common latex-package python-r1
46 -
47 -DESCRIPTION="A vector graphics language that provides a framework for technical drawing"
48 -HOMEPAGE="https://asymptote.sourceforge.io/"
49 -SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz"
50 -
51 -LICENSE="GPL-3"
52 -SLOT="0"
53 -KEYWORDS="amd64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
54 -IUSE="+boehm-gc doc emacs examples fftw gsl +imagemagick latex offscreen +opengl python sigsegv svg test vim-syntax X"
55 -RESTRICT="!test? ( test )"
56 -
57 -REQUIRED_USE="
58 - ${PYTHON_REQUIRED_USE}
59 - offscreen? ( opengl )
60 - doc? ( boehm-gc )"
61 -
62 -RDEPEND="
63 - >=sys-libs/ncurses-5.4-r5:0=
64 - >=sys-libs/readline-4.3-r5:0=
65 - imagemagick? ( media-gfx/imagemagick[png] )
66 - opengl? ( media-libs/mesa[X(+)] media-libs/freeglut media-libs/glew:0 media-libs/glm )
67 - offscreen? ( media-libs/mesa[osmesa] )
68 - svg? ( app-text/dvisvgm )
69 - sigsegv? ( dev-libs/libsigsegv )
70 - boehm-gc? ( >=dev-libs/boehm-gc-7.0[cxx,threads] )
71 - fftw? ( >=sci-libs/fftw-3.0.1 )
72 - gsl? ( sci-libs/gsl )
73 - python? ( ${PYTHON_DEPS} )
74 - X? (
75 - ${PYTHON_DEPS}
76 - dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets,svg]
77 - dev-python/numpy
78 - dev-python/pycson
79 - >=gnome-base/librsvg-2.40
80 - )
81 - latex? (
82 - virtual/latex-base
83 - >=dev-texlive/texlive-latexextra-2013
84 - )
85 - emacs? ( >=app-editors/emacs-23.1:* )
86 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
87 -DEPEND="${RDEPEND}
88 - doc? (
89 - dev-lang/perl
90 - media-gfx/imagemagick[png]
91 - virtual/texi2dvi
92 - virtual/latex-base
93 - app-text/ghostscript-gpl )
94 - test? ( app-text/ghostscript-gpl )"
95 -
96 -TEXMF=/usr/share/texmf-site
97 -
98 -PATCHES=(
99 - # Changing pdf, ps, image viewers to xdg-open
100 - "${FILESDIR}/${P}-xdg-utils.patch"
101 -
102 - # Bug #322473
103 - "${FILESDIR}/${P}-info.patch"
104 -)
105 -
106 -src_prepare() {
107 - sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \
108 - -i configure.ac \
109 - || die "sed configure.ac failed"
110 -
111 - default
112 - eautoreconf
113 -}
114 -
115 -src_configure() {
116 - # for the CPPFLAGS see
117 - # https://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349
118 - econf \
119 - CPPFLAGS=-DHAVE_SYS_TYPES_H \
120 - CFLAGS="${CXXFLAGS}" \
121 - --disable-gc-debug \
122 - $(use_enable boehm-gc gc system) \
123 - $(use_enable fftw) \
124 - $(use_enable gsl) \
125 - $(use_enable opengl gl) \
126 - $(use_enable offscreen) \
127 - $(use_enable sigsegv)
128 -}
129 -
130 -src_compile() {
131 - default
132 -
133 - cd doc || die
134 - emake asy.1
135 - if use doc; then
136 - # info
137 - einfo "Making info"
138 - emake ${PN}.info
139 - cd FAQ || die
140 - emake
141 - cd .. || die
142 - # pdf
143 - einfo "Making pdf docs"
144 - export VARTEXFONTS="${T}"/fonts
145 - # see bug #260606
146 - emake -j1 asymptote.pdf
147 - emake CAD.pdf
148 - fi
149 - cd .. || die
150 -
151 - if use emacs; then
152 - einfo "Compiling emacs lisp files"
153 - elisp-compile base/*.el
154 - fi
155 -}
156 -
157 -src_install() {
158 - # the program
159 - dobin asy
160 -
161 - # .asy files
162 - insinto /usr/share/${PN}
163 - doins base/*.asy
164 -
165 - # documentation
166 - dodoc BUGS ChangeLog README ReleaseNotes TODO
167 - doman doc/asy.1
168 -
169 - # X GUI
170 - if use X; then
171 - insinto /usr/share/${PN}
172 - doins -r GUI
173 - chmod +x "${D}"/usr/share/${PN}/GUI/xasy.py
174 - dosym ../share/${PN}/GUI/xasy.py /usr/bin/xasy
175 - doman doc/xasy.1x
176 - fi
177 -
178 - # examples
179 - if use examples; then
180 - insinto /usr/share/${PN}/examples
181 - doins \
182 - examples/*.asy \
183 - doc/*.asy \
184 - doc/*.csv \
185 - doc/*.dat \
186 - doc/extra/*.asy
187 - insinto /usr/share/${PN}/examples/animations
188 - doins examples/animations/*.asy
189 - fi
190 -
191 - # LaTeX style
192 - if use latex; then
193 - cd doc || die
194 - insinto "${TEXMF}"/tex/latex/${PN}
195 - doins ${PN}.sty asycolors.sty
196 - if use examples; then
197 - insinto /usr/share/${PN}/examples
198 - doins latexusage.tex
199 - insinto /usr/share/${PN}/examples/animations
200 - doins ../examples/animations/*.tex
201 - fi
202 - cd .. || die
203 - fi
204 -
205 - # asymptote.py
206 - if use python; then
207 - python_foreach_impl python_domodule base/${PN}.py
208 - fi
209 -
210 - # emacs mode
211 - if use emacs; then
212 - elisp-install ${PN} base/*.el base/*.elc
213 - elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
214 - fi
215 -
216 - # vim syntax
217 - if use vim-syntax; then
218 - insinto /usr/share/vim/vimfiles/syntax
219 - doins base/asy.vim
220 - insinto /usr/share/vim/vimfiles/ftdetect
221 - doins "${FILESDIR}"/asy-ftd.vim
222 - fi
223 -
224 - # extra documentation
225 - if use doc; then
226 - cd doc || die
227 - doinfo ${PN}.info*
228 - dodoc ${PN}.pdf CAD.pdf
229 - cd FAQ || die
230 - dodoc asy-faq.ascii
231 - doinfo asy-faq.info
232 - docinto html/FAQ
233 - dodoc asy-faq.html/*
234 - fi
235 -}
236 -
237 -pkg_postinst() {
238 - use latex && latex-package_rehash
239 - use emacs && elisp-site-regen
240 -
241 - elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer'
242 - elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer'
243 -}
244 -
245 -pkg_postrm() {
246 - use latex && latex-package_rehash
247 - use emacs && elisp-site-regen
248 -}
249
250 diff --git a/media-gfx/asymptote/asymptote-2.62.ebuild b/media-gfx/asymptote/asymptote-2.62.ebuild
251 deleted file mode 100644
252 index af22df7d3e9..00000000000
253 --- a/media-gfx/asymptote/asymptote-2.62.ebuild
254 +++ /dev/null
255 @@ -1,211 +0,0 @@
256 -# Copyright 1999-2020 Gentoo Authors
257 -# Distributed under the terms of the GNU General Public License v2
258 -
259 -EAPI=7
260 -
261 -PYTHON_COMPAT=( python3_{6,7} )
262 -
263 -inherit autotools elisp-common latex-package python-r1
264 -
265 -DESCRIPTION="A vector graphics language that provides a framework for technical drawing"
266 -HOMEPAGE="https://asymptote.sourceforge.io/"
267 -SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz"
268 -
269 -LICENSE="GPL-3"
270 -SLOT="0"
271 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
272 -IUSE="+boehm-gc doc emacs examples fftw gsl +imagemagick latex offscreen +opengl python sigsegv svg test vim-syntax X"
273 -RESTRICT="!test? ( test )"
274 -
275 -REQUIRED_USE="
276 - ${PYTHON_REQUIRED_USE}
277 - offscreen? ( opengl )
278 - doc? ( boehm-gc )"
279 -
280 -RDEPEND="
281 - >=sys-libs/ncurses-5.4-r5:0=
282 - >=sys-libs/readline-4.3-r5:0=
283 - imagemagick? ( media-gfx/imagemagick[png] )
284 - opengl? ( media-libs/mesa[X(+)] media-libs/freeglut media-libs/glew:0 media-libs/glm )
285 - offscreen? ( media-libs/mesa[osmesa] )
286 - svg? ( app-text/dvisvgm )
287 - sigsegv? ( dev-libs/libsigsegv )
288 - boehm-gc? ( >=dev-libs/boehm-gc-7.0[cxx,threads] )
289 - fftw? ( >=sci-libs/fftw-3.0.1 )
290 - gsl? ( sci-libs/gsl )
291 - python? ( ${PYTHON_DEPS} )
292 - X? (
293 - ${PYTHON_DEPS}
294 - dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets,svg]
295 - dev-python/numpy
296 - dev-python/pycson
297 - >=gnome-base/librsvg-2.40
298 - )
299 - latex? (
300 - virtual/latex-base
301 - >=dev-texlive/texlive-latexextra-2013
302 - )
303 - emacs? ( >=app-editors/emacs-23.1:* )
304 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
305 -DEPEND="${RDEPEND}
306 - doc? (
307 - dev-lang/perl
308 - media-gfx/imagemagick[png]
309 - virtual/texi2dvi
310 - virtual/latex-base
311 - app-text/ghostscript-gpl )
312 - test? ( app-text/ghostscript-gpl )"
313 -
314 -TEXMF=/usr/share/texmf-site
315 -
316 -PATCHES=(
317 - # Changing pdf, ps, image viewers to xdg-open
318 - "${FILESDIR}/${P}-xdg-utils.patch"
319 -
320 - # Bug #322473
321 - "${FILESDIR}/${P}-info.patch"
322 -)
323 -
324 -src_prepare() {
325 - sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \
326 - -i configure.ac \
327 - || die "sed configure.ac failed"
328 -
329 - default
330 - eautoreconf
331 -}
332 -
333 -src_configure() {
334 - # for the CPPFLAGS see
335 - # https://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349
336 - econf \
337 - CPPFLAGS=-DHAVE_SYS_TYPES_H \
338 - CFLAGS="${CXXFLAGS}" \
339 - --disable-gc-debug \
340 - $(use_enable boehm-gc gc system) \
341 - $(use_enable fftw) \
342 - $(use_enable gsl) \
343 - $(use_enable opengl gl) \
344 - $(use_enable offscreen) \
345 - $(use_enable sigsegv)
346 -}
347 -
348 -src_compile() {
349 - default
350 -
351 - cd doc || die
352 - emake asy.1
353 - if use doc; then
354 - # info
355 - einfo "Making info"
356 - emake ${PN}.info
357 - cd FAQ || die
358 - emake
359 - cd .. || die
360 - # pdf
361 - einfo "Making pdf docs"
362 - export VARTEXFONTS="${T}"/fonts
363 - # see bug #260606
364 - emake -j1 asymptote.pdf
365 - emake CAD.pdf
366 - fi
367 - cd .. || die
368 -
369 - if use emacs; then
370 - einfo "Compiling emacs lisp files"
371 - elisp-compile base/*.el
372 - fi
373 -}
374 -
375 -src_install() {
376 - # the program
377 - dobin asy
378 -
379 - # .asy files
380 - insinto /usr/share/${PN}
381 - doins base/*.asy
382 -
383 - # documentation
384 - dodoc BUGS ChangeLog README ReleaseNotes TODO
385 - doman doc/asy.1
386 -
387 - # X GUI
388 - if use X; then
389 - insinto /usr/share/${PN}
390 - doins -r GUI
391 - chmod +x "${D}"/usr/share/${PN}/GUI/xasy.py
392 - dosym ../share/${PN}/GUI/xasy.py /usr/bin/xasy
393 - doman doc/xasy.1x
394 - fi
395 -
396 - # examples
397 - if use examples; then
398 - insinto /usr/share/${PN}/examples
399 - doins \
400 - examples/*.asy \
401 - doc/*.asy \
402 - doc/*.csv \
403 - doc/*.dat \
404 - doc/extra/*.asy
405 - insinto /usr/share/${PN}/examples/animations
406 - doins examples/animations/*.asy
407 - fi
408 -
409 - # LaTeX style
410 - if use latex; then
411 - cd doc || die
412 - insinto "${TEXMF}"/tex/latex/${PN}
413 - doins ${PN}.sty asycolors.sty
414 - if use examples; then
415 - insinto /usr/share/${PN}/examples
416 - doins latexusage.tex
417 - insinto /usr/share/${PN}/examples/animations
418 - doins ../examples/animations/*.tex
419 - fi
420 - cd .. || die
421 - fi
422 -
423 - # asymptote.py
424 - if use python; then
425 - python_foreach_impl python_domodule base/${PN}.py
426 - fi
427 -
428 - # emacs mode
429 - if use emacs; then
430 - elisp-install ${PN} base/*.el base/*.elc
431 - elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
432 - fi
433 -
434 - # vim syntax
435 - if use vim-syntax; then
436 - insinto /usr/share/vim/vimfiles/syntax
437 - doins base/asy.vim
438 - insinto /usr/share/vim/vimfiles/ftdetect
439 - doins "${FILESDIR}"/asy-ftd.vim
440 - fi
441 -
442 - # extra documentation
443 - if use doc; then
444 - cd doc || die
445 - doinfo ${PN}.info*
446 - dodoc ${PN}.pdf CAD.pdf
447 - cd FAQ || die
448 - dodoc asy-faq.ascii
449 - doinfo asy-faq.info
450 - docinto html/FAQ
451 - dodoc asy-faq.html/*
452 - fi
453 -}
454 -
455 -pkg_postinst() {
456 - use latex && latex-package_rehash
457 - use emacs && elisp-site-regen
458 -
459 - elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer'
460 - elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer'
461 -}
462 -
463 -pkg_postrm() {
464 - use latex && latex-package_rehash
465 - use emacs && elisp-site-regen
466 -}
467
468 diff --git a/media-gfx/asymptote/files/asymptote-2.61-info.patch b/media-gfx/asymptote/files/asymptote-2.61-info.patch
469 deleted file mode 100644
470 index 0046ab9628a..00000000000
471 --- a/media-gfx/asymptote/files/asymptote-2.61-info.patch
472 +++ /dev/null
473 @@ -1,13 +0,0 @@
474 -Index: asymptote-2.61/doc/asymptote.texi
475 -===================================================================
476 ---- asymptote-2.61.orig/doc/asymptote.texi
477 -+++ asymptote-2.61/doc/asymptote.texi
478 -@@ -23,7 +23,7 @@ file LICENSE in the top-level source dir
479 -
480 - @dircategory Languages
481 - @direntry
482 --* asymptote: (asymptote/asymptote). Vector graphics language.
483 -+* asymptote: (asymptote). Vector graphics language.
484 - @end direntry
485 -
486 - @titlepage
487
488 diff --git a/media-gfx/asymptote/files/asymptote-2.61-xdg-utils.patch b/media-gfx/asymptote/files/asymptote-2.61-xdg-utils.patch
489 deleted file mode 100644
490 index 269691eecfe..00000000000
491 --- a/media-gfx/asymptote/files/asymptote-2.61-xdg-utils.patch
492 +++ /dev/null
493 @@ -1,22 +0,0 @@
494 -Index: asymptote-2.61/settings.cc
495 -===================================================================
496 ---- asymptote-2.61.orig/settings.cc
497 -+++ asymptote-2.61/settings.cc
498 -@@ -98,13 +98,13 @@ string defaultPSViewer="open";
499 - string defaultPDFViewer="open";
500 - string defaultHTMLViewer="open";
501 - #else
502 --string defaultPSViewer="gv";
503 --string defaultPDFViewer="acroread";
504 --string defaultHTMLViewer="google-chrome";
505 -+string defaultPSViewer="xdg-open";
506 -+string defaultPDFViewer="xdg-open";
507 -+string defaultHTMLViewer="xdg-open";
508 - #endif
509 - string defaultGhostscript="gs";
510 - string defaultGhostscriptLibrary="";
511 --string defaultDisplay="display";
512 -+string defaultDisplay="xdg-open";
513 - string defaultAnimate="animate";
514 - void queryRegistry() {}
515 - const string dirsep="/";
516
517 diff --git a/media-gfx/asymptote/files/asymptote-2.62-info.patch b/media-gfx/asymptote/files/asymptote-2.62-info.patch
518 deleted file mode 100644
519 index ffc8ac7c8fb..00000000000
520 --- a/media-gfx/asymptote/files/asymptote-2.62-info.patch
521 +++ /dev/null
522 @@ -1,13 +0,0 @@
523 -Index: asymptote-2.62/doc/asymptote.texi
524 -===================================================================
525 ---- asymptote-2.62.orig/doc/asymptote.texi
526 -+++ asymptote-2.62/doc/asymptote.texi
527 -@@ -23,7 +23,7 @@ file LICENSE in the top-level source dir
528 -
529 - @dircategory Languages
530 - @direntry
531 --* asymptote: (asymptote/asymptote). Vector graphics language.
532 -+* asymptote: (asymptote). Vector graphics language.
533 - @end direntry
534 -
535 - @titlepage
536
537 diff --git a/media-gfx/asymptote/files/asymptote-2.62-xdg-utils.patch b/media-gfx/asymptote/files/asymptote-2.62-xdg-utils.patch
538 deleted file mode 100644
539 index b26bc78fda2..00000000000
540 --- a/media-gfx/asymptote/files/asymptote-2.62-xdg-utils.patch
541 +++ /dev/null
542 @@ -1,22 +0,0 @@
543 -Index: asymptote-2.62/settings.cc
544 -===================================================================
545 ---- asymptote-2.62.orig/settings.cc
546 -+++ asymptote-2.62/settings.cc
547 -@@ -98,13 +98,13 @@ string defaultPSViewer="open";
548 - string defaultPDFViewer="open";
549 - string defaultHTMLViewer="open";
550 - #else
551 --string defaultPSViewer="gv";
552 --string defaultPDFViewer="acroread";
553 --string defaultHTMLViewer="google-chrome";
554 -+string defaultPSViewer="xdg-open";
555 -+string defaultPDFViewer="xdg-open";
556 -+string defaultHTMLViewer="xdg-open";
557 - #endif
558 - string defaultGhostscript="gs";
559 - string defaultGhostscriptLibrary="";
560 --string defaultDisplay="display";
561 -+string defaultDisplay="xdg-open";
562 - string defaultAnimate="animate";
563 - void queryRegistry() {}
564 - const string dirsep="/";