mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-26 08:42:12 +08:00
ccd74eb158
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@16391 af4574ff-66df-0310-9fd7-8a98e5e911e0
151 lines
4.2 KiB
XML
151 lines
4.2 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 pycairo-download-http
|
|
"http://cairographics.org/releases/pycairo-&pycairo-version;.tar.bz2">
|
|
<!ENTITY pycairo-download-ftp " ">
|
|
<!ENTITY pycairo-md5sum "e6fd3f2f1e6a72e0db0868c4985669c5">
|
|
<!ENTITY pycairo-size "244 KB">
|
|
<!ENTITY pycairo-buildsize "3.0 MB">
|
|
<!ENTITY pycairo-time "less than 0.1 SBU">
|
|
]>
|
|
|
|
<!-- Begin PyCairo -->
|
|
<sect2 id="pycairo" xreflabel="PyCairo-&pycairo-version;">
|
|
|
|
<title>PyCairo-&pycairo-version;</title>
|
|
|
|
<indexterm zone="pycairo">
|
|
<primary sortas="a-PyCairo">PyCairo</primary>
|
|
</indexterm>
|
|
|
|
<sect3 role="package">
|
|
<title>Introduction to PyCairo Module</title>
|
|
|
|
<para>
|
|
PyCairo provides <application>Python 3</application> bindings to
|
|
<application>Cairo</application>.
|
|
</para>
|
|
|
|
&lfs78_checked;
|
|
|
|
<bridgehead renderas="sect4">Package Information</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Download (HTTP): <ulink url="&pycairo-download-http;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download (FTP): <ulink url="&pycairo-download-ftp;"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download MD5 sum: &pycairo-md5sum;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Download size: &pycairo-size;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated disk space required: &pycairo-buildsize;
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Estimated build time: &pycairo-time;
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect4">Additional Downloads</bridgehead>
|
|
<itemizedlist spacing="compact">
|
|
<listitem>
|
|
<para>
|
|
Required patch:
|
|
<ulink url="&patch-root;/pycairo-&pycairo-version;-waf_unpack-1.patch"/>
|
|
</para>
|
|
</listitem>
|
|
<listitem>
|
|
<para>
|
|
Required patch:
|
|
<ulink url="&patch-root;/pycairo-&pycairo-version;-waf_python_3_4-1.patch"/>
|
|
</para>
|
|
</listitem>
|
|
</itemizedlist>
|
|
|
|
<bridgehead renderas="sect4">PyCairo Dependencies</bridgehead>
|
|
|
|
<bridgehead renderas="sect5">Required</bridgehead>
|
|
<para role="required">
|
|
<xref linkend="cairo"/> and
|
|
<xref linkend="python3"/>
|
|
</para>
|
|
|
|
<para condition="html" role="usernotes">
|
|
User Notes: <ulink url="&blfs-wiki;/pycairo"/>
|
|
</para>
|
|
</sect3>
|
|
|
|
<sect3 role="installation">
|
|
<title>Installation of PyCairo</title>
|
|
|
|
<para>
|
|
Install <application>PyCairo</application> by running the following
|
|
commands:
|
|
</para>
|
|
|
|
<screen><userinput>patch -Np1 -i ../pycairo-&pycairo-version;-waf_unpack-1.patch &&
|
|
wafdir=$(./waf unpack) &&
|
|
pushd $wafdir &&
|
|
patch -Np1 -i ../../pycairo-&pycairo-version;-waf_python_3_4-1.patch &&
|
|
popd &&
|
|
unset wafdir &&
|
|
PYTHON=/usr/bin/python3 ./waf configure --prefix=/usr &&
|
|
./waf build</userinput></screen>
|
|
|
|
<para>
|
|
This package does not come with a test suite.
|
|
</para>
|
|
|
|
<para>
|
|
Now, as the <systemitem class="username">root</systemitem> user:
|
|
</para>
|
|
|
|
<screen role="root"><userinput>./waf install</userinput></screen>
|
|
|
|
</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>
|
|
None
|
|
</seg>
|
|
<seg>
|
|
/usr/include/pycairo and
|
|
/usr/lib/python&python3-majorver;/site-packages/cairo
|
|
</seg>
|
|
</seglistitem>
|
|
</segmentedlist>
|
|
</sect3>
|
|
</sect2>
|
|
<!-- End PyCairo -->
|