Browse Source

ap/fop: Upgraded to fop-2.4.

current-20191101
Damien Goutte-Gattat 2 years ago
parent
commit
b9081c4355
  1. 2
      ap/fop/checksums
  2. 1
      ap/fop/fop-2.1-bin.tar.gz.sha1
  3. 2
      ap/fop/fop-ttfreader.sh
  4. 49
      ap/fop/fop.SlackBuild
  5. 4
      ap/fop/fop.sh
  6. 1
      ap/fop/offo-hyphenation-binary_v2.0.zip.sha1
  7. 2
      ap/fop/ttf2fop.sh

2
ap/fop/checksums

@ -0,0 +1,2 @@
d97f7318ca1aab9937d68aa6ce2a00379d8d4a0b692515246c84d328a6bf4f0c fop-2.4-bin.tar.gz
3b503122b488bd30f658e9757c3b3066dd7a59f56c3a9bbb3eaae2d23b7d883f offo-hyphenation-compiled.zip

1
ap/fop/fop-2.1-bin.tar.gz.sha1

@ -1 +0,0 @@
429959116320d52898361ba9a64d49df947161d3 fop-2.1-bin.tar.gz

2
ap/fop/fop-ttfreader.sh

@ -1,4 +1,4 @@
#!/bin/sh
LIBS=/usr/lib/apache-xml:/usr/lib/apache-xml/*
LIBS=/usr/lib/apache-fop:/usr/lib/apache-fop/*
java -cp $LIBS org.apache.fop.fonts.apps.TTFReader $@

49
ap/fop/fop.SlackBuild

@ -1,6 +1,6 @@
#!/bin/bash
# Build script for Slackware
# Copyright (C) 2008,2010,2011,2012,2015,2016 Damien Goutte-Gattat
# Copyright (C) 2008,2010-2012,2015,2016,2019 Damien Goutte-Gattat
#
# Redistribution and use of this script, with or without modifications,
# is permitted provided that the following conditions are met:
@ -25,15 +25,15 @@
# Latest fop sourcecode is available at:
# <http://xmlgraphics.apache.org/fop/>.
#
# Depends: ap/xalan-j
# Depends: ap/docbook
# Source package infos
NAMESRC=${NAMESRC:-fop}
VERSION=${VERSION:-2.1}
VERSION=${VERSION:-2.4}
ARCHIVE=${ARCHIVE:-$NAMESRC-$VERSION-bin.tar.gz}
WGET=${WGET:-http://mirrors.gigenet.com/apache/xmlgraphics/fop/binaries/$ARCHIVE}
HYPH_SRC=${HYPH_SRC:-offo-hyphenation-binary_v2.0.zip}
HYPH_SRC=${HYPH_SRC:-offo-hyphenation-compiled.zip}
HYPH_WGET=${HYPH_WGET:-http://downloads.sourceforge.net/offo/$HYPH_SRC}
# Built package infos
@ -67,8 +67,7 @@ fi
if [ ! -r $HYPH_SRC ]; then
wget "$HYPH_WGET"
fi
sha1sum -c $ARCHIVE.sha1
sha1sum -c $HYPH_SRC.sha1
sha256sum -c checksums
NAME=$(tar ft $ARCHIVE | head -n 1 | cut -d / -f 1)
# Extract
@ -79,19 +78,21 @@ cd $NAME
unzip $CWD/$HYPH_SRC
# Install Java libraries
mkdir -p $PKG/usr/lib/apache-xml
mkdir -p $PKG/usr/lib/apache-fop
install -m 644 \
lib/avalon-framework-api-4.3.1.jar \
lib/avalon-framework-impl-4.3.1.jar \
lib/batik-all-1.8.jar \
lib/commons-io-1.3.1.jar \
lib/commons-logging-1.0.4.jar \
lib/fontbox-1.8.5.jar \
lib/xml-apis-ext-1.3.04.jar \
lib/xmlgraphics-commons-2.1.jar \
offo-hyphenation-binary/fop-hyph.jar \
$PKG/usr/lib/apache-xml
install -m 644 build/fop.jar $PKG/usr/lib/apache-xml/fop-$VERSION.jar
fop/lib/batik-all-1.12.jar \
fop/lib/commons-io-1.3.1.jar \
fop/lib/commons-logging-1.0.4.jar \
fop/lib/fontbox-2.0.16.jar \
fop/lib/serializer-2.7.2.jar \
fop/lib/xalan-2.7.2.jar \
fop/lib/xercesImpl-2.12.0.jar \
fop/lib/xml-apis-1.4.01.jar \
fop/lib/xml-apis-ext-1.3.04.jar \
fop/lib/xmlgraphics-commons-2.4.jar \
offo-hyphenation-compiled/fop-hyph.jar \
$PKG/usr/lib/apache-fop
install -m 644 fop/build/fop.jar $PKG/usr/lib/apache-fop/fop-$VERSION.jar
# Install executable scripts
install -D -m 755 $CWD/fop.sh $PKG/usr/bin/fop
@ -100,16 +101,16 @@ install -m 755 $CWD/ttf2fop.sh $PKG/usr/bin/ttf2fop
# Install the documentation
mkdir -p $PKG/usr/doc/$NAME/offo
install -m 644 LICENSE README $PKG/usr/doc/$NAME
install -m 644 KEYS LICENSE NOTICE README $PKG/usr/doc/$NAME
mv javadocs $PKG/usr/doc/$NAME/apidocs
mv examples $PKG/usr/doc/$NAME
install -m 644 offo-hyphenation-binary/*.html $PKG/usr/doc/$NAME/offo
cp -r offo-hyphenation-binary/{images,skin} $PKG/usr/doc/$NAME/offo
mv fop/examples $PKG/usr/doc/$NAME
install -m 644 offo-hyphenation-compiled/*.html $PKG/usr/doc/$NAME/offo
cp -r offo-hyphenation-compiled/{images,skin} $PKG/usr/doc/$NAME/offo
# Create metric files for some standard fonts
mkdir -p $PKG/usr/share/fop/fonts
( cd $PKG/usr/share/fop/fonts
sh $CWD/ttf2fop.sh -l $PKG/usr/lib/apache-xml \
sh $CWD/ttf2fop.sh -l $PKG/usr/lib/apache-fop \
/usr/share/fonts/TTF/DejaVu* /usr/share/fonts/TTF/Liberation* \
> fonts.xml
)
@ -117,7 +118,7 @@ mkdir -p $PKG/usr/share/fop/fonts
# Install configuration file
mkdir $PKG/etc
xsltproc --stringparam fontspec $PKG/usr/share/fop/fonts/fonts.xml \
$CWD/merge-font-specs.xsl conf/fop.xconf | \
$CWD/merge-font-specs.xsl fop/conf/fop.xconf | \
xmllint --format - > $PKG/etc/fop.conf.new
# Copy slack-desc and doinst.sh files

4
ap/fop/fop.sh

@ -1,7 +1,7 @@
#!/bin/sh
DB_EXT=/usr/share/xml/docbook/xsl-stylesheets-1.78.1/extensions/xalan27.jar
LIBS=/usr/lib/apache-xml:/usr/lib/apache-xml/*:$DB_EXT
DB_EXT=/usr/share/xml/docbook/xsl-stylesheets-ns-1.79.2/extensions/xalan27.jar
LIBS=/usr/lib/apache-fop:/usr/lib/apache-fop/*:$DB_EXT
PROGRAM_CLASS=org.apache.fop.cli.Main
CONF=/etc/fop.conf

1
ap/fop/offo-hyphenation-binary_v2.0.zip.sha1

@ -1 +0,0 @@
e6f4631ff33fea67a3945d9b1cd6f5855270c8bb offo-hyphenation-binary_v2.0.zip

2
ap/fop/ttf2fop.sh

@ -9,7 +9,7 @@
set -e
program_name=${0##*/}
fop_libs_dir=/usr/lib/apache-xml
fop_libs_dir=/usr/lib/apache-fop
fop_fonts_dir=/usr/share/fop/fonts
die()

Loading…
Cancel
Save