You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-java/aspectwerkz/aspectwerkz-2.0-r1.ebuild

62 lines
1.4 KiB

# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-java/aspectwerkz/aspectwerkz-2.0-r1.ebuild,v 1.3 2014/08/10 20:08:15 slyfox Exp $
EAPI=5
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="~amd64 ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
IUSE=""
# bug 203268
RESTRICT="test"
COMMON_DEP="
dev-java/asm:1.5
dev-java/dom4j:1
dev-java/jrexx:0
dev-java/trove:0
dev-java/qdox:1.6
dev-java/junit:0
java-virtuals/jdk-with-com-sun"
RDEPEND="
>=virtual/jre-1.5
${COMMON_DEP}"
DEPEND="
>=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
epatch "${FILESDIR}"/${P}-modernise_api.patch
find . -name '*.jar' -delete || die
}
JAVA_ANT_REWRITE_CLASSPATH="yes"
EANT_BUILD_TARGET="dist"
EANT_DOC_TARGET=""
EANT_GENTOO_CLASSPATH="asm-1.5,dom4j-1,jrexx,junit,trove,qdox-1.6"
src_install() {
use source && java-pkg_dosrc src/*
# other stuff besides javadoc here too
use doc && java-pkg_dohtml -r docs/*
cd lib || die
for jar in ${PN}*.jar; do
java-pkg_newjar ${jar} ${jar/-${PV}}
done
}