# $Id$ PNAME="xerces2-j" PVER="2.11.0" PBUILD="r1" PCATEGORIE="dev-java" DEPEND=">= virtual/java" DESCRIPTION="Xerces2-J is a validating XML parser written in a portable subset of Java." HOMEPAGE="http://xml.apache.org/xerces2-j/" SRCFILE="Xerces-J-bin.${PVER}.tar.gz" SRCDIR="${BUILDDIR}/${PNAME/2/}_${PVER//./_}" SRC_URI=( http://www.apache.org/dist/xerces/j/binaries/${SRCFILE} mirror://${PNAME}/${SRCFILE} ) UP2DATE="updatecmd http://www.apache.org/dist/xerces/j/binaries/ | grep 'tar.gz' | sed -n -e 's/.*Xerces-J-bin\.\(.*\)\.tar.*/\1/;$ p'" src_prepare() { munpack ${SRCFILE} || die cd ${SRCDIR} rm xercesSamples.jar || die } src_install() { cd ${SRCDIR} || die # needed directories minstalldir /etc/env.d || die minstalldir /usr/share/${PNAME}-${PVER}/lib || die # classpath env MCONFIG="/etc/env.d/22java-app-${PNAME}" mclearconfig || die local i for i in resolver.jar serializer.jar xercesImpl.jar xml-apis.jar do minstallfile ${i} /usr/share/${PNAME}-${PVER}/lib || die maddconfig "CLASSPATH=/usr/share/${PNAME}-${PVER}/lib/${i}" || die done minstalldocs LICENSE NOTICE Readme.html || die }