CVS: crater/doc-tools/openjade BUILD, NONE, 1.1 DEPENDS, NONE, 1.1 DETAILS, NONE, 1.1 POST_REMOVE, NONE, 1.1 PRE_REMOVE, NONE, 1.1 postinstall, NONE, 1.1

nhudson at lunar-linux.org nhudson at lunar-linux.org
Thu Jul 24 03:06:30 GMT 2003


Update of /var/cvs/lunar/crater/doc-tools/openjade
In directory dbguin.lunar-linux.org:/tmp/cvs-serv11184/openjade

Added Files:
	BUILD DEPENDS DETAILS POST_REMOVE PRE_REMOVE postinstall 
Log Message:

Initial import of new docbook system, Im putting it in crater till now till 
I can get everything working correctly.  Hopefully this wont be a bitch to fix


--- NEW FILE: BUILD ---
(
  CATALOGDIR="/usr/share/sgml/dsssl/$MODULE-$VERSION"
  PTEXTD="$CATALOGDIR/pubtext"

  ./configure --build=$BUILD                                 \
              --prefix=/usr                                  \
              --bindir=/usr/bin                              \
              --sbindir=/usr/sbin                            \
              --datadir=/usr/share                           \
              --infodir=/usr/share/info                      \
              --mandir=/usr/share/man                        \
              --localstatedir=/var                           \
              --libdir=/usr/lib                              \
              --includedir=/usr/include                      \
              --enable-http                                  \
              --disable-shared                               \
              --enable-mif                                   \
              --enable-default-catalog=/etc/sgml/catalog     \
              --enable-default-search-path=/usr/share/sgml   &&

  make all LDFLAGS=-all-static                               &&
  prepare_install                                            &&
  make install                                               &&
  if ! [ -d "$CATALOGDIR" ]; then 
       mkdir -p $CATALOGDIR
  fi                                                         &&
  cp -r pubtext   $CATALOGDIR                                &&
  ln -sf $PTEXTD/html.soc $PTEXTD/catalog                    &&
  cp -r dsssl/*   $CATALOGDIR                                &&
  cp -r testsuite $CATALOGDIR                                &&
  cp -r contrib   $CATALOGDIR                                &&
  cp -r unicode   $CATALOGDIR                                &&
  cp -r develdoc  $CATALOGDIR                                &&
  ln -sf `which openjade` /usr/bin/jade                      &&
  ln -sf `which onsgmls` /usr/bin/nsgmls 
) > $C_FIFO 2>&1

--- NEW FILE: DEPENDS ---
depends  sgml-common &&
depends  opensp

--- NEW FILE: DETAILS ---
          MODULE=openjade
         VERSION=1.3.2
          SOURCE=$MODULE-$VERSION.tar.gz
         SOURCE2=releasenotes.html
SOURCE_DIRECTORY=$BUILD_DIRECTORY/$MODULE-$VERSION
   SOURCE_URL[0]=$SFORGE_URL/$MODULE/$SOURCE
  SOURCE2_URL[0]=$SFORGE_URL/$MODULE/$SOURCE2
        WEB_SITE=http://openjade.sourceforge.net
         ENTERED=20010922
         UPDATED=20030102
           SHORT="openjade is an implementation of DSSSL SGML/XML"
cat << EOF
Jade is James Clark's implementation of DSSSL -- Document Style
Semantics and Specification Language -- an ISO standard for formatting
SGML (and XML) documents.
OpenJade is a project undertaken by the DSSSL community to maintain and
extend Jade, as well as the related SP suite of SGML/XML processing
tools. OpenJade and OpenSP are distributed under the same license as
Jade
EOF

--- NEW FILE: POST_REMOVE ---
rm -fr /usr/share/doc/openjade 
rm -fr /usr/share/sgml/openjade* 
rm -fr /usr/share/sgml/dsssl/$MODULE-$VERSION

--- NEW FILE: PRE_REMOVE ---
CATALOGDIR="/usr/share/sgml/openjade-1.3"
centralized="/etc/sgml/catalog"

/usr/bin/install-catalog --remove $centralized $CATALOGDIR/dsssl/catalog
/usr/bin/install-catalog --remove $centralized $CATALOGDIR/pubtext/catalog
/usr/bin/install-catalog --remove $centralized $CATALOGDIR/contrib/catalog
/usr/bin/install-catalog --remove $centralized $CATALOGDIR/unicode/catalog

--- NEW FILE: postinstall ---
cd $SOURCE_DIRECTORY
CATALOGDIR="/usr/share/sgml/openjade-1.3"
centralized="/etc/sgml/catalog"

if ! [ -e "$centralized" ]; then
     echo "Creating $centralized!" 
     mkdir -p /etc/sgml
     touch $centralized
fi                                             &&

/usr/bin/install-catalog --add $centralized $CATALOGDIR/dsssl/catalog       &&
/usr/bin/install-catalog --add $centralized $CATALOGDIR/pubtext/catalog     &&
/usr/bin/install-catalog --add $centralized $CATALOGDIR/contrib/catalog     &&
/usr/bin/install-catalog --add $centralized $CATALOGDIR/unicode/catalog     &&

message "Testing openjade install!"            &&
export SGML_CATALOG_FILES=/usr/share/sgml/docbook/sgml-dtd-4.1/catalog      &&

pwd
mkdir testkit                                  &&
( 
  cd testkit                                   &&
  wget http://docbook.sourceforge.net/release/dsssl/current/doc/testdata/jtest.sgm &&
  wget http://docbook.sourceforge.net/release/dsssl/current/doc/testdata/jtest.dsl &&

  /usr/bin/jade -t rtf -d jtest.dsl jtest.sgm  &&

  if [ -e jtest.rtf ]; then
    message ""
    message "Openjade install is good!"
  fi
)





More information about the Lunar-commits mailing list