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 "d1c8926697e1e2c1a1564f852ebd2276">
|
---|
10 | <!ENTITY asymptote-size "4.0 MB">
|
---|
11 | <!ENTITY asymptote-buildsize "189 MB">
|
---|
12 | <!ENTITY asymptote-time "2.5 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 | &lfs90_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"/>,
|
---|
84 | <xref linkend="glew"/>,
|
---|
85 | <xref linkend="glm"/> and
|
---|
86 | <xref linkend="libtirpc"/>
|
---|
87 | </para>
|
---|
88 |
|
---|
89 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
90 | <para role="optional">
|
---|
91 | <xref linkend="fftw"/>,
|
---|
92 | <xref linkend="gsl"/>,
|
---|
93 | <xref linkend="libsigsegv"/>, and
|
---|
94 | <ulink url="https://dvisvgm.de/">dvisvgm</ulink>
|
---|
95 |
|
---|
96 | </para>
|
---|
97 |
|
---|
98 | <bridgehead renderas="sect4">Optional (at runtime, to use xasy)</bridgehead>
|
---|
99 | <para role="optional">
|
---|
100 | <ulink url="https://pypi.org/project/PyQt5/">PyQt5</ulink> (not tested),
|
---|
101 | which has a build dependency of <xref linkend="qt5"/>
|
---|
102 | </para>
|
---|
103 |
|
---|
104 | <para condition="html" role="usernotes">
|
---|
105 | User Notes: <ulink url="&blfs-wiki;/asymptote"/>
|
---|
106 | </para>
|
---|
107 | </sect2>
|
---|
108 |
|
---|
109 | <sect2 role="installation">
|
---|
110 | <title>Installation of asymptote</title>
|
---|
111 | <!--
|
---|
112 | <note>
|
---|
113 | <para>
|
---|
114 | At the moment, there are issues in building <application>dvisvgm</application>.
|
---|
115 | Without that, <command>asy</command> cannot create svg files. The current
|
---|
116 | source, for those who need it, can be found at <ulink url="https://dvisvgm.de/"/>
|
---|
117 | </para>
|
---|
118 | </note>
|
---|
119 | -->
|
---|
120 | <para>
|
---|
121 | Install <application>asymptote</application> by running the following
|
---|
122 | commands:
|
---|
123 | </para>
|
---|
124 |
|
---|
125 | <screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &&
|
---|
126 |
|
---|
127 | ./configure --prefix=/opt/texlive/&texlive-year; \
|
---|
128 | --bindir=/opt/texlive/&texlive-year;/bin/$TEXARCH \
|
---|
129 | --datarootdir=/opt/texlive/&texlive-year;/texmf-dist \
|
---|
130 | --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
|
---|
131 | --libdir=/opt/texlive/&texlive-year;/texmf-dist \
|
---|
132 | --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
|
---|
133 | --enable-gc=system \
|
---|
134 | --with-latex=/opt/texlive/&texlive-year;/texmf-dist/tex/latex \
|
---|
135 | --with-context=/opt/texlive/&texlive-year;/texmf-dist/tex/context/third &&
|
---|
136 |
|
---|
137 | make</userinput></screen>
|
---|
138 |
|
---|
139 | <para>
|
---|
140 | To test the results, issue: <command>make check</command>.
|
---|
141 | </para>
|
---|
142 |
|
---|
143 | <para>
|
---|
144 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
145 | </para>
|
---|
146 |
|
---|
147 | <screen role="root"><userinput>make install</userinput></screen>
|
---|
148 |
|
---|
149 | </sect2>
|
---|
150 |
|
---|
151 | <sect2 role="commands">
|
---|
152 | <title>Command Explanations</title>
|
---|
153 |
|
---|
154 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
155 | href="../../xincludes/tex-prefix.xml"/>
|
---|
156 |
|
---|
157 | <para><parameter>--libdir=/opt/texlive/&texlive-year;/texmf-dist;</parameter>:
|
---|
158 | This parameter ensures that the <filename class="directory">asymptote</filename>
|
---|
159 | directory will similarly overwrite any files installed by install-tl-unx.</para>
|
---|
160 |
|
---|
161 | <para><parameter>--enable-gc=system</parameter>: this ensures that the system
|
---|
162 | version of <filename class="libraryfile">libgc.so</filename> will be used
|
---|
163 | instead of the version shipped with this package.</para>
|
---|
164 |
|
---|
165 | <para><parameter>--with-latex= ... --with-context=</parameter>: These switches
|
---|
166 | ensure that style files and a tex file will be installed into the
|
---|
167 | <application>texlive</application> directories instead of creating a
|
---|
168 | <filename class="directory">texmf-local</filename> directory for them.</para>
|
---|
169 |
|
---|
170 | <!-- commenting for now: 2.44 installs asymptote.info in both places
|
---|
171 | so the old version no longer remains
|
---|
172 |
|
---|
173 | <para>
|
---|
174 | <command>rm -fv /opt/texlive/.../asymptote.info</command>:
|
---|
175 | This deletes the file installed by <application>texlive</application>.
|
---|
176 | Exceptionally, asymptote will create an <filename
|
---|
177 | class="directory">asymptote/</filename> subdirectory for its own
|
---|
178 | <filename>asymptote.info</filename> even though a possibly older
|
---|
179 | version from <xref linkend="texlive"/> is in the main
|
---|
180 | <application>texlive</application>
|
---|
181 | <filename class="directory">info/</filename> directory. Both the
|
---|
182 | new version and the existing <filename>asy-faq.info</filename>
|
---|
183 | <emphasis>will</emphasis> be found by <command>info</command>.
|
---|
184 | </para>-->
|
---|
185 |
|
---|
186 | </sect2>
|
---|
187 |
|
---|
188 | <sect2 role="content">
|
---|
189 | <title>Contents</title>
|
---|
190 |
|
---|
191 | <segmentedlist>
|
---|
192 | <segtitle>Installed Programs</segtitle>
|
---|
193 | <segtitle>Installed Libraries</segtitle>
|
---|
194 | <segtitle>Installed Directory</segtitle>
|
---|
195 |
|
---|
196 | <seglistitem>
|
---|
197 | <seg>
|
---|
198 | asy, xasy
|
---|
199 | </seg>
|
---|
200 | <seg>
|
---|
201 | None
|
---|
202 | </seg>
|
---|
203 | <seg>
|
---|
204 | /opt/texlive/&texlive-year;texmf-dist/asymptote,
|
---|
205 | /opt/texlive/&texlive-year;/doc/asymptote,
|
---|
206 | /opt/texlive/&texlive-year;/info/asymptote
|
---|
207 | </seg>
|
---|
208 | </seglistitem>
|
---|
209 | </segmentedlist>
|
---|
210 |
|
---|
211 | <variablelist>
|
---|
212 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
213 | <?dbfo list-presentation="list"?>
|
---|
214 | <?dbhtml list-presentation="table"?>
|
---|
215 |
|
---|
216 | <varlistentry id="asy">
|
---|
217 | <term><command>asy</command></term>
|
---|
218 | <listitem>
|
---|
219 | <para>
|
---|
220 | is a vector graphics program.
|
---|
221 | </para>
|
---|
222 | <indexterm zone="asymptote asy">
|
---|
223 | <primary sortas="b-asy">asy</primary>
|
---|
224 | </indexterm>
|
---|
225 | </listitem>
|
---|
226 | </varlistentry>
|
---|
227 |
|
---|
228 | <varlistentry id="xasy">
|
---|
229 | <term><command>xasy</command></term>
|
---|
230 | <listitem>
|
---|
231 | <para>
|
---|
232 | is a Python3 script providing a Qt5 GUI for asy.
|
---|
233 | </para>
|
---|
234 | <indexterm zone="asymptote xasy">
|
---|
235 | <primary sortas="b-xasy">xasy</primary>
|
---|
236 | </indexterm>
|
---|
237 | </listitem>
|
---|
238 | </varlistentry>
|
---|
239 |
|
---|
240 | </variablelist>
|
---|
241 |
|
---|
242 | </sect2>
|
---|
243 |
|
---|
244 | </sect1>
|
---|