glfs/xsoft/other/asymptote.xml

218 lines
6.5 KiB
XML

<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
"http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
<!ENTITY % general-entities SYSTEM "../../general.ent">
%general-entities;
<!ENTITY asymptote-download-http "&sourceforge-repo;/sourceforge/asymptote/asymptote-&asymptote-version;.src.tgz">
<!ENTITY asymptote-download-ftp " ">
<!ENTITY asymptote-md5sum "9c817c2a9763294d3b66e4b57054eed3">
<!ENTITY asymptote-size "1.8 MB">
<!ENTITY asymptote-buildsize "163 MB">
<!ENTITY asymptote-time "2.1 SBU">
]>
<sect1 id="asymptote" xreflabel="asymptote-&asymptote-version;">
<?dbhtml filename="asymptote.html"?>
<sect1info>
<othername>$LastChangedBy$</othername>
<date>$Date$</date>
</sect1info>
<title>asymptote-&asymptote-version;</title>
<indexterm zone="asymptote">
<primary sortas="a-asymptote">asymptote</primary>
</indexterm>
<sect2 role="package">
<title>Introduction to asymptote</title>
<para>
<application>Asymptote</application> is a powerful descriptive vector
graphics language that provides a natural coordinate-based framework for
technical drawing. Labels and equations can be typeset with LaTeX.
</para>
&lfs76_checked;
<bridgehead renderas="sect3">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&asymptote-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&asymptote-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &asymptote-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &asymptote-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &asymptote-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &asymptote-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Additional Downloads</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Required patch:
<ulink url="&patch-root;/asymptote-&asymptote-version;-ghostscript_fix-1.patch"/>
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect3">Asymptote Dependencies</bridgehead>
<bridgehead renderas="sect4">Required</bridgehead>
<para role="required">
<xref linkend="gs"/>,
<xref linkend="texlive"/>
</para>
<bridgehead renderas="sect4">Recommended</bridgehead>
<para role="recommended">
<xref linkend="freeglut"/> (for 3D drawing)
</para>
<bridgehead renderas="sect4">Optional</bridgehead>
<para role="optional">
<ulink url="http://www.fftw.org/">FFTW</ulink>,
<xref linkend="gsl"/>
</para>
<bridgehead renderas="sect4">Optional (at runtime, to use xasy)</bridgehead>
<para role="optional">
<ulink url="http://effbot.org/downloads/Imaging-1.1.7.tar.gz">Imaging</ulink>
which needs
<!-- hard-coded because I'm not sure if the book scripts will find this and move
it to svn/ -->
<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>
and has a build dependency of
<xref linkend="python2"/> (re-) compiled against <xref linkend="tk"/>
to provide <filename>_tkinter.so</filename>
</para>
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/asymptote"/>
</para>
</sect2>
<sect2 role="installation">
<title>Installation of asymptote</title>
<para>
Install <application>asymptote</application> by running the following
commands:
</para>
<screen><userinput>export TEXARCH=$(uname -m | sed -e 's/i.86/i386/' -e 's/$/-linux/') &amp;&amp;
patch -Np1 -i ../asymptote-&asymptote-version;-ghostscript_fix-1.patch &amp;&amp;
./configure --prefix=/opt/texlive/&texlive-year; \
--bindir=/opt/texlive/&texlive-year;/bin/$TEXARCH \
--datarootdir=/opt/texlive/&texlive-year; \
--libdir=/opt/texlive/&texlive-year;/texmf-dist \
--mandir=/opt/texlive/&texlive-year;/texmf-dist/doc/man &amp;&amp;
make</userinput></screen>
<para>
To test the results, issue: <command>make check</command>.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>make install</userinput></screen>
</sect2>
<sect2 role="commands">
<title>Command Explanations</title>
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
href="../../xincludes/tex-prefix.xml"/>
<para><parameter>--libdir=/opt/texlive/&texlive-year;/texmf-dist;</parameter>:
This parameter ensures that the <filename class="directory">asymptote</filename>
directory will similarly overwrite any files installed by install-tl-unx.</para>
</sect2>
<sect2 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Libraries</segtitle>
<segtitle>Installed Directory</segtitle>
<seglistitem>
<seg>
asy, xasy
</seg>
<seg>
None
</seg>
<seg>
/opt/texlive/&texlive-year;/asymptote, /opt/texlive/&texlive-year;/doc/asymptote,
/opt/texlive/&texlive-year;/info/asymptote
</seg>
</seglistitem>
</segmentedlist>
<variablelist>
<bridgehead renderas="sect3">Short Descriptions</bridgehead>
<?dbfo list-presentation="list"?>
<?dbhtml list-presentation="table"?>
<varlistentry id="asy">
<term><command>asy</command></term>
<listitem>
<para>
is a vector graphics program.
</para>
<indexterm zone="asymptote asy">
<primary sortas="b-asy">asy</primary>
</indexterm>
</listitem>
</varlistentry>
<varlistentry id="xasy">
<term><command>xasy</command></term>
<listitem>
<para>
is a Python script providing the preliminary GUI for asy. It can be
used for final adjustments of an existing asy file.
</para>
<indexterm zone="asymptote xasy">
<primary sortas="b-xasy">xasy</primary>
</indexterm>
</listitem>
</varlistentry>
</variablelist>
</sect2>
</sect1>