# Copyright 1999-2007 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit eutils java-pkg-2 java-ant-2 subversion ESVN_REPO_URI="http://jeuclid.svn.sourceforge.net/svnroot/jeuclid/trunk/${PN}" ESVN_PROJECT="${PN}" DESCRIPTION="Core module of MathML rendering solution." HOMEPAGE="http://jeuclid.sourceforge.net" LICENSE="Apache-2.0" SLOT="0" RESTRICT="" KEYWORDS="~amd64 ~ia64 ~ppc ~ppc64 ~x86" COMMON_DEPEND=" dev-java/ant-core >=dev-java/batik-1.7 dev-java/commons-logging >=dev-java/xml-commons-external-1.3 >=dev-java/xmlgraphics-commons-1.3" RDEPEND=">=virtual/jre-1.5 ${COMMON_DEPEND}" DEPEND=">=virtual/jdk-1.5 app-arch/unzip ${COMMON_DEPEND}" S="${WORKDIR}/trunk/${PN}" src_unpack() { subversion_src_unpack cd ${S} # remove support of FreeHep from JAVA files (not needed for FOP plugin) rm -f src/main/java/net/sourceforge/jeuclid/converter/FreeHep* epatch ${FILESDIR}/${PN}-freehep.patch # create directory for dependencies mkdir lib cd lib # add dependencies into the lib dir java-pkg_jar-from ant-core ant.jar java-pkg_jar-from batik-1.7 batik-all.jar java-pkg_jar-from commons-logging commons-logging.jar java-pkg_jar-from xml-commons-external-1.3 xml-apis.jar java-pkg_jar-from xmlgraphics-commons-1 xmlgraphics-commons.jar } src_install() { java-pkg_dojar ${S}/target/${PN}.jar }