diff options
author | Thorn Inurcide <thorn-inurcide@hotmail.com> | 2015-04-26 13:58:43 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2015-04-26 13:58:43 +0700 |
commit | ef68d125f9493684533a3f6cae23869a87c3dbba (patch) | |
tree | 20df812cd2ae8a3557a756a26a273455e7e2d196 | |
parent | da3c2b3480e758ce363b475ccd496943cc35e92d (diff) | |
download | slackbuilds-ef68d125f9493684533a3f6cae23869a87c3dbba.tar.gz |
office/fop: Added (print formatter).
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
-rw-r--r-- | office/fop/README | 8 | ||||
-rw-r--r-- | office/fop/README.postinst | 13 | ||||
-rw-r--r-- | office/fop/fop.SlackBuild | 110 | ||||
-rw-r--r-- | office/fop/fop.info | 10 | ||||
-rw-r--r-- | office/fop/slack-desc | 19 |
5 files changed, 160 insertions, 0 deletions
diff --git a/office/fop/README b/office/fop/README new file mode 100644 index 0000000000..2deacbff89 --- /dev/null +++ b/office/fop/README @@ -0,0 +1,8 @@ +Apache FOP is a print formatter driven by XSL formatting objects. It +is a Java application that reads a formatting object tree conforming +to the XSL 1.1 Recommendation (05 December 2006) and then turns it +into a PDF document, certain other output formats or allows you to +preview it directly on screen. + +Note that not all parts of the XSL 1.1 specification have yet been +implemented. diff --git a/office/fop/README.postinst b/office/fop/README.postinst new file mode 100644 index 0000000000..d079a0e881 --- /dev/null +++ b/office/fop/README.postinst @@ -0,0 +1,13 @@ +After installing, create .foprc in your home dir with the following + +FOP_OPTS="-Xmx###m" +FOP_HOME="/opt/fop" + +Delete and replace the #'s with the amount of RAM your computer has +in megabytes. + +Use can run "free -m" in the terminal to get the info: +Example : + +FOP_OPTS="-Xmx1024m" // If you have a GB RAM +FOP_HOME="/opt/fop" diff --git a/office/fop/fop.SlackBuild b/office/fop/fop.SlackBuild new file mode 100644 index 0000000000..0b7e2f712a --- /dev/null +++ b/office/fop/fop.SlackBuild @@ -0,0 +1,110 @@ +#!/bin/sh + +# Slackware build script for fop + +# Copyright 2015 Thorn Inurcide USA +# All rights reserved. +# +# Redistribution and use of this script, with or without modification, is +# permitted provided that the following conditions are met: +# +# 1. Redistributions of this script must retain the above copyright +# notice, this list of conditions and the following disclaimer. +# +# THIS SOFTWARE IS PROVIDED BY THE AUTHOR "AS IS" AND ANY EXPRESS OR IMPLIED +# WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF +# MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO +# EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, +# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, +# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; +# OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, +# WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR +# OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF +# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + +PRGNAM=fop +VERSION=${VERSION:-1.1} +BUILD=${BUILD:-1} +TAG=${TAG:-_SBo} + +# Automatically determine the architecture we're building on: +if [ -z "$ARCH" ]; then + case "$( uname -m )" in + i?86) ARCH=i486 ;; + arm*) ARCH=arm ;; + # Unless $ARCH is already set, use uname -m for all other archs: + *) ARCH=$( uname -m ) ;; + esac +fi + +CWD=$(pwd) +TMP=${TMP:-/tmp/SBo} +PKG=$TMP/package-$PRGNAM +OUTPUT=${OUTPUT:-/tmp} + +if [ "$ARCH" = "i486" ]; then + SLKCFLAGS="-O2 -march=i486 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "i686" ]; then + SLKCFLAGS="-O2 -march=i686 -mtune=i686" + LIBDIRSUFFIX="" +elif [ "$ARCH" = "x86_64" ]; then + SLKCFLAGS="-O2 -fPIC" + LIBDIRSUFFIX="64" +else + SLKCFLAGS="-O2" + LIBDIRSUFFIX="" +fi + +set -e + +rm -rf $PKG +mkdir -p $TMP $PKG $OUTPUT +cd $TMP +rm -rf $PRGNAM-$VERSION +tar xvf $CWD/$PRGNAM-$VERSION-src.tar.gz +cd $PRGNAM-$VERSION +chown -R root:root . +find -L . \ + \( -perm 777 -o -perm 775 -o -perm 750 -o -perm 711 -o -perm 555 \ + -o -perm 511 \) -exec chmod 755 {} \; -o \ + \( -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 + +# Compiles with apache-ant: +ant compile +ant jar-main +ant javadocs + +mv build/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 + +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 + +# Create fop symlink to /usr/bin: +mkdir -p $PKG/usr/bin +( ln -sf /opt/${PRGNAM}-${VERSION}/${PRGNAM} $PKG/usr/bin/ ) + +# Symlink it all to /opt/fop so the .foprc won't need edited every update: +( cd $PKG/opt ; ln -sf ${PRGNAM}-${VERSION} ${PRGNAM} ) + +mkdir -p $PKG/usr/doc/$PRGNAM-$VERSION +cp -a \ + README NOTICE LICENSE KEYS \ + $PKG/usr/doc/$PRGNAM-$VERSION +cat $CWD/$PRGNAM.SlackBuild > $PKG/usr/doc/$PRGNAM-$VERSION/$PRGNAM.SlackBuild + +mkdir -p $PKG/install +cat $CWD/slack-desc > $PKG/install/slack-desc + +cd $PKG +/sbin/makepkg -l y -c n $OUTPUT/$PRGNAM-$VERSION-$ARCH-$BUILD$TAG.${PKGTYPE:-tgz} diff --git a/office/fop/fop.info b/office/fop/fop.info new file mode 100644 index 0000000000..6fa2af1035 --- /dev/null +++ b/office/fop/fop.info @@ -0,0 +1,10 @@ +PRGNAM="fop" +VERSION="1.1" +HOMEPAGE="www.apache.org" +DOWNLOAD="https://archive.apache.org/dist/xmlgraphics/fop/source/fop-1.1-src.tar.gz" +MD5SUM="7b63af514b28c06fe710a794cbf4d68e" +DOWNLOAD_x86_64="" +MD5SUM_x86_64="" +REQUIRES="apache-ant jai" +MAINTAINER="Thorn Inurcide" +EMAIL="thorn-inurcide@hotmail.com" diff --git a/office/fop/slack-desc b/office/fop/slack-desc new file mode 100644 index 0000000000..db6fddeee2 --- /dev/null +++ b/office/fop/slack-desc @@ -0,0 +1,19 @@ +# HOW TO EDIT THIS FILE: +# The "handy ruler" below makes it easier to edit a package description. +# Line up the first '|' above the ':' following the base package name, and +# the '|' on the right side marks the last column you can put a character in. +# You must make exactly 11 lines for the formatting to be correct. It's also +# customary to leave one space after the ':' except on otherwise blank lines. + + |-----handy-ruler------------------------------------------------------| +fop: fop (print formatter) +fop: +fop: Apache FOP is a print formatter driven by XSL formatting objects. It +fop: is a Java application that reads a formatting object tree conforming +fop: to the XSL 1.1 Recommendation (05 December 2006) and then turns it +fop: into a PDF document, certain other output formats or allows you to +fop: preview it directly on screen. Note that not all parts of the XSL +fop: 1.1 specification have yet been implemented. +fop: +fop: +fop: Home: apache.org |