1 |
commit: 60f2c8e147bdd35fa3bb50e94ce8736547e701fb |
2 |
Author: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
3 |
AuthorDate: Wed Dec 23 14:52:01 2015 +0000 |
4 |
Commit: Andrey Grozin <grozin <AT> gentoo <DOT> org> |
5 |
CommitDate: Wed Dec 23 14:54:31 2015 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=60f2c8e1 |
7 |
|
8 |
media-gfx/asymptote: bump to 2.35 |
9 |
|
10 |
Package-Manager: portage-2.2.26 |
11 |
|
12 |
media-gfx/asymptote/Manifest | 1 + |
13 |
media-gfx/asymptote/asymptote-2.35.ebuild | 211 +++++++++++++++++++++ |
14 |
.../files/asymptote-2.35-configure-ac.patch | 32 ++++ |
15 |
.../asymptote/files/asymptote-2.35-info.patch | 13 ++ |
16 |
.../asymptote/files/asymptote-2.35-xdg-utils.patch | 23 +++ |
17 |
5 files changed, 280 insertions(+) |
18 |
|
19 |
diff --git a/media-gfx/asymptote/Manifest b/media-gfx/asymptote/Manifest |
20 |
index f27fe05..9dde0f1 100644 |
21 |
--- a/media-gfx/asymptote/Manifest |
22 |
+++ b/media-gfx/asymptote/Manifest |
23 |
@@ -1 +1,2 @@ |
24 |
DIST asymptote-2.32.src.tgz 1794495 SHA256 2035035e02774598312d5588da2685d20fb85a378ea2bbe48b825c5442b18fa5 SHA512 a0663f1768cb4340bb6e9224d4fbc6e2f8b41501b1f59793d84db2e0f99b9ff071d3dd8fa5c4715c1874f8ef1af713a54b27de37ff40d8ca042f0f48579a57f9 WHIRLPOOL 38a8aaa581acb07bcc7ac0c802222501acf77abaf609d5ae758d9b5668ac6b8b1343640259cc3948e62a39862404709ddb64b4bbd11bcf20dbb7ce29d4fc25d1 |
25 |
+DIST asymptote-2.35.src.tgz 3348122 SHA256 ff3cf5b6a6a65fb1fe5b3ef1e94bf9cff8c3376f0cd7be0fdd7079c0fb46c285 SHA512 671ffdde35b444b645d5ebea016b7fec583c4cecee67cf1700c4b3e2c783abfcc45dfa964864c8bd66be32c13fb109c139346c0dbcfb1b597d4d387ad19c6c97 WHIRLPOOL 70cde1fb0821bd7efa27629183fe36871b45d7f352f5a1e529fbdf3c0d50c53059a7d4befcd4d87663da365733b43006ef1399b5541095d85068c63200e1ddf7 |
26 |
|
27 |
diff --git a/media-gfx/asymptote/asymptote-2.35.ebuild b/media-gfx/asymptote/asymptote-2.35.ebuild |
28 |
new file mode 100644 |
29 |
index 0000000..52905a5 |
30 |
--- /dev/null |
31 |
+++ b/media-gfx/asymptote/asymptote-2.35.ebuild |
32 |
@@ -0,0 +1,211 @@ |
33 |
+# Copyright 1999-2015 Gentoo Foundation |
34 |
+# Distributed under the terms of the GNU General Public License v2 |
35 |
+# $Id$ |
36 |
+ |
37 |
+EAPI=5 |
38 |
+ |
39 |
+PYTHON_COMPAT=( python2_7 ) |
40 |
+ |
41 |
+inherit autotools elisp-common eutils latex-package multilib python-single-r1 |
42 |
+ |
43 |
+DESCRIPTION="A vector graphics language that provides a framework for technical drawing" |
44 |
+HOMEPAGE="http://asymptote.sourceforge.net/" |
45 |
+SRC_URI="mirror://sourceforge/asymptote/${P}.src.tgz" |
46 |
+ |
47 |
+LICENSE="GPL-3" |
48 |
+SLOT="0" |
49 |
+KEYWORDS="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x86-macos" |
50 |
+IUSE="+boehm-gc doc emacs examples fftw gsl +imagemagick latex offscreen +opengl python sigsegv svg vim-syntax X" |
51 |
+ |
52 |
+REQUIRED_USE=" |
53 |
+ ${PYTHON_REQUIRED_USE} |
54 |
+ offscreen? ( opengl )" |
55 |
+ |
56 |
+RDEPEND=" |
57 |
+ >=sys-libs/ncurses-5.4-r5:0= |
58 |
+ >=sys-libs/readline-4.3-r5:0= |
59 |
+ imagemagick? ( media-gfx/imagemagick[png] ) |
60 |
+ opengl? ( >=media-libs/mesa-8 ) |
61 |
+ offscreen? ( media-libs/mesa[osmesa] ) |
62 |
+ svg? ( app-text/dvisvgm ) |
63 |
+ sigsegv? ( dev-libs/libsigsegv ) |
64 |
+ boehm-gc? ( >=dev-libs/boehm-gc-7.0[cxx,threads] ) |
65 |
+ fftw? ( >=sci-libs/fftw-3.0.1 ) |
66 |
+ gsl? ( sci-libs/gsl ) |
67 |
+ python? ( ${PYTHON_DEPS} ) |
68 |
+ X? ( |
69 |
+ ${PYTHON_DEPS} |
70 |
+ x11-misc/xdg-utils |
71 |
+ dev-python/pillow[tk,${PYTHON_USEDEP}] |
72 |
+ ) |
73 |
+ latex? ( |
74 |
+ virtual/latex-base |
75 |
+ >=dev-texlive/texlive-latexextra-2013 |
76 |
+ ) |
77 |
+ emacs? ( virtual/emacs ) |
78 |
+ vim-syntax? ( || ( app-editors/vim app-editors/gvim ) )" |
79 |
+DEPEND="${RDEPEND} |
80 |
+ doc? ( |
81 |
+ dev-lang/perl |
82 |
+ media-gfx/imagemagick[png] |
83 |
+ virtual/texi2dvi |
84 |
+ virtual/latex-base |
85 |
+ )" |
86 |
+ |
87 |
+TEXMF=/usr/share/texmf-site |
88 |
+ |
89 |
+pkg_setup() { |
90 |
+ (use python || use X) && python-single-r1_pkg_setup |
91 |
+} |
92 |
+ |
93 |
+src_prepare() { |
94 |
+ # Fixing sigsegv enabling |
95 |
+ epatch "${FILESDIR}/${P}-configure-ac.patch" |
96 |
+ einfo "Patching configure.ac" |
97 |
+ sed -e "s:Datadir/doc/asymptote:Datadir/doc/${PF}:" \ |
98 |
+ -i configure.ac \ |
99 |
+ || die "sed configure.ac failed" |
100 |
+ |
101 |
+ # Changing pdf, ps, image viewers to xdg-open |
102 |
+ epatch "${FILESDIR}/${P}-xdg-utils.patch" |
103 |
+ |
104 |
+ # Bug #322473 |
105 |
+ epatch "${FILESDIR}/${P}-info.patch" |
106 |
+ |
107 |
+ eautoreconf |
108 |
+} |
109 |
+ |
110 |
+src_configure() { |
111 |
+ # for the CPPFLAGS see |
112 |
+ # http://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_with 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 |
+ python_scriptinto /usr/share/${PN}/GUI |
167 |
+ python_doscript GUI/*.py |
168 |
+ dosym /usr/share/${PN}/GUI/xasy.py /usr/bin/xasy |
169 |
+ doman doc/xasy.1x |
170 |
+ fi |
171 |
+ |
172 |
+ # examples |
173 |
+ if use examples; then |
174 |
+ insinto /usr/share/${PN}/examples |
175 |
+ doins \ |
176 |
+ examples/*.asy \ |
177 |
+ examples/*.eps \ |
178 |
+ doc/*.asy \ |
179 |
+ doc/*.csv \ |
180 |
+ doc/*.dat \ |
181 |
+ doc/extra/*.asy |
182 |
+ use X && doins GUI/*.asy |
183 |
+ |
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 |
+ use python && python_domodule base/${PN}.py |
202 |
+ |
203 |
+ # emacs mode |
204 |
+ if use emacs; then |
205 |
+ elisp-install ${PN} base/*.el base/*.elc |
206 |
+ elisp-site-file-install "${FILESDIR}"/64${PN}-gentoo.el |
207 |
+ fi |
208 |
+ |
209 |
+ # vim syntax |
210 |
+ if use vim-syntax; then |
211 |
+ insinto /usr/share/vim/vimfiles/syntax |
212 |
+ doins base/asy.vim |
213 |
+ insinto /usr/share/vim/vimfiles/ftdetect |
214 |
+ doins "${FILESDIR}"/asy-ftd.vim |
215 |
+ fi |
216 |
+ |
217 |
+ # extra documentation |
218 |
+ if use doc; then |
219 |
+ cd doc || die |
220 |
+ doinfo ${PN}.info* |
221 |
+ cd FAQ || die |
222 |
+ dodoc asy-faq.ascii |
223 |
+ doinfo asy-faq.info |
224 |
+ insinto /usr/share/doc/${PF}/html/FAQ |
225 |
+ doins asy-faq.html/* |
226 |
+ cd .. || die |
227 |
+ insinto /usr/share/doc/${PF} |
228 |
+ doins ${PN}.pdf CAD.pdf |
229 |
+ fi |
230 |
+} |
231 |
+ |
232 |
+pkg_postinst() { |
233 |
+ use latex && latex-package_rehash |
234 |
+ use emacs && elisp-site-regen |
235 |
+ |
236 |
+ elog 'Use the variable ASYMPTOTE_PSVIEWER to set the postscript viewer' |
237 |
+ elog 'Use the variable ASYMPTOTE_PDFVIEWER to set the PDF viewer' |
238 |
+} |
239 |
+ |
240 |
+pkg_postrm() { |
241 |
+ use latex && latex-package_rehash |
242 |
+ use emacs && elisp-site-regen |
243 |
+} |
244 |
|
245 |
diff --git a/media-gfx/asymptote/files/asymptote-2.35-configure-ac.patch b/media-gfx/asymptote/files/asymptote-2.35-configure-ac.patch |
246 |
new file mode 100644 |
247 |
index 0000000..03040c7 |
248 |
--- /dev/null |
249 |
+++ b/media-gfx/asymptote/files/asymptote-2.35-configure-ac.patch |
250 |
@@ -0,0 +1,32 @@ |
251 |
+Index: asymptote-2.35/configure.ac |
252 |
+=================================================================== |
253 |
+--- asymptote-2.35.orig/configure.ac |
254 |
++++ asymptote-2.35/configure.ac |
255 |
+@@ -158,7 +158,7 @@ if test "x$ac_cv_use_gc" != "xno" ; then |
256 |
+ fi |
257 |
+ CPPFLAGS_SAVE=$CPPFLAGS |
258 |
+ CPPFLAGS=$CPPFLAGS" $INCL" |
259 |
+- AC_CHECK_HEADER(gc.h, |
260 |
++ AC_CHECK_HEADER([gc/gc.h], |
261 |
+ AC_CHECK_LIB([gc],[GC_malloc],[ |
262 |
+ LIBS=$LIBS"-lgc " |
263 |
+ AC_MSG_NOTICE([enabling system $GCNAME])],[ |
264 |
+@@ -232,7 +232,17 @@ AC_MSG_ERROR([*** Please install libm on |
265 |
+ AC_CHECK_LIB([z], [deflate],, |
266 |
+ AC_MSG_ERROR([*** Please install libz or zlib-devel on your system ***])) |
267 |
+ AX_PTHREAD |
268 |
+-AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]) |
269 |
++ |
270 |
++AC_ARG_WITH(sigsegv, |
271 |
++ [ --with-sigsegv use libsigsegv], |
272 |
++ [with_sigsegv=$withval], |
273 |
++ [with_sigsegv="no"]) |
274 |
++if test "$with_sigsegv" = "yes"; then |
275 |
++AC_CHECK_HEADER([sigsegv.h], |
276 |
++ AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]), |
277 |
++ AC_MSG_NOTICE([*** Header file sigsegv.h not found ***])) |
278 |
++fi |
279 |
++ |
280 |
+ AC_CHECK_LIB([rt], [sched_yield]) |
281 |
+ |
282 |
+ AC_ARG_ENABLE(readline, |
283 |
|
284 |
diff --git a/media-gfx/asymptote/files/asymptote-2.35-info.patch b/media-gfx/asymptote/files/asymptote-2.35-info.patch |
285 |
new file mode 100644 |
286 |
index 0000000..b3a3e98 |
287 |
--- /dev/null |
288 |
+++ b/media-gfx/asymptote/files/asymptote-2.35-info.patch |
289 |
@@ -0,0 +1,13 @@ |
290 |
+Index: asymptote-2.35/doc/asymptote.texi |
291 |
+=================================================================== |
292 |
+--- asymptote-2.35.orig/doc/asymptote.texi |
293 |
++++ asymptote-2.35/doc/asymptote.texi |
294 |
+@@ -21,7 +21,7 @@ file LICENSE in the top-level source dir |
295 |
+ |
296 |
+ @dircategory Languages |
297 |
+ @direntry |
298 |
+-* asymptote: (asymptote/asymptote). Vector graphics language. |
299 |
++* asymptote: (asymptote). Vector graphics language. |
300 |
+ @end direntry |
301 |
+ |
302 |
+ @titlepage |
303 |
|
304 |
diff --git a/media-gfx/asymptote/files/asymptote-2.35-xdg-utils.patch b/media-gfx/asymptote/files/asymptote-2.35-xdg-utils.patch |
305 |
new file mode 100644 |
306 |
index 0000000..dbc4564 |
307 |
--- /dev/null |
308 |
+++ b/media-gfx/asymptote/files/asymptote-2.35-xdg-utils.patch |
309 |
@@ -0,0 +1,23 @@ |
310 |
+Index: asymptote-2.35/settings.cc |
311 |
+=================================================================== |
312 |
+--- asymptote-2.35.orig/settings.cc |
313 |
++++ asymptote-2.35/settings.cc |
314 |
+@@ -90,15 +90,15 @@ bool msdos=false; |
315 |
+ string HOME="HOME"; |
316 |
+ string docdir=ASYMPTOTE_DOCDIR; |
317 |
+ const char pathSeparator=':'; |
318 |
+-string defaultPSViewer="gv"; |
319 |
++string defaultPSViewer="xdg-open"; |
320 |
+ #ifdef __APPLE__ |
321 |
+ string defaultPDFViewer="open"; |
322 |
+ #else |
323 |
+-string defaultPDFViewer="acroread"; |
324 |
++string defaultPDFViewer="xdg-open"; |
325 |
+ #endif |
326 |
+ string defaultGhostscript="gs"; |
327 |
+ string defaultGhostscriptLibrary="/usr/lib/libgs.so"; |
328 |
+-string defaultDisplay="display"; |
329 |
++string defaultDisplay="xdg-open"; |
330 |
+ string defaultAnimate="animate"; |
331 |
+ void queryRegistry() {} |
332 |
+ const string dirsep="/"; |