1 |
grozin 09/05/28 16:34:27 |
2 |
|
3 |
Added: asymptote-1.74-configure-ac.patch |
4 |
asymptote-1.74-xdg-utils.patch |
5 |
Removed: asymptote-1.70-xdg-utils.patch |
6 |
asymptote-1.70-configure-ac.patch |
7 |
Log: |
8 |
Version bump |
9 |
(Portage version: 2.2_rc33/cvs/Linux i686) |
10 |
|
11 |
Revision Changes Path |
12 |
1.1 media-gfx/asymptote/files/asymptote-1.74-configure-ac.patch |
13 |
|
14 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/files/asymptote-1.74-configure-ac.patch?rev=1.1&view=markup |
15 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/files/asymptote-1.74-configure-ac.patch?rev=1.1&content-type=text/plain |
16 |
|
17 |
Index: asymptote-1.74-configure-ac.patch |
18 |
=================================================================== |
19 |
Index: asymptote-1.74/configure.ac |
20 |
=================================================================== |
21 |
--- asymptote-1.74.orig/configure.ac |
22 |
+++ asymptote-1.74/configure.ac |
23 |
@@ -109,10 +109,16 @@ if test "$GXX" = yes ; then |
24 |
fi |
25 |
fi |
26 |
|
27 |
-AC_CHECK_HEADER(fftw3.h, |
28 |
- AC_CHECK_LIB([fftw3], fftw_execute,, |
29 |
+AC_ARG_WITH([fftw], |
30 |
+ [ --with-fftw use fftw3], |
31 |
+ [with_fftw=$withval], |
32 |
+ [with_fftw="no"]) |
33 |
+if test "$with_fftw" = "yes"; then |
34 |
+AC_CHECK_HEADER([fftw3.h], |
35 |
+ AC_CHECK_LIB([fftw3], [fftw_execute],, |
36 |
AC_MSG_NOTICE([*** Could not find libfftw3: will compile without optional fast Fourier transforms. ***])), |
37 |
AC_MSG_NOTICE([*** Header file fftw3.h not found: will compile without optional fast Fourier transforms. ***])) |
38 |
+fi |
39 |
|
40 |
GCVERSION=gc-7.1 |
41 |
|
42 |
@@ -150,7 +156,7 @@ if test "x$ac_cv_use_gc" != "xno" ; then |
43 |
fi |
44 |
CPPFLAGS_SAVE=$CPPFLAGS |
45 |
CPPFLAGS=$CPPFLAGS" $INCL" |
46 |
- AC_CHECK_HEADER(gc.h, |
47 |
+ AC_CHECK_HEADER([gc/gc.h], |
48 |
AC_CHECK_LIB([gc],[GC_malloc],[ |
49 |
LIBS=$LIBS"-lgc " |
50 |
AC_MSG_NOTICE([enabling system $GCNAME])],[ |
51 |
@@ -217,7 +223,17 @@ AC_CHECK_LIB([ncurses], [setupterm], [AC |
52 |
AC_CHECK_LIB([m], [sqrt]) |
53 |
AC_CHECK_LIB([z], [deflate]) |
54 |
AC_CHECK_LIB([pthread], [pthread_create]) |
55 |
-AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]) |
56 |
+ |
57 |
+AC_ARG_WITH(sigsegv, |
58 |
+ [ --with-sigsegv use libsigsegv], |
59 |
+ [with_sigsegv=$withval], |
60 |
+ [with_sigsegv="no"]) |
61 |
+if test "$with_sigsegv" = "yes"; then |
62 |
+AC_CHECK_HEADER([sigsegv.h], |
63 |
+ AC_CHECK_LIB([sigsegv], [stackoverflow_install_handler]), |
64 |
+ AC_MSG_NOTICE([*** Header file sigsegv.h not found ***])) |
65 |
+fi |
66 |
+ |
67 |
AC_CHECK_LIB([rt], [sched_yield]) |
68 |
|
69 |
AC_CHECK_LIB([readline], [rl_completion_matches],, |
70 |
|
71 |
|
72 |
|
73 |
1.1 media-gfx/asymptote/files/asymptote-1.74-xdg-utils.patch |
74 |
|
75 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/files/asymptote-1.74-xdg-utils.patch?rev=1.1&view=markup |
76 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/media-gfx/asymptote/files/asymptote-1.74-xdg-utils.patch?rev=1.1&content-type=text/plain |
77 |
|
78 |
Index: asymptote-1.74-xdg-utils.patch |
79 |
=================================================================== |
80 |
Index: asymptote-1.74/settings.cc |
81 |
=================================================================== |
82 |
--- asymptote-1.74.orig/settings.cc |
83 |
+++ asymptote-1.74/settings.cc |
84 |
@@ -81,15 +81,15 @@ const bool haveglut=false; |
85 |
bool msdos=false; |
86 |
const char *HOME="HOME"; |
87 |
const char pathSeparator=':'; |
88 |
-string defaultPSViewer="gv"; |
89 |
+string defaultPSViewer="xdg-open"; |
90 |
#ifdef __APPLE__ |
91 |
string defaultPDFViewer="open"; |
92 |
#else |
93 |
-string defaultPDFViewer="acroread"; |
94 |
+string defaultPDFViewer="xdg-open"; |
95 |
#endif |
96 |
string defaultGhostscript="gs"; |
97 |
string defaultPython; |
98 |
-string defaultDisplay="display"; |
99 |
+string defaultDisplay="xdg-open"; |
100 |
string systemDir=ASYMPTOTE_SYSDIR; |
101 |
const string docdir=ASYMPTOTE_DOCDIR; |
102 |
void queryRegistry() {} |