glfs/archive/py2cairo.xml
Bruce Dubbs 7979906f44 Update to pycairo-1.13.2. Combines
build for python2 and python3. Py2cairo archived.



git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@18756 af4574ff-66df-0310-9fd7-8a98e5e911e0
2017-05-22 20:46:50 +00:00

140 lines
3.9 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 py2cairo-download-http
"http://cairographics.org/releases/py2cairo-&py2cairo-version;.tar.bz2">
<!ENTITY py2cairo-download-ftp " ">
<!ENTITY py2cairo-md5sum "20337132c4ab06c1146ad384d55372c5">
<!ENTITY py2cairo-size "400 KB">
<!ENTITY py2cairo-buildsize "3.6 MB">
<!ENTITY py2cairo-time "less than 0.1 SBU">
]>
<!-- Begin Py2cairo -->
<sect2 id="py2cairo" xreflabel="Py2cairo-&py2cairo-version;">
<title>Py2cairo-&py2cairo-version;</title>
<indexterm zone="py2cairo">
<primary sortas="a-Py2cairo">Py2cairo</primary>
</indexterm>
<sect3 role="package">
<title>Introduction to Py2cairo Module</title>
<para>
Py2cairo provides <application>Python 2</application> bindings to
<application>Cairo</application>.
</para>
&lfs80_checked;
<bridgehead renderas="sect4">Package Information</bridgehead>
<itemizedlist spacing="compact">
<listitem>
<para>
Download (HTTP): <ulink url="&py2cairo-download-http;"/>
</para>
</listitem>
<listitem>
<para>
Download (FTP): <ulink url="&py2cairo-download-ftp;"/>
</para>
</listitem>
<listitem>
<para>
Download MD5 sum: &py2cairo-md5sum;
</para>
</listitem>
<listitem>
<para>
Download size: &py2cairo-size;
</para>
</listitem>
<listitem>
<para>
Estimated disk space required: &py2cairo-buildsize;
</para>
</listitem>
<listitem>
<para>
Estimated build time: &py2cairo-time;
</para>
</listitem>
</itemizedlist>
<bridgehead renderas="sect4">Py2cairo Dependencies</bridgehead>
<bridgehead renderas="sect5">Required</bridgehead>
<para role="required">
<xref linkend="python2"/> and
<xref linkend="cairo"/>
</para>
<bridgehead renderas="sect5">Optional</bridgehead>
<para role="optional">
<ulink url="http://pytest.org">pytest</ulink>
</para>
<para condition="html" role="usernotes">
User Notes: <ulink url="&blfs-wiki;/py2cairo"/>
</para>
</sect3>
<sect3 role="installation">
<title>Installation of Py2cairo</title>
<para>
Install <application>Py2cairo</application> by running the following
commands:
</para>
<screen><userinput>./waf configure --prefix=/usr &amp;&amp;
./waf build</userinput></screen>
<para>
The test suite must be run after the package is installed.
</para>
<para>
Now, as the <systemitem class="username">root</systemitem> user:
</para>
<screen role="root"><userinput>./waf install</userinput></screen>
<para>
The test suite requires the optional <application>pytest</application>
package. If installed, it is run by changing to the
<filename class='directory'>test</filename> directory and running
<command>py.test</command> as an unprivileged user.
</para>
</sect3>
<sect3 role="content">
<title>Contents</title>
<segmentedlist>
<segtitle>Installed Programs</segtitle>
<segtitle>Installed Library</segtitle>
<segtitle>Installed Directory</segtitle>
<seglistitem>
<seg>
None
</seg>
<seg>
_cairo.so
</seg>
<seg>
/usr/include/pycairo and
/usr/lib/python&python2-majorver;/site-packages/cairo
</seg>
</seglistitem>
</segmentedlist>
</sect3>
</sect2>
<!-- End Py2cairo -->