The OpenSP package contains a C++ library for using SGML/XML files. This is useful for validating, parsing and manipulating SGML and XML documents.
Download (HTTP): http://downloads.sourceforge.net/openjade/OpenSP-1.5.2.tar.gz
Download MD5 sum: 670b223c5d12cee40c9137be86b6c39b
Download size: 1.5 MB
Estimated disk space required: 32 MB
Estimated build time: 1.0 SBU
User Notes: http://wiki.linuxfromscratch.org/blfs/wiki/opensp
Install OpenSP by running the following commands:
sed -i 's:32,:253,:' lib/Syntax.cxx && sed -i 's:LITLEN 240 :LITLEN 8092:' \ unicode/{gensyntax.pl,unicode.syn} && ./configure --prefix=/usr --disable-static --disable-doc-build \ --enable-default-catalog=/etc/sgml/catalog --enable-http \ --enable-default-search-path=/usr/share/sgml && make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2
To test the results, issue make check. As many as eight of the 22 tests may fail. Do not be alarmed.
Now, as the root user:
make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2 install && ln -v -sf onsgmls /usr/bin/nsgmls && ln -v -sf osgmlnorm /usr/bin/sgmlnorm && ln -v -sf ospam /usr/bin/spam && ln -v -sf ospcat /usr/bin/spcat && ln -v -sf ospent /usr/bin/spent && ln -v -sf osx /usr/bin/sx && ln -v -sf osx /usr/bin/sgml2xml && ln -v -sf libosp.so /usr/lib/libsp.so
sed -i 's:32,:253,:...unicode.syn}: These seds prevent some annoying messages that may otherwise appear while running openjade.
--disable-static: This switch prevents the building of the static library.
--enable-http: This switch adds support for HTTP.
--enable-default-catalog=/etc/sgml/catalog: This switch sets the path to the centralized catalog.
--enable-default-search-path: This switch sets the default value of SGML_SEARCH_PATH.
--enable-xml-messages: This switch adds support for XML Formatted Messages.
--disable-doc-build: This switch prevents the configure script checking if you have xmlto installed. If you have xmlto, you can remove this option.
make pkgdatadir=/usr/share/sgml/OpenSP-1.5.2: This sets the pkgdatadir variable in the Makefile from /usr/share/OpenSP to /usr/share/sgml/OpenSP-1.5.2.
ln -v -sf ...: These commands create the SP equivalents of OpenSP executables and libraries.
Last updated on 2007-01-15 17:25:53 -0600