2014-06-15 15:04:47 +02:00
|
|
|
# Template file for 'apache-fop'
|
|
|
|
pkgname="apache-fop"
|
|
|
|
version="1.1"
|
2014-06-22 08:11:18 +02:00
|
|
|
revision=4
|
2014-06-15 15:04:47 +02:00
|
|
|
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/"
|
2014-06-22 12:48:37 +02:00
|
|
|
distfiles="http://mirror.dkd.de/apache/xmlgraphics/fop/source/fop-${version}-src.tar.gz
|
|
|
|
http://mirror.dkd.de/apache/xmlgraphics/fop/binaries/fop-${version}-bin.tar.gz"
|
|
|
|
checksum="58164cb3298d130522ecd445b8082c71c36242ea6464c8f02ab4157e4a332522
|
|
|
|
0697a90c2f0b0602bf707070267caecc59638a8bf7a719d5950acff764f57b8e"
|
2014-06-15 15:04:47 +02:00
|
|
|
only_for_archs="i686 x86_64"
|
2014-06-22 08:11:18 +02:00
|
|
|
hostmakedepends="oracle-jdk"
|
2014-06-15 15:04:47 +02:00
|
|
|
makedepends="apache-ant"
|
2014-06-22 12:48:37 +02:00
|
|
|
depends="oracle-jre "
|
2014-06-15 15:04:47 +02:00
|
|
|
wrksrc="fop-${version}"
|
2014-06-20 12:26:30 +02:00
|
|
|
|
2014-06-15 15:04:47 +02:00
|
|
|
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(){
|
2014-06-22 09:46:04 +02:00
|
|
|
source /etc/profile.d/oracle-jdk.sh
|
|
|
|
ant package
|
2014-06-15 15:04:47 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
do_install() {
|
2014-06-20 12:26:30 +02:00
|
|
|
_prefix="usr/share/fop"
|
|
|
|
_docs="usr/share/doc/fop-${version}"
|
2014-06-15 15:04:47 +02:00
|
|
|
vmkdir ${_prefix}
|
2014-06-20 12:26:30 +02:00
|
|
|
vmkdir ${_docs}
|
2014-06-15 15:04:47 +02:00
|
|
|
vmkdir ${_prefix}/build
|
|
|
|
vcopy "build/fop*.jar" ${_prefix}/build
|
|
|
|
vmkdir ${_prefix}/lib
|
|
|
|
vcopy "lib/*" ${_prefix}/lib
|
2014-06-20 12:26:30 +02:00
|
|
|
vmkdir ${_docs}/conf
|
|
|
|
vcopy "conf/*" ${_docs}/conf
|
|
|
|
vmkdir ${_docs}/examples
|
|
|
|
vcopy "examples/*" ${_docs}/examples
|
|
|
|
vmkdir ${_docs}/javadocs
|
2014-06-22 12:48:37 +02:00
|
|
|
vcopy "javadocs/*" ${_docs}/javadocs
|
2014-06-15 15:04:47 +02:00
|
|
|
vcopy fop ${_prefix}
|
|
|
|
vcopy fop.js ${_prefix}
|
2014-06-20 12:26:30 +02:00
|
|
|
vcopy KEYS ${_docs}
|
|
|
|
vcopy LICENSE ${_docs}
|
|
|
|
vcopy NOTICE ${_docs}
|
|
|
|
vcopy README ${_docs}
|
2014-06-15 15:04:47 +02:00
|
|
|
vcopy status.xml ${_prefix}
|
2014-06-20 12:26:30 +02:00
|
|
|
vcopy ${FILESDIR}/README.void ${_docs}
|
2014-06-15 15:04:47 +02:00
|
|
|
vinstall ${FILESDIR}/fop.conf 644 etc/
|
|
|
|
#create a handy symlink
|
|
|
|
vmkdir usr/bin
|
2014-06-18 11:35:12 +02:00
|
|
|
ln -sf /usr/share/fop/fop $DESTDIR/usr/bin/fop
|
2014-06-15 15:04:47 +02:00
|
|
|
}
|
|
|
|
|