Difference between revisions of "LibXSLT"

From CBLFS
Jump to navigationJump to search
(I filled in the package description.)
(remove patch. bug fixes with new version)
Line 3: Line 3:
 
!Download Source:
 
!Download Source:
 
| ftp://xmlsoft.org/libxml2/libxslt-{{LibXSLT-Version}}.tar.gz
 
| ftp://xmlsoft.org/libxml2/libxslt-{{LibXSLT-Version}}.tar.gz
|-
 
!Required Patch:
 
| http://svn.cross-lfs.org/svn/repos/patches/libxslt/libxslt-{{LibXSLT-Version}}-segfault-1.patch
 
|-
 
 
|}
 
|}
  
Line 33: Line 29:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../libxslt-{{LibXSLT-Version}}-segfault-1.patch &&
 
 
  ./configure --prefix=/usr &&
 
  ./configure --prefix=/usr &&
 
  make
 
  make
Line 47: Line 42:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../libxslt-{{LibXSLT-Version}}-segfault-1.patch &&
 
 
  CC="gcc ${BUILD32}" USE_ARCH=32 ./configure --prefix=/usr &&
 
  CC="gcc ${BUILD32}" USE_ARCH=32 ./configure --prefix=/usr &&
 
  make
 
  make
Line 60: Line 54:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../libxslt-{{LibXSLT-Version}}-segfault-1.patch &&
 
 
  CC="gcc ${BUILDN32}" USE_ARCH=n32 ./configure --prefix=/usr \
 
  CC="gcc ${BUILDN32}" USE_ARCH=n32 ./configure --prefix=/usr \
 
     --libdir=/usr/lib32 &&
 
     --libdir=/usr/lib32 &&
Line 74: Line 67:
 
Compile the package:
 
Compile the package:
  
patch -Np1 -i ../libxslt-{{LibXSLT-Version}}-segfault-1.patch &&
 
 
  CC="gcc ${BUILD64}" USE_ARCH=64 ./configure --prefix=/usr \
 
  CC="gcc ${BUILD64}" USE_ARCH=64 ./configure --prefix=/usr \
 
     --libdir=/usr/lib64 &&
 
     --libdir=/usr/lib64 &&

Revision as of 07:07, 15 March 2007

Download Source: ftp://xmlsoft.org/libxml2/libxslt-1.1.28.tar.gz

Introduction to LibXSLT

LibXSLT is the XSLT C library developed for the Gnome project (but usable outside of the Gnome platform). XSLT itself is a an XML language to define transformation for XML. LibXSLT is based on LibXML2 - the XML C library developed for the GNOME project. It also implements most of the EXSLT set of processor-portable extensions functions and some of Saxon's evaluate and expressions extensions.

Project Home Page: http://xmlsoft.org/XSLT/

Dependencies

Required

Optional

Test Suite Notes

If you wish to run the 32-bit test suites in a 64-bit environment (i.e. the 32Bit and N32 sections), you need to use make USE_ARCH=32 check. If you do not include USE_ARCH=32, then the Python tests will fail.

Non-Multilib

Compile the package:

./configure --prefix=/usr &&
make

Install the package

make install

Multilib

32Bit

Compile the package:

CC="gcc ${BUILD32}" USE_ARCH=32 ./configure --prefix=/usr &&
make

Install the package

make install &&
mv -v /usr/bin/xslt-config{,-32}

N32

Compile the package:

CC="gcc ${BUILDN32}" USE_ARCH=n32 ./configure --prefix=/usr \
    --libdir=/usr/lib32 &&
make

Install the package

make install &&
mv -v /usr/bin/xslt-config{,-n32}

64Bit

Compile the package:

CC="gcc ${BUILD64}" USE_ARCH=64 ./configure --prefix=/usr \
    --libdir=/usr/lib64 &&
make

Install the package

make install &&
mv -v /usr/bin/xslt-config{,-64} &&
ln -sfv multiarch_wrapper /usr/bin/xslt-config

Contents

Installed Programs: xslt-config and xsltproc
Installed Libraries: libexslt.{so,a}, libxslt.{so,a} and optionally, libxsltmod.{so,a} Python modules
Installed Directories: /usr/include/lib{e}xslt, /usr/lib/libxslt-plugins, /usr/share/doc/libxslt-1.1.28, and /usr/share/doc/libxslt-python-1.1.28

Short Descriptions

xslt-config is used to find out the pre-processor, linking and compiling flags necessary to use the libxslt libraries in 3rd-party programs.
xsltproc is used to apply XSLT stylesheets to XML documents.
libxslt.{so,a} provides extensions to the libxml2 libraries to parse files that use the XSLT format.
libexslt.{so,a} is used to provide extensions to XSLT functions.