diff options
author | Lenard Spencer <lenardrspencer@gmail.com> | 2019-12-28 09:28:40 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2019-12-28 09:28:40 +0700 |
commit | f1ca8941c65f7258ba159057a26fe990ccdd9c57 (patch) | |
tree | 1a1d3d6c0e34e8e14f875caa5dbcb239263e4ae1 /office/fop/fop.SlackBuild | |
parent | 6f8f791295c1cdcda471b29a4ab6d4f1d09867cc (diff) |
office/fop: Updated for version 2.4.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'office/fop/fop.SlackBuild')
-rw-r--r-- | office/fop/fop.SlackBuild | 25 |
1 files changed, 14 insertions, 11 deletions
diff --git a/office/fop/fop.SlackBuild b/office/fop/fop.SlackBuild index df361192a03be..82871cd44f708 100644 --- a/office/fop/fop.SlackBuild +++ b/office/fop/fop.SlackBuild @@ -23,8 +23,8 @@ # ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. PRGNAM=fop -VERSION=${VERSION:-2.0} -BUILD=${BUILD:-2} +VERSION=${VERSION:-2.4} +BUILD=${BUILD:-1} TAG=${TAG:-_SBo} if [ -z "$ARCH" ]; then @@ -69,23 +69,26 @@ find -L . \ \( -perm 666 -o -perm 664 -o -perm 640 -o -perm 600 -o -perm 444 \ -o -perm 440 -o -perm 400 \) -exec chmod 644 {} \; -# Fix an Issue with Java 8 thanks LFS =] +# Fix an Issue with Java 8 (thanks LFS): sed -i '\@</javad@i\ <arg value="-Xdoclint:none"/>\ -<arg value="--allow-script-in-comments"/>' build.xml +<arg value="--allow-script-in-comments"/>' fop/build.xml -# Compiles with apache-ant: -ant compile -ant jar-main -ant javadocs +# Increase hyphenation stacksize from 512k to 1M (thanks LFS): +sed -e '/hyph\.stack/s/512k/1M/' -i fop/build.xml -mv build/javadocs . +# Compiles with apache-ant: +ant -f fop/build.xml compile +ant -f fop/build.xml jar-main +ant -f fop/build.xml javadocs mkdir -p $PKG/opt/$PRGNAM-$VERSION install -v -d -m755 $PKG/opt/$PRGNAM-$VERSION/ -cp -va build conf examples fop* javadocs lib status.xml \ - $PKG/opt/$PRGNAM-$VERSION +( cd fop +mv build/javadocs . +cp -va build conf examples javadocs fop* lib \ + $PKG/opt/$PRGNAM-$VERSION ) find $PKG -print0 | xargs -0 file | grep -e "executable" -e "shared object" | grep ELF \ | cut -f 1 -d : | xargs strip --strip-unneeded 2> /dev/null || true |