# Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/dev-java/javolution/javolution-6.0.0.ebuild,v 1.2 2014/07/20 06:56:06 ercpe Exp $ EAPI="5" # Documentation generation is broken. JAVA_PKG_IUSE="source" # doc inherit java-pkg-2 java-ant-2 unpacker DESCRIPTION="Java Solution for Real-Time and Embedded Systems" SRC_URI="http://dev.gentoo.org/~tomwij/files/dist/${P}.tar.xz http://dev.gentoo.org/~tomwij/files/dist/${P}-build.xml.tar.xz" HOMEPAGE="http://javolution.org" LICENSE="BSD" SLOT="6" KEYWORDS="~amd64 ~x86" CDEPEND="dev-java/osgi-core-api:0 dev-java/osgi-compendium:0" DEPEND=">=virtual/jdk-1.5 ${CDEPEND} app-arch/unzip" RDEPEND=">=virtual/jre-1.5 ${CDEPEND}" EANT_BUILD_TARGET="package" JAVA_PKG_BSFIX_NAME="build.xml maven-build.xml" JAVA_ANT_REWRITE_CLASSPATH="yes" EANT_GENTOO_CLASSPATH="osgi-core-api,osgi-compendium" src_unpack() { unpacker ${P}.tar.xz cd "${S}" || die unpacker ${P}-build.xml.tar.xz } java_prepare() { # Remove bundled libraries. find . -name '*.jar' -print -delete || die find . -name '*.class' -print -delete || die epatch "${FILESDIR}"/${P}-javadoc-fix.patch } src_install() { java-pkg_newjar core-java/target/${PN}-core-java-${PV}.jar dohtml index.html # Documentation generation is broken. #use doc && java-pkg_dojavadoc core-java/target/site/apidocs use source && java-pkg_dosrc core-java/src/main/java/${PN} }