From 74cf7d20138c1400fc7fecd7d7661e6530190b22 Mon Sep 17 00:00:00 2001 From: onekk Date: Sun, 15 Jun 2014 15:04:47 +0200 Subject: [PATCH] New Package: apache-fop print formatter driven by XSL formatting objects Hope this is right with the correct symlinks settings it work for my environment Regards Carlo --- srcpkgs/apache-fop/INSTALL | 64 +++++++++++++++++++++++++++++++ srcpkgs/apache-fop/files/fop.conf | 2 + srcpkgs/apache-fop/template | 58 ++++++++++++++++++++++++++++ 3 files changed, 124 insertions(+) create mode 100644 srcpkgs/apache-fop/INSTALL create mode 100644 srcpkgs/apache-fop/files/fop.conf create mode 100644 srcpkgs/apache-fop/template diff --git a/srcpkgs/apache-fop/INSTALL b/srcpkgs/apache-fop/INSTALL new file mode 100644 index 00000000000..4704d521c56 --- /dev/null +++ b/srcpkgs/apache-fop/INSTALL @@ -0,0 +1,64 @@ +# +# This script will advise the user of the needed steps to +# configure apache-fop +# +case "${ACTION}" in +post) + + cat << _EOF +===================================================================== + +- FOP environment configuration file is: + + /etc/fop.conf + + it is preconfigured as follow: + + FOP_OPTS="-Xmx512m" + FOP_HOME="/usr/share/fop-1.1" + + note in FOPS_OPTS="-Xmxm" is preconfigured as 512 Mb + if you want use a different amount of memory modify it according your + needs. + + According to my limited knowledge of FOP the configuration file for + the part that produce the documentations reside in a different file in + XML format, see an example in: + + /usr/share/fop-/conf/ + + For hint about this configurations see the proper page at: + + http://xmlgraphics.apache.org/fop/1.1/configuration.html + + For hints on usign fop see: + + http://wiki.apache.org/xmlgraphics-fop/FrontPage + + In this package I've included the full documentation in HTML format + in: + + /usr/share/fop-/javadocs/ + + Happy FOPping! + +===================================================================== + + You may need to reboot to ensure that PATH is update correctly, + for the impatients, if you want you can type + + $ source /etc/profile + + and check the PATH. + +===================================================================== + + Some part of the code of FOP are not licensed under Apache-2.0, + see in /usr/share/fop-/lib/ for the licenses of this parts + of code that for convenience are in the distribution of FOP. + +===================================================================== +_EOF + ;; +esac + diff --git a/srcpkgs/apache-fop/files/fop.conf b/srcpkgs/apache-fop/files/fop.conf new file mode 100644 index 00000000000..8c5ef85b50e --- /dev/null +++ b/srcpkgs/apache-fop/files/fop.conf @@ -0,0 +1,2 @@ +FOP_OPTS="-Xmx512m" +FOP_HOME="/usr/share/fop-1.1" diff --git a/srcpkgs/apache-fop/template b/srcpkgs/apache-fop/template new file mode 100644 index 00000000000..15f153dcd25 --- /dev/null +++ b/srcpkgs/apache-fop/template @@ -0,0 +1,58 @@ +# Template file for 'apache-fop' +pkgname="apache-fop" +version="1.1" +revision=1 +short_desc="Java print formatter driven by XSL formatting objects (XSL-FO) and an output independent formatter" +maintainer="Carlo Dormeletti " +license="Apache-2.0" +homepage="http://xmlgraphics.apache.org/fop/" +distfiles="http://mirror.dkd.de/apache/xmlgraphics/fop/source/fop-${version}-src.tar.gz" +checksum="58164cb3298d130522ecd445b8082c71c36242ea6464c8f02ab4157e4a332522" +only_for_archs="i686 x86_64" +hostmakedepends="jdk" +makedepends="apache-ant" +depends="jre " +wrksrc="fop-${version}" +_prefix="usr/share/fop-${version}" +conf_files="/etc/fop.conf" + +if [ "$XBPS_TARGET_MACHINE" = "x86_64" ]; then + makedepends+=" JAI" + depends+=" JAI" +elif [ "$XBPS_TARGET_MACHINE" = "i686" ]; then + makedepends+=" JAI" + depends+=" JAI" +fi + +do_build(){ + JAVA_HOME=/usr/share/java ant package + JAVA_HOME=/usr/share/java ant javadocs +} + +do_install() { + vmkdir ${_prefix} + vmkdir ${_prefix}/build + vcopy "build/fop*.jar" ${_prefix}/build + vmkdir ${_prefix}/lib + vcopy "lib/*" ${_prefix}/lib + vmkdir ${_prefix}/conf + vcopy "conf/*" ${_prefix}/conf + vmkdir ${_prefix}/examples + vcopy "examples/*" ${_prefix}/examples + vmkdir ${_prefix}/hyph + vcopy "hyph/*" ${_prefix}/hyph + vmkdir ${_prefix}/javadocs + vcopy "build/javadocs/*" ${_prefix}/javadocs + vcopy fop ${_prefix} + vcopy fop.js ${_prefix} + vcopy KEYS ${_prefix} + vcopy LICENSE ${_prefix} + vcopy NOTICE ${_prefix} + vcopy README ${_prefix} + vcopy status.xml ${_prefix} + vinstall ${FILESDIR}/fop.conf 644 etc/ + #create a handy symlink + vmkdir usr/bin + ln -sf /usr/share/fop-${version}/fop $DESTDIR/usr/bin/fop +} +