Gentoo Archives: gentoo-commits

From: Mikle Kolyada <zlogene@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: media-gfx/asymptote/, media-gfx/asymptote/files/
Date: Sun, 19 Jan 2020 16:42:39
Message-Id: 1579452123.8f70fcc1bb5a911bb8997ae54b5db15afb4e617f.zlogene@gentoo
1 commit: 8f70fcc1bb5a911bb8997ae54b5db15afb4e617f
2 Author: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jan 19 16:42:03 2020 +0000
4 Commit: Mikle Kolyada <zlogene <AT> gentoo <DOT> org>
5 CommitDate: Sun Jan 19 16:42:03 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=8f70fcc1
7
8 media-gfx/asymptote: Drop old
9
10 Package-Manager: Portage-2.3.79, Repoman-2.3.16
11 Signed-off-by: Mikle Kolyada <zlogene <AT> gentoo.org>
12
13 media-gfx/asymptote/Manifest | 1 -
14 media-gfx/asymptote/asymptote-2.60.ebuild | 210 ---------------------
15 .../asymptote/files/asymptote-2.60-info.patch | 13 --
16 .../asymptote/files/asymptote-2.60-xdg-utils.patch | 22 ---
17 4 files changed, 246 deletions(-)
18
19 diff --git a/media-gfx/asymptote/Manifest b/media-gfx/asymptote/Manifest
20 index d98d14ac790..990f8767aca 100644
21 --- a/media-gfx/asymptote/Manifest
22 +++ b/media-gfx/asymptote/Manifest
23 @@ -1,2 +1 @@
24 -DIST asymptote-2.60.src.tgz 4650347 BLAKE2B d969e4716a2493ae926ea1f58d0b247986e49a6a1902fb94859a45177ece4f149f5875cf788eace1c27c968652c49b2ace7b98aba02380cf8e1e3d4231560476 SHA512 a0653b9647d8c2a77656ea82faf8b69d28a43cf5ac61cfa9c6c62e2c51b4939e83202b95056495d10bee86a81e48b765ed4604a4d882a47a36b1dd6d5f9ad96b
25 DIST asymptote-2.61.src.tgz 4623504 BLAKE2B 8432f07ce21f630c5bdae609650c0bb2bcd237a121df68030dc19d1cae986f0bfa56dd0e241570809f9fcb202440e8b9b3c6d47a22eeaabe3eb9523360a166ca SHA512 34bb610360b4536da70ca9edf1e069ebbf0c9225948b92b3d59ea25e8684587364fa7bbb03909ba02617e6ee81d41a2e530c9ed639141e4cda42096143cab5f7
26
27 diff --git a/media-gfx/asymptote/asymptote-2.60.ebuild b/media-gfx/asymptote/asymptote-2.60.ebuild
28 deleted file mode 100644
29 index 9d8d5d64326..00000000000
30 --- a/media-gfx/asymptote/asymptote-2.60.ebuild
31 +++ /dev/null
32 @@ -1,210 +0,0 @@
33 -# Copyright 1999-2020 Gentoo Authors
34 -# Distributed under the terms of the GNU General Public License v2
35 -
36 -EAPI=6
37 -
38 -PYTHON_COMPAT=( python3_{6,7} )
39 -
40 -inherit autotools elisp-common latex-package multilib python-r1
41 -
42 -DESCRIPTION="A vector graphics language that provides a framework for technical drawing"
43 -HOMEPAGE="http://asymptote.sourceforge.net/"
44 -SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz"
45 -
46 -LICENSE="GPL-3"
47 -SLOT="0"
48 -KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos"
49 -IUSE="+boehm-gc doc emacs examples fftw gsl +imagemagick latex offscreen +opengl python sigsegv svg test vim-syntax X"
50 -RESTRICT="!test? ( test )"
51 -
52 -REQUIRED_USE="
53 - ${PYTHON_REQUIRED_USE}
54 - offscreen? ( opengl )
55 - doc? ( boehm-gc )"
56 -
57 -RDEPEND="
58 - >=sys-libs/ncurses-5.4-r5:0=
59 - >=sys-libs/readline-4.3-r5:0=
60 - imagemagick? ( media-gfx/imagemagick[png] )
61 - opengl? ( media-libs/mesa[X(+)] media-libs/freeglut media-libs/glew:0 media-libs/glm )
62 - offscreen? ( media-libs/mesa[osmesa] )
63 - svg? ( app-text/dvisvgm )
64 - sigsegv? ( dev-libs/libsigsegv )
65 - boehm-gc? ( >=dev-libs/boehm-gc-7.0[cxx,threads] )
66 - fftw? ( >=sci-libs/fftw-3.0.1 )
67 - gsl? ( sci-libs/gsl )
68 - python? ( ${PYTHON_DEPS} )
69 - X? (
70 - ${PYTHON_DEPS}
71 - dev-python/PyQt5[${PYTHON_USEDEP},gui,widgets,svg]
72 - dev-python/numpy
73 - dev-python/pycson
74 - >=gnome-base/librsvg-2.40
75 - )
76 - latex? (
77 - virtual/latex-base
78 - >=dev-texlive/texlive-latexextra-2013
79 - )
80 - emacs? ( >=app-editors/emacs-23.1:* )
81 - vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )"
82 -DEPEND="${RDEPEND}
83 - doc? (
84 - dev-lang/perl
85 - media-gfx/imagemagick[png]
86 - virtual/texi2dvi
87 - virtual/latex-base
88 - app-text/ghostscript-gpl )
89 - test? ( app-text/ghostscript-gpl )"
90 -
91 -TEXMF=/usr/share/texmf-site
92 -
93 -PATCHES=(
94 - # Changing pdf, ps, image viewers to xdg-open
95 - "${FILESDIR}/${P}-xdg-utils.patch"
96 -
97 - # Bug #322473
98 - "${FILESDIR}/${P}-info.patch"
99 -)
100 -
101 -src_prepare() {
102 - sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \
103 - -i configure.ac \
104 - || die "sed configure.ac failed"
105 -
106 - default
107 - eautoreconf
108 -}
109 -
110 -src_configure() {
111 - # for the CPPFLAGS see
112 - # https://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349
113 - econf \
114 - CPPFLAGS=-DHAVE_SYS_TYPES_H \
115 - CFLAGS="${CXXFLAGS}" \
116 - --disable-gc-debug \
117 - $(use_enable boehm-gc gc system) \
118 - $(use_enable fftw) \
119 - $(use_enable gsl) \
120 - $(use_enable opengl gl) \
121 - $(use_enable offscreen) \
122 - $(use_enable sigsegv)
123 -}
124 -
125 -src_compile() {
126 - default
127 -
128 - cd doc || die
129 - emake asy.1
130 - if use doc; then
131 - # info
132 - einfo "Making info"
133 - emake ${PN}.info
134 - cd FAQ || die
135 - emake
136 - cd .. || die
137 - # pdf
138 - einfo "Making pdf docs"
139 - export VARTEXFONTS="${T}"/fonts
140 - # see bug #260606
141 - emake -j1 asymptote.pdf
142 - emake CAD.pdf
143 - fi
144 - cd .. || die
145 -
146 - if use emacs; then
147 - einfo "Compiling emacs lisp files"
148 - elisp-compile base/*.el
149 - fi
150 -}
151 -
152 -src_install() {
153 - # the program
154 - dobin asy
155 -
156 - # .asy files
157 - insinto /usr/share/${PN}
158 - doins base/*.asy
159 -
160 - # documentation
161 - dodoc BUGS ChangeLog README ReleaseNotes TODO
162 - doman doc/asy.1
163 -
164 - # X GUI
165 - if use X; then
166 - insinto /usr/share/${PN}
167 - doins -r GUI
168 - chmod +x "${D}"usr/share/${PN}/GUI/xasy.py
169 - dosym ../share/${PN}/GUI/xasy.py /usr/bin/xasy
170 - doman doc/xasy.1x
171 - fi
172 -
173 - # examples
174 - if use examples; then
175 - insinto /usr/share/${PN}/examples
176 - doins \
177 - examples/*.asy \
178 - examples/*.eps \
179 - doc/*.asy \
180 - doc/*.csv \
181 - doc/*.dat \
182 - doc/extra/*.asy
183 - insinto /usr/share/${PN}/examples/animations
184 - doins examples/animations/*.asy
185 - fi
186 -
187 - # LaTeX style
188 - if use latex; then
189 - cd doc || die
190 - insinto "${TEXMF}"/tex/latex/${PN}
191 - doins ${PN}.sty asycolors.sty
192 - if use examples; then
193 - insinto /usr/share/${PN}/examples
194 - doins latexusage.tex
195 - fi
196 - cd .. || die
197 - fi
198 -
199 - # asymptote.py
200 - if use python; then
201 - python_foreach_impl python_domodule base/${PN}.py
202 - fi
203 -
204 - # emacs mode
205 - if use emacs; then
206 - elisp-install ${PN} base/*.el base/*.elc
207 - elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el
208 - fi
209 -
210 - # vim syntax
211 - if use vim-syntax; then
212 - insinto /usr/share/vim/vimfiles/syntax
213 - doins base/asy.vim
214 - insinto /usr/share/vim/vimfiles/ftdetect
215 - doins "${FILESDIR}"/asy-ftd.vim
216 - fi
217 -
218 - # extra documentation
219 - if use doc; then
220 - cd doc || die
221 - doinfo ${PN}.info*
222 - dodoc ${PN}.pdf CAD.pdf
223 - cd FAQ || die
224 - dodoc asy-faq.ascii
225 - doinfo asy-faq.info
226 - docinto html/FAQ
227 - dodoc asy-faq.html/*
228 - fi
229 -}
230 -
231 -pkg_postinst() {
232 - use latex && latex-package_rehash
233 - use emacs && elisp-site-regen
234 -
235 - elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer'
236 - elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer'
237 -}
238 -
239 -pkg_postrm() {
240 - use latex && latex-package_rehash
241 - use emacs && elisp-site-regen
242 -}
243
244 diff --git a/media-gfx/asymptote/files/asymptote-2.60-info.patch b/media-gfx/asymptote/files/asymptote-2.60-info.patch
245 deleted file mode 100644
246 index f10aa2f3abc..00000000000
247 --- a/media-gfx/asymptote/files/asymptote-2.60-info.patch
248 +++ /dev/null
249 @@ -1,13 +0,0 @@
250 -Index: asymptote-2.60/doc/asymptote.texi
251 -===================================================================
252 ---- asymptote-2.60.orig/doc/asymptote.texi
253 -+++ asymptote-2.60/doc/asymptote.texi
254 -@@ -23,7 +23,7 @@ file LICENSE in the top-level source dir
255 -
256 - @dircategory Languages
257 - @direntry
258 --* asymptote: (asymptote/asymptote). Vector graphics language.
259 -+* asymptote: (asymptote). Vector graphics language.
260 - @end direntry
261 -
262 - @titlepage
263
264 diff --git a/media-gfx/asymptote/files/asymptote-2.60-xdg-utils.patch b/media-gfx/asymptote/files/asymptote-2.60-xdg-utils.patch
265 deleted file mode 100644
266 index 69eefaec963..00000000000
267 --- a/media-gfx/asymptote/files/asymptote-2.60-xdg-utils.patch
268 +++ /dev/null
269 @@ -1,22 +0,0 @@
270 -Index: asymptote-2.60/settings.cc
271 -===================================================================
272 ---- asymptote-2.60.orig/settings.cc
273 -+++ asymptote-2.60/settings.cc
274 -@@ -98,13 +98,13 @@ string defaultPSViewer="open";
275 - string defaultPDFViewer="open";
276 - string defaultHTMLViewer="open";
277 - #else
278 --string defaultPSViewer="gv";
279 --string defaultPDFViewer="acroread";
280 --string defaultHTMLViewer="google-chrome";
281 -+string defaultPSViewer="xdg-open";
282 -+string defaultPDFViewer="xdg-open";
283 -+string defaultHTMLViewer="xdg-open";
284 - #endif
285 - string defaultGhostscript="gs";
286 - string defaultGhostscriptLibrary="";
287 --string defaultDisplay="display";
288 -+string defaultDisplay="xdg-open";
289 - string defaultAnimate="animate";
290 - void queryRegistry() {}
291 - const string dirsep="/";