summaryrefslogtreecommitdiffstats
path: root/office/fop/fop.SlackBuild
diff options
context:
space:
mode:
Diffstat (limited to 'office/fop/fop.SlackBuild')
-rw-r--r--office/fop/fop.SlackBuild25
1 files changed, 14 insertions, 11 deletions
diff --git a/office/fop/fop.SlackBuild b/office/fop/fop.SlackBuild
index df361192a0..82871cd44f 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