# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 # $Header: /home/cvsroot/gentoo-x86/dev-java/batik/batik-1.1.1.ebuild,v 1.5 2003/09/08 07:20:54 msterret Exp $ S=${WORKDIR}/xml-batik DESCRIPTION="Batik is a Java(tm) technology based toolkit for applications or applets that want to use images in the Scalable Vector Graphics (SVG) format for various purposes, such as viewing, generation or manipulation." SRC_URI="http://xml.apache.org/batik/dist/${PN}-src-${PV}.zip" HOMEPAGE="http://xml.apache.org/batik/" IUSE="" DEPEND=">=virtual/jdk-1.3 dev-java/ant" REDEPND=">=virtual/jdk-1.3" LICENSE="Apache-1.1" SLOT="0" KEYWORDS="x86 ~sparc ~ppc" jarinto() { if [ "$1" == "/" ]; then export JARDESTTREE="" else export JARDESTTREE="$1" if [ ! -d "${D}${JARDESTTREE}" ]; then install -d "${D}${JARDESTTREE}" fi fi } src_unpack() { jar xvf ${DISTDIR}/${PN}-src-${PV}.zip } src_compile() { ant jars } src_install () { dojar ${P}/batik*.jar jarinto lib/lib dojar ${P}/lib/*.jar dodoc README LICENSE LICENSE.rhino dohtml -r ${P}/docs/ }