office/fop: Fix build against newer JDK.

Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
Willy Sudiarto Raharjo 2017-06-03 22:16:52 +07:00
parent 796c859cdd
commit a381363a48

View file

@ -24,7 +24,7 @@
PRGNAM=fop
VERSION=${VERSION:-2.0}
BUILD=${BUILD:-1}
BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@ -69,8 +69,10 @@ 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 BLFS =]
sed -i '\@</javad@i<arg value="-Xdoclint:none"/>' build.xml
# Fix an Issue with Java 8 thanks LFS =]
sed -i '\@</javad@i\
<arg value="-Xdoclint:none"/>\
<arg value="--allow-script-in-comments"/>' build.xml
# Compiles with apache-ant:
ant compile