source: pst/typesetting/asymptote.xml@ 769d8c8

10.0 10.1 11.0 11.1 11.2 11.3 12.0 12.1 7.10 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind kea ken/TL2024 ken/inkscape-core-mods ken/tuningfonts lazarus lxqt nosym perl-modules plabs/newcss plabs/python-mods python3.11 qt5new rahul/power-profiles-daemon renodr/vulkan-addition trunk upgradedb xry111/intltool xry111/llvm18 xry111/soup3 xry111/test-20220226 xry111/xf86-video-removal
Last change on this file since 769d8c8 was 769d8c8, checked in by Ken Moffat <ken@…>, 8 years ago

asymptote - Remove duplicate sed, thanks to Bruce for spotting it. Not replying to the list, my posts there are not getting through - for this, I have already spent too much time on it, I'm not going to test the suggested change and I wish I had saved time by just using the patch.

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

  • Property mode set to 100644
File size: 7.7 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-repo;/sourceforge/asymptote/asymptote-&asymptote-version;.src.tgz">
8 <!ENTITY asymptote-download-ftp " ">
9 <!ENTITY asymptote-md5sum "199e971792072527bd0cb1583d8ef3fb">
10 <!ENTITY asymptote-size "3.2 MB">
11 <!ENTITY asymptote-buildsize "162 MB">
12 <!ENTITY asymptote-time "1.8 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 &lfs78_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"/>,
77 <xref linkend="texlive"/>
78 </para>
79
80 <bridgehead renderas="sect4">Recommended</bridgehead>
81 <para role="recommended">
82 <xref linkend="freeglut"/> (for 3D drawing),
83 <xref linkend="gc"/>
84 </para>
85
86 <bridgehead renderas="sect4">Optional</bridgehead>
87 <para role="optional">
88 <ulink url="http://www.fftw.org/">FFTW</ulink>,
89 <xref linkend="gsl"/>
90 </para>
91
92 <bridgehead renderas="sect4">Optional (at runtime, to use xasy)</bridgehead>
93 <para role="optional">
94 <ulink url="http://effbot.org/downloads/Imaging-1.1.7.tar.gz">Imaging</ulink>
95 which needs
96 <!-- hard-coded because I'm not sure if the book scripts will find this and move
97 it to svn/ -->
98 <ulink url="http://www.linuxfromscratch.org/patches/downloads/Imaging/Imaging-1.1.7-freetype_fix-1.patch">Imaging-1.1.7-freetype_fix-1.patch</ulink>
99 and has a build dependency of
100 <xref linkend="python2"/> (re-) compiled against <xref linkend="tk"/>
101 to provide <filename>_tkinter.so</filename>
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 <para>
113 If you have installed version 2 of libgsl, fix a build failure:
114 </para>
115
116<screen><userinput>sed -i -e '/ellint_D/s/3/2/' \
117 -e '/ellint_D/s/.SYM(n)//' gsl.cc</userinput></screen>
118
119 <para>
120 Install <application>asymptote</application> by running the following
121 commands:
122 </para>
123
124<screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &amp;&amp;
125./configure --prefix=/opt/texlive/&texlive-year; \
126 --bindir=/opt/texlive/&texlive-year;/bin/$TEXARCH \
127 --datarootdir=/opt/texlive/&texlive-year;/texmf-dist \
128 --infodir=/opt/texlive/&texlive-year;/texmf-dist/doc/info \
129 --libdir=/opt/texlive/&texlive-year;/texmf-dist \
130 --mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man \
131 --enable-gc=system \
132 --with-latex=/opt/texlive/&texlive-year;/texmf-dist/tex/latex \
133 --with-context=/opt/texlive/&texlive-year;/texmf-dist/tex/context/third &amp;&amp;
134make</userinput></screen>
135
136 <para>
137 To test the results, issue: <command>make check</command>.
138 </para>
139
140 <para>
141 Now, as the <systemitem class="username">root</systemitem> user:
142 </para>
143
144<screen role="root"><userinput>make install</userinput></screen>
145
146 </sect2>
147
148 <sect2 role="commands">
149 <title>Command Explanations</title>
150
151 <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
152 href="../../xincludes/tex-prefix.xml"/>
153
154 <para>
155 Exceptionally, asymptote will create an <filename
156 class="directory">asymptote/</filename> subdirectory for
157 <filename>asymptote.info</filename> even though the
158 <filename>asy-faq.info</filename> file will be in the main
159 <application>texlive</application>
160 <filename class="directory">info/</filename> directory. Both files
161 <emphasis>will</emphasis> be found by <command>info</command>.
162 </para>
163
164 <para><parameter>sed ...</parameter>: change the reference to
165 <literal>gsl_sf_ellint_D</literal> to use addGSLDOUBLE2Func and to therefore
166 omit the last parameter, for gsl major version 2.</para>
167
168 <para><parameter>--libdir=/opt/texlive/&texlive-year;/texmf-dist;</parameter>:
169 This parameter ensures that the <filename class="directory">asymptote</filename>
170 directory will similarly overwrite any files installed by install-tl-unx.</para>
171
172 <para><parameter>--enable-gc=system</parameter>: this ensures that the system
173 version of <filename class="libraryfile">libgc.so</filename> will be used
174 instead of the version shipped with this package.</para>
175
176 <para><parameter>--with-latex= ... --with-context=</parameter>: These switches
177 ensure that style files and a tex file will be installed into the
178 <application>texlive</application> directories instead of creating a
179 <filename class="directory">texmf-local</filename> directory for them.</para>
180
181 </sect2>
182
183 <sect2 role="content">
184 <title>Contents</title>
185
186 <segmentedlist>
187 <segtitle>Installed Programs</segtitle>
188 <segtitle>Installed Libraries</segtitle>
189 <segtitle>Installed Directory</segtitle>
190
191 <seglistitem>
192 <seg>
193 asy, xasy
194 </seg>
195 <seg>
196 None
197 </seg>
198 <seg>
199 /opt/texlive/&texlive-year;texmf-dist/asymptote,
200 /opt/texlive/&texlive-year;/doc/asymptote,
201 /opt/texlive/&texlive-year;/info/asymptote
202 </seg>
203 </seglistitem>
204 </segmentedlist>
205
206 <variablelist>
207 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
208 <?dbfo list-presentation="list"?>
209 <?dbhtml list-presentation="table"?>
210
211 <varlistentry id="asy">
212 <term><command>asy</command></term>
213 <listitem>
214 <para>
215 is a vector graphics program.
216 </para>
217 <indexterm zone="asymptote asy">
218 <primary sortas="b-asy">asy</primary>
219 </indexterm>
220 </listitem>
221 </varlistentry>
222
223 <varlistentry id="xasy">
224 <term><command>xasy</command></term>
225 <listitem>
226 <para>
227 is a Python script providing the preliminary GUI for asy. It can be
228 used for final adjustments of an existing asy file.
229 </para>
230 <indexterm zone="asymptote xasy">
231 <primary sortas="b-xasy">xasy</primary>
232 </indexterm>
233 </listitem>
234 </varlistentry>
235
236 </variablelist>
237
238 </sect2>
239
240</sect1>
Note: See TracBrowser for help on using the repository browser.