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