1 |
commit: 400077d5778ecfb7926b35547d346b4df1ac0e14 |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat Feb 13 21:33:46 2016 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat Feb 13 21:33:46 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=400077d5 |
7 |
|
8 |
media-gfx/asymptote: version bump |
9 |
|
10 |
Compatible with sci-libs/gsl-2.1 |
11 |
Bug: 574622 |
12 |
|
13 |
Package-Manager: portage-2.2.27 |
14 |
|
15 |
media-gfx/asymptote/Manifest | 1 + |
16 |
media-gfx/asymptote/asymptote-2.36.ebuild | 211 +++++++++++++++++++++ |
17 |
.../files/asymptote-2.36-configure-ac.patch | 32 ++++ |
18 |
.../asymptote/files/asymptote-2.36-info.patch | 13 ++ |
19 |
.../asymptote/files/asymptote-2.36-xdg-utils.patch | 23 +++ |
20 |
5 files changed, 280 insertions(+) |
21 |
|
22 |
diff --git a/media-gfx/asymptote/Manifest b/media-gfx/asymptote/Manifest |
23 |
index 9dde0f1..4e33bd1 100644 |
24 |
--- a/media-gfx/asymptote/Manifest |
25 |
+++ b/media-gfx/asymptote/Manifest |
26 |
@@ -1,2 +1,3 @@ |
27 |
DIST asymptote-2.32.src.tgz 1794495 SHA256 2035035e02774598312d5588da2685d20fb85a378ea2bbe48b825c5442b18fa5 SHA512 a0663f1768cb4340bb6e9224d4fbc6e2f8b41501b1f59793d84db2e0f99b9ff071d3dd8fa5c4715c1874f8ef1af713a54b27de37ff40d8ca042f0f48579a57f9 WHIRLPOOL 38a8aaa581acb07bcc7ac0c802222501acf77abaf609d5ae758d9b5668ac6b8b1343640259cc3948e62a39862404709ddb64b4bbd11bcf20dbb7ce29d4fc25d1 |
28 |
DIST asymptote-2.35.src.tgz 3348122 SHA256 ff3cf5b6a6a65fb1fe5b3ef1e94bf9cff8c3376f0cd7be0fdd7079c0fb46c285 SHA512 671ffdde35b444b645d5ebea016b7fec583c4cecee67cf1700c4b3e2c783abfcc45dfa964864c8bd66be32c13fb109c139346c0dbcfb1b597d4d387ad19c6c97 WHIRLPOOL 70cde1fb0821bd7efa27629183fe36871b45d7f352f5a1e529fbdf3c0d50c53059a7d4befcd4d87663da365733b43006ef1399b5541095d85068c63200e1ddf7 |
29 |
+DIST asymptote-2.36.src.tgz 3449528 SHA256 cd3276cba498965f8c9e6c56b157d2f22304b0453d175bd9017b4c62b3fd1750 SHA512 18b079829f90561f88ebde0391f5d842d89ea28bf7b00306b908faeeca21b421127423af3a335bab9afa22036b3d93611702a579513d8a458be2f8cdd542222f WHIRLPOOL 532b221d619c8af077e0ef4cda960e6bc1b2c2eab263cfa1eb729df5928f7ae1d9e05459efee18a5a4fa4464b0b3aacd7f5ab42076e8af4e1fc3745f75dd9b6c |
30 |
|
31 |
diff --git a/media-gfx/asymptote/asymptote-2.36.ebuild b/media-gfx/asymptote/asymptote-2.36.ebuild |
32 |
new file mode 100644 |
33 |
index 0000000..6ea5ef6 |
34 |
--- /dev/null |
35 |
+++ b/media-gfx/asymptote/asymptote-2.36.ebuild |
36 |
@@ -0,0 +1,211 @@ |
37 |
+# Copyright 1999-2016 Gentoo Foundation |
38 |
+# Distributed under the terms of the GNU General Public License v2 |
39 |
+# $Id$ |
40 |
+ |
41 |
+EAPI=5 |
42 |
+ |
43 |
+PYTHON_COMPAT=( python2_7 ) |
44 |
+ |
45 |
+inherit autotools elisp-common eutils latex-package multilib python-single-r1 |
46 |
+ |
47 |
+DESCRIPTION="A vector graphics language that provides a framework for technical drawing" |
48 |
+HOMEPAGE="http://asymptote.sourceforge.net/" |
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 vim-syntax X" |
55 |
+ |
56 |
+REQUIRED_USE=" |
57 |
+ ${PYTHON_REQUIRED_USE} |
58 |
+ offscreen? ( opengl )" |
59 |
+ |
60 |
+RDEPEND=" |
61 |
+ >=sys-libs/ncurses-5.4-r5:0= |
62 |
+ >=sys-libs/readline-4.3-r5:0= |
63 |
+ imagemagick? ( media-gfx/imagemagick[png] ) |
64 |
+ opengl? ( >=media-libs/mesa-8 ) |
65 |
+ offscreen? ( media-libs/mesa[osmesa] ) |
66 |
+ svg? ( app-text/dvisvgm ) |
67 |
+ sigsegv? ( dev-libs/libsigsegv ) |
68 |
+ boehm-gc? ( >=dev-libs/boehm-gc-7.0[cxx,threads] ) |
69 |
+ fftw? ( >=sci-libs/fftw-3.0.1 ) |
70 |
+ gsl? ( sci-libs/gsl ) |
71 |
+ python? ( ${PYTHON_DEPS} ) |
72 |
+ X? ( |
73 |
+ ${PYTHON_DEPS} |
74 |
+ x11-misc/xdg-utils |
75 |
+ dev-python/pillow[tk,${PYTHON_USEDEP}] |
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 |
+ )" |
90 |
+ |
91 |
+TEXMF=/usr/share/texmf-site |
92 |
+ |
93 |
+pkg_setup() { |
94 |
+ (use python || use X) && python-single-r1_pkg_setup |
95 |
+} |
96 |
+ |
97 |
+src_prepare() { |
98 |
+ # Fixing sigsegv enabling |
99 |
+ epatch "${FILESDIR}/${P}-configure-ac.patch" |
100 |
+ einfo "Patching configure.ac" |
101 |
+ sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \ |
102 |
+ -i configure.ac \ |
103 |
+ || die "sed configure.ac failed" |
104 |
+ |
105 |
+ # Changing pdf, ps, image viewers to xdg-open |
106 |
+ epatch "${FILESDIR}/${P}-xdg-utils.patch" |
107 |
+ |
108 |
+ # Bug #322473 |
109 |
+ epatch "${FILESDIR}/${P}-info.patch" |
110 |
+ |
111 |
+ eautoreconf |
112 |
+} |
113 |
+ |
114 |
+src_configure() { |
115 |
+ # for the CPPFLAGS see |
116 |
+ # http://sourceforge.net/forum/forum.php?thread_id=1683277&forum_id=409349 |
117 |
+ econf \ |
118 |
+ CPPFLAGS=-DHAVE_SYS_TYPES_H \ |
119 |
+ CFLAGS="${CXXFLAGS}" \ |
120 |
+ --disable-gc-debug \ |
121 |
+ $(use_enable boehm-gc gc system) \ |
122 |
+ $(use_enable fftw) \ |
123 |
+ $(use_enable gsl) \ |
124 |
+ $(use_enable opengl gl) \ |
125 |
+ $(use_enable offscreen) \ |
126 |
+ $(use_with sigsegv) |
127 |
+} |
128 |
+ |
129 |
+src_compile() { |
130 |
+ default |
131 |
+ |
132 |
+ cd doc || die |
133 |
+ emake asy.1 |
134 |
+ if use doc; then |
135 |
+ # info |
136 |
+ einfo "Making info" |
137 |
+ emake ${PN}.info |
138 |
+ cd FAQ || die |
139 |
+ emake |
140 |
+ cd .. || die |
141 |
+ # pdf |
142 |
+ einfo "Making pdf docs" |
143 |
+ export VARTEXFONTS="${T}"/fonts |
144 |
+ # see bug #260606 |
145 |
+ emake -j1 asymptote.pdf |
146 |
+ emake CAD.pdf |
147 |
+ fi |
148 |
+ cd .. || die |
149 |
+ |
150 |
+ if use emacs; then |
151 |
+ einfo "Compiling emacs lisp files" |
152 |
+ elisp-compile base/*.el |
153 |
+ fi |
154 |
+} |
155 |
+ |
156 |
+src_install() { |
157 |
+ # the program |
158 |
+ dobin asy |
159 |
+ |
160 |
+ # .asy files |
161 |
+ insinto /usr/share/${PN} |
162 |
+ doins base/*.asy |
163 |
+ |
164 |
+ # documentation |
165 |
+ dodoc BUGS ChangeLog README ReleaseNotes TODO |
166 |
+ doman doc/asy.1 |
167 |
+ |
168 |
+ # X GUI |
169 |
+ if use X; then |
170 |
+ python_scriptinto /usr/share/${PN}/GUI |
171 |
+ python_doscript GUI/*.py |
172 |
+ dosym /usr/share/${PN}/GUI/xasy.py /usr/bin/xasy |
173 |
+ doman doc/xasy.1x |
174 |
+ fi |
175 |
+ |
176 |
+ # examples |
177 |
+ if use examples; then |
178 |
+ insinto /usr/share/${PN}/examples |
179 |
+ doins \ |
180 |
+ examples/*.asy \ |
181 |
+ examples/*.eps \ |
182 |
+ doc/*.asy \ |
183 |
+ doc/*.csv \ |
184 |
+ doc/*.dat \ |
185 |
+ doc/extra/*.asy |
186 |
+ use X && doins GUI/*.asy |
187 |
+ |
188 |
+ insinto /usr/share/${PN}/examples/animations |
189 |
+ doins examples/animations/*.asy |
190 |
+ fi |
191 |
+ |
192 |
+ # LaTeX style |
193 |
+ if use latex; then |
194 |
+ cd doc || die |
195 |
+ insinto "${TEXMF}"/tex/latex/${PN} |
196 |
+ doins ${PN}.sty asycolors.sty |
197 |
+ if use examples; then |
198 |
+ insinto /usr/share/${PN}/examples |
199 |
+ doins latexusage.tex |
200 |
+ fi |
201 |
+ cd .. || die |
202 |
+ fi |
203 |
+ |
204 |
+ # asymptote.py |
205 |
+ use python && python_domodule base/${PN}.py |
206 |
+ |
207 |
+ # emacs mode |
208 |
+ if use emacs; then |
209 |
+ elisp-install ${PN} base/*.el base/*.elc |
210 |
+ elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el |
211 |
+ fi |
212 |
+ |
213 |
+ # vim syntax |
214 |
+ if use vim-syntax; then |
215 |
+ insinto /usr/share/vim/vimfiles/syntax |
216 |
+ doins base/asy.vim |
217 |
+ insinto /usr/share/vim/vimfiles/ftdetect |
218 |
+ doins "${FILESDIR}"/asy-ftd.vim |
219 |
+ fi |
220 |
+ |
221 |
+ # extra documentation |
222 |
+ if use doc; then |
223 |
+ cd doc || die |
224 |
+ doinfo ${PN}.info* |
225 |
+ cd FAQ || die |
226 |
+ dodoc asy-faq.ascii |
227 |
+ doinfo asy-faq.info |
228 |
+ insinto /usr/share/doc/${PF}/html/FAQ |
229 |
+ doins asy-faq.html/* |
230 |
+ cd .. || die |
231 |
+ insinto /usr/share/doc/${PF} |
232 |
+ doins ${PN}.pdf CAD.pdf |
233 |
+ fi |
234 |
+} |
235 |
+ |
236 |
+pkg_postinst() { |
237 |
+ use latex && latex-package_rehash |
238 |
+ use emacs && elisp-site-regen |
239 |
+ |
240 |
+ elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer' |
241 |
+ elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer' |
242 |
+} |
243 |
+ |
244 |
+pkg_postrm() { |
245 |
+ use latex && latex-package_rehash |
246 |
+ use emacs && elisp-site-regen |
247 |
+} |
248 |
|
249 |
diff --git a/media-gfx/asymptote/files/asymptote-2.36-configure-ac.patch b/media-gfx/asymptote/files/asymptote-2.36-configure-ac.patch |
250 |
new file mode 100644 |
251 |
index 0000000..ea8bc45 |
252 |
--- /dev/null |
253 |
+++ b/media-gfx/asymptote/files/asymptote-2.36-configure-ac.patch |
254 |
@@ -0,0 +1,32 @@ |
255 |
+Index: asymptote-2.36/configure.ac |
256 |
+=================================================================== |
257 |
+--- asymptote-2.36.orig/configure.ac |
258 |
++++ asymptote-2.36/configure.ac |
259 |
+@@ -156,7 +156,7 @@ if test "x$ac_cv_use_gc" != "xno" ; then |
260 |
+ fi |
261 |
+ CPPFLAGS_SAVE=$CPPFLAGS |
262 |
+ CPPFLAGS=$CPPFLAGS" $INCL" |
263 |
+- AC_CHECK_HEADER(gc.h, |
264 |
++ AC_CHECK_HEADER([gc/gc.h], |
265 |
+ AC_CHECK_LIB([gc],[GC_malloc],[ |
266 |
+ LIBS=$LIBS"-lgc " |
267 |
+ AC_MSG_NOTICE([enabling system $GCNAME])],[ |
268 |
+@@ -231,7 +231,17 @@ AC_MSG_ERROR([*** Please install libm on |
269 |
+ AC_CHECK_LIB([z], [deflate],, |
270 |
+ AC_MSG_ERROR([*** Please install libz or zlib-devel on your system ***])) |
271 |
+ AX_PTHREAD |
272 |
+-AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]) |
273 |
++ |
274 |
++AC_ARG_WITH(sigsegv, |
275 |
++ [ --with-sigsegv use libsigsegv], |
276 |
++ [with_sigsegv=$withval], |
277 |
++ [with_sigsegv="no"]) |
278 |
++if test "$with_sigsegv" = "yes"; then |
279 |
++AC_CHECK_HEADER([sigsegv.h], |
280 |
++ AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]), |
281 |
++ AC_MSG_NOTICE([*** Header file sigsegv.h not found ***])) |
282 |
++fi |
283 |
++ |
284 |
+ AC_CHECK_LIB([rt], [sched_yield]) |
285 |
+ |
286 |
+ AC_ARG_ENABLE(readline, |
287 |
|
288 |
diff --git a/media-gfx/asymptote/files/asymptote-2.36-info.patch b/media-gfx/asymptote/files/asymptote-2.36-info.patch |
289 |
new file mode 100644 |
290 |
index 0000000..9507328 |
291 |
--- /dev/null |
292 |
+++ b/media-gfx/asymptote/files/asymptote-2.36-info.patch |
293 |
@@ -0,0 +1,13 @@ |
294 |
+Index: asymptote-2.36/doc/asymptote.texi |
295 |
+=================================================================== |
296 |
+--- asymptote-2.36.orig/doc/asymptote.texi |
297 |
++++ asymptote-2.36/doc/asymptote.texi |
298 |
+@@ -21,7 +21,7 @@ file LICENSE in the top-level source dir |
299 |
+ |
300 |
+ @dircategory Languages |
301 |
+ @direntry |
302 |
+-* asymptote: (asymptote/asymptote). Vector graphics language. |
303 |
++* asymptote: (asymptote). Vector graphics language. |
304 |
+ @end direntry |
305 |
+ |
306 |
+ @titlepage |
307 |
|
308 |
diff --git a/media-gfx/asymptote/files/asymptote-2.36-xdg-utils.patch b/media-gfx/asymptote/files/asymptote-2.36-xdg-utils.patch |
309 |
new file mode 100644 |
310 |
index 0000000..4763a52 |
311 |
--- /dev/null |
312 |
+++ b/media-gfx/asymptote/files/asymptote-2.36-xdg-utils.patch |
313 |
@@ -0,0 +1,23 @@ |
314 |
+Index: asymptote-2.36/settings.cc |
315 |
+=================================================================== |
316 |
+--- asymptote-2.36.orig/settings.cc |
317 |
++++ asymptote-2.36/settings.cc |
318 |
+@@ -90,15 +90,15 @@ bool msdos=false; |
319 |
+ string HOME="HOME"; |
320 |
+ string docdir=ASYMPTOTE_DOCDIR; |
321 |
+ const char pathSeparator=':'; |
322 |
+-string defaultPSViewer="gv"; |
323 |
++string defaultPSViewer="xdg-open"; |
324 |
+ #ifdef __APPLE__ |
325 |
+ string defaultPDFViewer="open"; |
326 |
+ #else |
327 |
+-string defaultPDFViewer="acroread"; |
328 |
++string defaultPDFViewer="xdg-open"; |
329 |
+ #endif |
330 |
+ string defaultGhostscript="gs"; |
331 |
+ string defaultGhostscriptLibrary="/usr/lib/libgs.so"; |
332 |
+-string defaultDisplay="display"; |
333 |
++string defaultDisplay="xdg-open"; |
334 |
+ string defaultAnimate="animate"; |
335 |
+ void queryRegistry() {} |
336 |
+ const string dirsep="/"; |