From ac93c6ab2076c54b894a5061d1a83f5d06315613 Mon Sep 17 00:00:00 2001 From: Vlastimil Babka Date: Wed, 20 May 2009 16:03:46 +0000 Subject: Version bump, thanks to andrewktest@yandex.ru and other devs working on this in java-overlay. (Portage version: 2.2_rc33/cvs/Linux x86_64) --- dev-java/aspectwerkz/aspectwerkz-2.0.ebuild | 80 +++++++++++++++++++++++++++++ 1 file changed, 80 insertions(+) create mode 100644 dev-java/aspectwerkz/aspectwerkz-2.0.ebuild (limited to 'dev-java/aspectwerkz/aspectwerkz-2.0.ebuild') diff --git a/dev-java/aspectwerkz/aspectwerkz-2.0.ebuild b/dev-java/aspectwerkz/aspectwerkz-2.0.ebuild new file mode 100644 index 000000000000..6185763df96e --- /dev/null +++ b/dev-java/aspectwerkz/aspectwerkz-2.0.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2009 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/aspectwerkz/aspectwerkz-2.0.ebuild,v 1.3 2009/05/20 16:03:46 caster Exp $ + +EAPI=2 + +JAVA_PKG_IUSE="doc java5 source" + +inherit java-pkg-2 java-ant-2 eutils + +DESCRIPTION="AspectWerkz is a dynamic, lightweight and high-performant AOP/AOSD framework for Java." +SRC_URI="http://dist.codehaus.org/${PN}/distributions/${P}.zip" +HOMEPAGE="http://aspectwerkz.codehaus.org" +LICENSE="LGPL-2.1" +SLOT="2" +KEYWORDS="~amd64 ~ppc ~ppc64 ~x86" +IUSE="" +# bug 203268 +RESTRICT="test" + +COMMON_DEP=" + dev-java/asm:1.5 + dev-java/concurrent-util:0 + dev-java/dom4j:1 + dev-java/jrexx:0 + dev-java/trove:0 + dev-java/qdox:1.6 + dev-java/junit:0" +RDEPEND=" + !java5? ( >=virtual/jre-1.4 ) + java5? ( >=virtual/jre-1.5 ) + ${COMMON_DEP}" +DEPEND=" + !java5? ( >=virtual/jdk-1.4 ) + java5? ( >=virtual/jdk-1.5 ) + ${COMMON_DEP} + app-arch/unzip" + +java_prepare() { + # unit tests need this + chmod +x "bin/${PN}" || die + epatch "${FILESDIR}/${P}-gentoo.patch" + + find . -name '*.jar' -delete || die + + cd "${S}/lib" + java-pkg_jar-from asm-1.5 + java-pkg_jar-from concurrent-util + java-pkg_jar-from dom4j-1 + java-pkg_jar-from jrexx + java-pkg_jar-from junit + java-pkg_jar-from trove + java-pkg_jar-from qdox-1.6 +} + +_eant() { + local antflags + use java5 && antflags="-Djava.version=1.5" || antflags="-Djava.version=1.4" + eant ${antflags} "${@}" + +} + +src_compile() { + _eant dist #precompiled javadocs +} + +src_test() { + _eant test +} + +src_install() { + use source && java-pkg_dosrc src/* + # other stuff besides javadoc here too + use doc && java-pkg_dohtml -r docs/* + + cd lib + for jar in ${PN}*.jar; do + java-pkg_newjar ${jar} ${jar/-${PV}} + done +} -- cgit v1.2.3-65-gdbad