source: pst/typesetting/asymptote.xml@ ac1fadc

10.0 10.1 11.0 11.1 11.2 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind lazarus perl-modules plabs/python-mods qt5new trunk upgradedb xry111/intltool xry111/soup3 xry111/test-20220226
Last change on this file since ac1fadc was ac1fadc, checked in by Ken Moffat <ken@…>, 5 years ago

In asymptote, change the optional dep which provides PIL modules from the very old Imaging to the currently-maintained Pillow.

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

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