diff options
author | Petteri Räty <betelgeuse@gentoo.org> | 2007-12-25 01:57:34 +0000 |
---|---|---|
committer | Petteri Räty <betelgeuse@gentoo.org> | 2007-12-25 01:57:34 +0000 |
commit | d0d5702fa014480a87c87b1ad18c33d5afff267f (patch) | |
tree | 5d52bb2799e67b88dcdcd59675992f57a0a7f977 /dev-java/aspectwerkz/aspectwerkz-2.0.ebuild | |
parent | updated to check for mpich2 cxx interface (which breaks standard headers) (diff) | |
download | gentoo-2-d0d5702fa014480a87c87b1ad18c33d5afff267f.tar.gz gentoo-2-d0d5702fa014480a87c87b1ad18c33d5afff267f.tar.bz2 gentoo-2-d0d5702fa014480a87c87b1ad18c33d5afff267f.zip |
Bring a version bump from java-overlay and add java5 use flag to it. Fixes bug #120618.
(Portage version: 2.1.4_rc9)
Diffstat (limited to 'dev-java/aspectwerkz/aspectwerkz-2.0.ebuild')
-rw-r--r-- | dev-java/aspectwerkz/aspectwerkz-2.0.ebuild | 88 |
1 files changed, 88 insertions, 0 deletions
diff --git a/dev-java/aspectwerkz/aspectwerkz-2.0.ebuild b/dev-java/aspectwerkz/aspectwerkz-2.0.ebuild new file mode 100644 index 000000000000..26b4545e3ce8 --- /dev/null +++ b/dev-java/aspectwerkz/aspectwerkz-2.0.ebuild @@ -0,0 +1,88 @@ +# Copyright 1999-2007 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.1 2007/12/25 01:57:33 betelgeuse Exp $ + +# Add java5 support when java-config handless +# https://bugs.gentoo.org/show_bug.cgi?id=161622 +# for now the support is in java-overlay +JAVA_PKG_IUSE="doc 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="~x86 ~amd64 ~ppc" +IUSE="java5" + +COMMON_DEP=" + =dev-java/asm-1.5* + dev-java/bcel + dev-java/concurrent-util + =dev-java/dom4j-1* + =dev-java/javassist-2* + dev-java/jrexx + >=dev-java/junitperf-1.9.1 + dev-java/trove + dev-java/qdox + =dev-java/junit-3*" +RDEPEND=" + java5? ( >=virtual/jre-1.5 ) + !java5? ( >=virtual/jre-1.4 ) + ${COMMON_DEP}" +DEPEND=" + java5? ( >=virtual/jdk-1.5 ) + !java5? ( >=virtual/jdk-1.4 ) + ${COMMON_DEP} + app-arch/unzip" + +src_unpack() { + unpack ${A} + + cd "${S}" + # unit tests need this + chmod +x bin/${PN} || die + epatch ${FILESDIR}/${P}-gentoo.patch + + find . -name '*.jar' -exec rm {} \; || die + + cd "${S}/lib" + java-pkg_jar-from asm-1.5 + java-pkg_jar-from bcel + java-pkg_jar-from concurrent-util + java-pkg_jar-from dom4j-1 + java-pkg_jar-from javassist-2 + java-pkg_jar-from jrexx + java-pkg_jar-from junit + java-pkg_jar-from junitperf + java-pkg_jar-from trove + java-pkg_jar-from qdox-1.6 +} + +_eant() { + local version=1.4 + use java5 && version=1.5 + eant ${antflags} -Djava.version=${version} "${@}" +} + +src_compile() { + _eant dist #precompiled javadocs + rm -v lib/*nodeps*.jar || die +} + +src_test() { + ASPECTWERKZ_HOME="${S}" _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 +} |