source: pst/typesetting/asymptote.xml@ bdda22c

10.0 10.1 11.0 8.4 9.0 9.1 ken/refactor-virt lazarus qt5new trunk upgradedb xry111/git-date xry111/git-date-for-trunk xry111/git-date-test
Last change on this file since bdda22c was bdda22c, checked in by Pierre Labastie <pieere@…>, 3 years ago

Fix asymptote build with GC-8.0.2 and tag remaining "typesetting" packages

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@21225 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 7.8 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
3 "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
4 <!ENTITY % general-entities SYSTEM "../../general.ent">
5 %general-entities;
6
7 <!ENTITY asymptote-download-http "&sourceforge-dl;/asymptote/asymptote-&asymptote-version;.src.tgz">
8 <!ENTITY asymptote-download-ftp " ">
9 <!ENTITY asymptote-md5sum "ffa053469aa1f6c8e5f40817646fe533">
10 <!ENTITY asymptote-size "3.5 MB">
11 <!ENTITY asymptote-buildsize "159 MB">
12 <!ENTITY asymptote-time "2.0 SBU">
13]>
14
15<sect1 id="asymptote" xreflabel="asymptote-&asymptote-version;">
16 <?dbhtml filename="asymptote.html"?>
17
18 <sect1info>
19 <othername>$LastChangedBy$</othername>
20 <date>$Date$</date>
21 </sect1info>
22
23 <title>asymptote-&asymptote-version;</title>
24
25 <indexterm zone="asymptote">
26 <primary sortas="a-asymptote">asymptote</primary>
27 </indexterm>
28
29 <sect2 role="package">
30 <title>Introduction to asymptote</title>
31
32 <para>
33 <application>Asymptote</application> is a powerful descriptive vector
34 graphics language that provides a natural coordinate-based framework for
35 technical drawing. Labels and equations can be typeset with LaTeX.
36 </para>
37
38 &lfs84_checked;
39
40 <bridgehead renderas="sect3">Package Information</bridgehead>
41 <itemizedlist spacing="compact">
42 <listitem>
43 <para>
44 Download (HTTP): <ulink url="&asymptote-download-http;"/>
45 </para>
46 </listitem>
47 <listitem>
48 <para>
49 Download (FTP): <ulink url="&asymptote-download-ftp;"/>
50 </para>
51 </listitem>
52 <listitem>
53 <para>
54 Download MD5 sum: &asymptote-md5sum;
55 </para>
56 </listitem>
57 <listitem>
58 <para>
59 Download size: &asymptote-size;
60 </para>
61 </listitem>
62 <listitem>
63 <para>
64 Estimated disk space required: &asymptote-buildsize;
65 </para>
66 </listitem>
67 <listitem>
68 <para>
69 Estimated build time: &asymptote-time;
70 </para>
71 </listitem>
72 </itemizedlist>
73
74 <bridgehead renderas="sect4">Required</bridgehead>
75 <para role="required">
76 <xref linkend="gs"/> and
77 <xref linkend="texlive"/>
78 </para>
79
80 <bridgehead renderas="sect4">Recommended</bridgehead>
81 <para role="recommended">
82 <xref linkend="freeglut"/>,
83 <xref linkend="gc"/> and
84 <xref linkend="libtirpc"/>
85 </para>
86
87 <bridgehead renderas="sect4">Optional</bridgehead>
88 <para role="optional">
89 <xref linkend="fftw"/>,
90 <xref linkend="gsl"/>, and
91 <xref linkend="libsigsegv"/>
92 </para>
93
94 <bridgehead renderas="sect4">Optional (at runtime, to use xasy)</bridgehead>
95 <para role="optional">
96 <ulink url="https://pypi.org/project/PyQt5/">PyQt5</ulink> (not tested),
97 which has a build dependency of <xref linkend="qt5"/>
98 </para>
99
100 <para condition="html" role="usernotes">
101 User Notes: <ulink url="&blfs-wiki;/asymptote"/>
102 </para>
103 </sect2>
104
105 <sect2 role="installation">
106 <title>Installation of asymptote</title>
107
108 <para>
109 First, issue the following command to fix building with <xref
110 linkend="gc"/>:
111 </para>
112
113 <screen><userinput>cat &gt;&gt; main.cc &lt;&lt; EOF
114
115#ifdef USEGC
116GC_API void GC_CALL GC_throw_bad_alloc() {
117 std::bad_alloc();
118}
119#endif
120EOF</userinput></screen>
121
122 <para>
123 Install <application>asymptote</application> by running the following
124 commands:
125 </para>
126
127<screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &amp;&amp;
128
129./configure --prefix=/opt/texlive/&texlive-year; \
130 --bindir=/opt/texlive/&texlive-year;/bin/$TEXARCH \
131 --datarootdir=/opt/texlive/&texlive-year;/texmf-dist \
132 --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
133 --libdir=/opt/texlive/&texlive-year;/texmf-dist \
134 --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
135 --enable-gc=system \
136 --with-latex=/opt/texlive/&texlive-year;/texmf-dist/tex/latex \
137 --with-context=/opt/texlive/&texlive-year;/texmf-dist/tex/context/third &amp;&amp;
138
139make</userinput></screen>
140
141 <para>
142 To test the results, issue: <command>make check</command>.
143 Note that if PyQt5 has not been installed some UI tests will report
144 that pyuic5 and other commands are not found, followed by
145 ''Error 127 (ignored)'.
146 </para>
147
148 <para>
149 Now, as the <systemitem class="username">root</systemitem> user:
150 </para>
151
152<screen role="root"><userinput>make install</userinput></screen>
153
154 </sect2>
155
156 <sect2 role="commands">
157 <title>Command Explanations</title>
158
159 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
160 href="../../xincludes/tex-prefix.xml"/>
161
162 <para><parameter>--libdir=/opt/texlive/&texlive-year;/texmf-dist;</parameter>:
163 This parameter ensures that the <filename class="directory">asymptote</filename>
164 directory will similarly overwrite any files installed by install-tl-unx.</para>
165
166 <para><parameter>--enable-gc=system</parameter>: this ensures that the system
167 version of <filename class="libraryfile">libgc.so</filename> will be used
168 instead of the version shipped with this package.</para>
169
170 <para><parameter>--with-latex= ... --with-context=</parameter>: These switches
171 ensure that style files and a tex file will be installed into the
172 <application>texlive</application> directories instead of creating a
173 <filename class="directory">texmf-local</filename> directory for them.</para>
174
175 <!-- commenting for now: 2.44 installs asymptote.info in both places
176 so the old version no longer remains
177
178 <para>
179 <command>rm -fv /opt/texlive/.../asymptote.info</command>:
180 This deletes the file installed by <application>texlive</application>.
181 Exceptionally, asymptote will create an <filename
182 class="directory">asymptote/</filename> subdirectory for its own
183 <filename>asymptote.info</filename> even though a possibly older
184 version from <xref linkend="texlive"/> is in the main
185 <application>texlive</application>
186 <filename class="directory">info/</filename> directory. Both the
187 new version and the existing <filename>asy-faq.info</filename>
188 <emphasis>will</emphasis> be found by <command>info</command>.
189 </para>-->
190
191 </sect2>
192
193 <sect2 role="content">
194 <title>Contents</title>
195
196 <segmentedlist>
197 <segtitle>Installed Programs</segtitle>
198 <segtitle>Installed Libraries</segtitle>
199 <segtitle>Installed Directory</segtitle>
200
201 <seglistitem>
202 <seg>
203 asy, xasy
204 </seg>
205 <seg>
206 None
207 </seg>
208 <seg>
209 /opt/texlive/&texlive-year;texmf-dist/asymptote,
210 /opt/texlive/&texlive-year;/doc/asymptote,
211 /opt/texlive/&texlive-year;/info/asymptote
212 </seg>
213 </seglistitem>
214 </segmentedlist>
215
216 <variablelist>
217 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
218 <?dbfo list-presentation="list"?>
219 <?dbhtml list-presentation="table"?>
220
221 <varlistentry id="asy">
222 <term><command>asy</command></term>
223 <listitem>
224 <para>
225 is a vector graphics program.
226 </para>
227 <indexterm zone="asymptote asy">
228 <primary sortas="b-asy">asy</primary>
229 </indexterm>
230 </listitem>
231 </varlistentry>
232
233 <varlistentry id="xasy">
234 <term><command>xasy</command></term>
235 <listitem>
236 <para>
237 is a Python3 script providing a Qt5 GUI for asy.
238 </para>
239 <indexterm zone="asymptote xasy">
240 <primary sortas="b-xasy">xasy</primary>
241 </indexterm>
242 </listitem>
243 </varlistentry>
244
245 </variablelist>
246
247 </sect2>
248
249</sect1>
Note: See TracBrowser for help on using the repository browser.