# $Id$ PNAME="xalan-c" PVER="1.11.0_pre797991" PBUILD="r2" PCATEGORIE="dev-util" DEPEND=">= dev-util/xerces-c-3.1" DESCRIPTION="Xalan is an XSLT processor for transforming XML documents into HTML, text, or other XML document types." HOMEPAGE="http://xml.apache.org/xalan-c/" SRCFILE="Xalan-C_r${PVER#*pre}-src.tar.gz" SRCDIR="${BUILDDIR}/xml-xalan" SRC_URI=( http://www.apache.org/dist/xml/${PNAME}/${SRCFILE} mirror://${PNAME}/${SRCFILE} mirror://${PNAME}-${PVER}-as-needed.patch mirror://${PNAME}-${PVER}-bugfixes.patch mirror://${PNAME}-${PVER}-parallel-build.patch ) UP2DATE="updatecmd http://www.apache.org/dist/xml/${PNAME}/source/ | sed -n -e 's/.*Xalan-C_\(.*\)-src.*/\1/;$ p' | sed 's:_:.:g'" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} mpatch ${PNAME}-${PVER}-as-needed.patch || die mpatch ${PNAME}-${PVER}-bugfixes.patch || die mpatch ${PNAME}-${PVER}-parallel-build.patch || die } src_compile() { cd ${SRCDIR}/c || die export XERCESCROOT=/usr/include/xercesc || die export XALANCROOT=${SRCDIR}/c || die ./runConfigure -p linux -P /usr -C --libdir=/usr/$(mlibdir) || die mmake -j1 || die } src_install() { cd ${SRCDIR}/c || die export XERCESCROOT=/usr/include/xercesc || die export XALANCROOT=${SRCDIR}/c || die mmake DESTDIR=${BINDIR} install || die cd ${SRCDIR} minstalldocs c/{KEYS,LICENSE,NOTICE,README,readme.html} || die }