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
This commit is contained in:
parent
912596676a
commit
74cf7d2013
|
@ -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="-Xmx<your memory size>m" 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-<version>/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-<version>/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-<version>/lib/ for the licenses of this parts
|
||||
of code that for convenience are in the distribution of FOP.
|
||||
|
||||
=====================================================================
|
||||
_EOF
|
||||
;;
|
||||
esac
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
FOP_OPTS="-Xmx512m"
|
||||
FOP_HOME="/usr/share/fop-1.1"
|
|
@ -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 <carlo.dormeletti@email.it>"
|
||||
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
|
||||
}
|
||||
|
Loading…
Reference in New Issue