mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-01-27 18:02:12 +08:00
Move swig and python to optional in subversion
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@12423 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
01832bf5be
commit
466d85a3db
@ -87,11 +87,8 @@
|
||||
|
||||
<bridgehead renderas="sect4">Recommended</bridgehead>
|
||||
<para role="recommended">
|
||||
<xref linkend="openssl"/>,
|
||||
<xref linkend="python2"/> (with sqlite support for the tests),
|
||||
<xref linkend="serf"/> (for handling http:// and https:// URLs), and
|
||||
<xref linkend="swig"/> (for building Perl, Python and optionally Ruby
|
||||
bindings)
|
||||
<xref linkend="openssl"/> and
|
||||
<xref linkend="serf"/> (for handling http:// and https:// URLs)
|
||||
</para>
|
||||
|
||||
<!-- support for berkeley db is deprecated since 1.8
|
||||
@ -114,7 +111,9 @@
|
||||
<xref linkend="cyrus-sasl"/>,
|
||||
<xref linkend="dbus"/>,
|
||||
<xref linkend="kdelibs"/> (for <ulink url="http://utils.kde.org/projects/kwalletmanager/">KWallet</ulink> support),
|
||||
<xref linkend="ruby"/>
|
||||
<xref linkend="python2"/> (with sqlite support for the tests),
|
||||
<xref linkend="ruby"/>, and
|
||||
<xref linkend="swig"/> (for building Perl, Python and Ruby bindings)
|
||||
</para>
|
||||
|
||||
<bridgehead renderas="sect4">Optional (for the Java Bindings)</bridgehead>
|
||||
@ -138,14 +137,10 @@
|
||||
commands:
|
||||
</para>
|
||||
|
||||
<screen><userinput>sed -i 's#Makefile.PL.in$#& libsvn_swig_perl#' Makefile.in &&
|
||||
./configure --prefix=/usr \
|
||||
<screen><userinput>./configure --prefix=/usr \
|
||||
--disable-static \
|
||||
--with-apache-libexecdir &&
|
||||
make &&
|
||||
make swig-pl &&
|
||||
make swig-py swig_pydir=/usr/lib/python&python2-majorver;/site-packages/libsvn \
|
||||
swig_pydir_extra=/usr/lib/python&python2-majorver;/site-packages/svn</userinput></screen>
|
||||
make</userinput></screen>
|
||||
|
||||
<para>
|
||||
If you have <xref linkend="doxygen"/> installed and you wish to build the
|
||||
@ -155,26 +150,32 @@ make swig-py swig_pydir=/usr/lib/python&python2-majorver;/site-packages/libsvn \
|
||||
<para>
|
||||
If you passed the <option>--enable-javahl</option> parameter to
|
||||
<command>configure</command> and wish to build the Java bindings, issue
|
||||
the following command:
|
||||
the following command: <command>make javahl</command>
|
||||
</para>
|
||||
|
||||
<screen><userinput>make javahl</userinput></screen>
|
||||
|
||||
<!-- <para>
|
||||
<para>
|
||||
If you have a multi core CPU and normally run <command>make</command> with
|
||||
multiple jobs (eg <command>make -j4</command>) then a bug in the
|
||||
<filename>Makefile</filename> will prevent the
|
||||
<application>Perl</application> bindings compiling correctly. Fix the
|
||||
<filename>Makefile</filename> with this sed:
|
||||
<command>sed -i 's#Makefile.PL.in$#& libsvn_swig_perl#' Makefile.in</command>
|
||||
</para>
|
||||
|
||||
<screen><userinput>sed -i 's#Makefile.PL.in$#& libsvn_swig_perl#' Makefile.in</userinput></screen>
|
||||
-->
|
||||
<para>
|
||||
To compile <application>Ruby</application>
|
||||
bindings, issue the following command:
|
||||
If you want to compile <application>Perl</application>,
|
||||
<application>Python2</application>, or <application>Ruby</application>
|
||||
bindings, issue any of the following command:
|
||||
</para>
|
||||
<para>
|
||||
<literallayout><command>make swig-pl</command> for <application>Perl</application>,
|
||||
<command>make swig-py \
|
||||
swig_pydir=/usr/lib/python&python2-majorver;/site-packages/libsvn \
|
||||
swig_pydir_extra=/usr/lib/python&python2-majorver;/site-packages/svn</command> for <application>Python</application>,
|
||||
<command>make swig-rb</command> for <application>Ruby</application>.
|
||||
</literallayout>
|
||||
</para>
|
||||
<screen><userinput>make swig-rb</userinput></screen>
|
||||
|
||||
<para>
|
||||
To test the results, issue: <command>make -k check</command>. One test
|
||||
@ -190,20 +191,17 @@ make swig-py swig_pydir=/usr/lib/python&python2-majorver;/site-packages/libsvn \
|
||||
<para>
|
||||
To test the results of any of the <application>SWIG</application>
|
||||
bindings, you can use any of the following commands:
|
||||
<command>make check-swig-pl</command>,
|
||||
<command> make check-swig-py</command>, or
|
||||
<command>make check-swig-rb</command>.
|
||||
</para>
|
||||
|
||||
<screen><userinput>make check-swig-pl &&
|
||||
make check-swig-py &&
|
||||
make check-swig-rb </userinput></screen>
|
||||
|
||||
<para>
|
||||
Now, as the <systemitem class="username">root</systemitem> user:
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>make install &&
|
||||
make install-swig-pl &&
|
||||
make install-swig-py swig_pydir=/usr/lib/python&python2-majorver;/site-packages/libsvn \
|
||||
swig_pydir_extra=/usr/lib/python&python2-majorver;/site-packages/svn &&
|
||||
install -v -m755 -d /usr/share/doc/subversion-&subversion-version; &&
|
||||
cp -v -R doc/* \
|
||||
/usr/share/doc/subversion-&subversion-version;</userinput></screen>
|
||||
@ -211,47 +209,41 @@ cp -v -R doc/* \
|
||||
<para>
|
||||
If you built the Java bindings, issue the following command as the
|
||||
<systemitem class="username">root</systemitem> user to install them:
|
||||
<command>make install-javahl</command>
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>make install-javahl</userinput></screen>
|
||||
|
||||
<para>
|
||||
If you built the <application>SWIG</application>
|
||||
<application>Ruby</application> bindings, issue the following commands
|
||||
as the <systemitem class="username">root</systemitem> user to install
|
||||
them:
|
||||
If you built the <application>Perl</application>,
|
||||
<application>Python2</application>, or
|
||||
<application>Ruby</application> bindings, issue any of the following
|
||||
commands as the <systemitem class="username">root</systemitem> user
|
||||
to install them:
|
||||
</para>
|
||||
<para>
|
||||
<literallayout><command>make install-swig-pl</command>
|
||||
<command>make install-swig-py \
|
||||
swig_pydir=/usr/lib/python&python2-majorver;/site-packages/libsvn \
|
||||
swig_pydir_extra=/usr/lib/python&python2-majorver;/site-packages/svn</command>
|
||||
<command>make install-swig-rb</command></literallayout>
|
||||
</para>
|
||||
|
||||
<screen role="root"><userinput>make install-swig-rb</userinput></screen>
|
||||
|
||||
</sect2>
|
||||
|
||||
<sect2 role="commands">
|
||||
<title>Command Explanations</title>
|
||||
|
||||
<para>
|
||||
<command>sed -i 's#Makefile.PL.in$...</command>: Corrects a
|
||||
bug in the <filename>Makefile</filename>, which prevents using
|
||||
parallel jobs for Perl bindings.
|
||||
</para>
|
||||
|
||||
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
||||
href="../../xincludes/static-libraries.xml"/>
|
||||
|
||||
<para>
|
||||
<parameter>--with-apache-libexecdir</parameter>:
|
||||
This switch sets <application>Apache HTTPD</application>
|
||||
module install dir.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<command>make swig-<language></command>: Builds <language>
|
||||
bindings.
|
||||
</para>
|
||||
|
||||
<para>
|
||||
<command>make install-swig-<language></command>: Installs
|
||||
<language> bindings.
|
||||
If <xref linkend="apache"/> is installed, the shared
|
||||
<application>Apache</application> modules are
|
||||
built. This switch allows to have those modules installed to
|
||||
<application>Apache</application>'s configured module dir instead
|
||||
of <filename class="directory">/usr/libexec</filename>. It has no effect
|
||||
if <application>Apache</application> is not installed.
|
||||
</para>
|
||||
|
||||
</sect2>
|
||||
@ -317,10 +309,10 @@ cp -v -R doc/* \
|
||||
</seg>
|
||||
<seg>
|
||||
/usr/include/subversion-1,
|
||||
/usr/lib/perl5/site_perl/&lfs-perl-version;/auto/SVN,
|
||||
/usr/lib/perl5/site_perl/&lfs-perl-version;/SVN,
|
||||
/usr/lib/python&python2-majorver;/site-packages/libsvn,
|
||||
/usr/lib/python&python2-majorver;/site-packages/svn,
|
||||
/usr/lib/perl5/site_perl/&lfs-perl-version;/auto/SVN (optional),
|
||||
/usr/lib/perl5/site_perl/&lfs-perl-version;/SVN (optional),
|
||||
/usr/lib/python&python2-majorver;/site-packages/libsvn (optional),
|
||||
/usr/lib/python&python2-majorver;/site-packages/svn (optional),
|
||||
/usr/lib/ruby/site_ruby/<x.y>/i686-linux/svn (optional),
|
||||
/usr/lib/ruby/site_ruby/<x.y>/svn (optional),
|
||||
<!-- /usr/lib/svn-python/libsvn (optional),
|
||||
|
Loading…
Reference in New Issue
Block a user