diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2021-04-28 20:21:43 +0100 |
commit | 40aaaa64e86ba6710bbeb31c4615a6ce80e75e11 (patch) | |
tree | 758c221bad35c9288d0bd6df9c7dfc226728e52c /dev-java/aspectj/aspectj-1.9.6.ebuild | |
parent | 8d5dbd847cbc704a6a06405856e94b461011afe3 (diff) |
gentoo resync : 28.04.2021
Diffstat (limited to 'dev-java/aspectj/aspectj-1.9.6.ebuild')
-rw-r--r-- | dev-java/aspectj/aspectj-1.9.6.ebuild | 44 |
1 files changed, 44 insertions, 0 deletions
diff --git a/dev-java/aspectj/aspectj-1.9.6.ebuild b/dev-java/aspectj/aspectj-1.9.6.ebuild new file mode 100644 index 000000000000..a27323985b9f --- /dev/null +++ b/dev-java/aspectj/aspectj-1.9.6.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 +JAVA_PKG_IUSE="doc source" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="A seamless aspect-oriented extension to the Java programming language" +HOMEPAGE="https://eclipse.org/aspectj/" +SRC_URI="https://www.eclipse.org/downloads/download.php?file=/tools/${PN}/${P}-src.jar&r=1 -> ${P}-src.jar" + +LICENSE="EPL-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +CDEPEND="dev-java/asm:9 + dev-java/commons-logging:0" +DEPEND="${CDEPEND} + >=virtual/jdk-1.8:*" +RDEPEND="${CDEPEND} + >=virtual/jre-1.8:*" +BDEPEND="app-arch/zip" + +S=${WORKDIR} + +JAVA_SRC_DIR="${S}/src" +JAVA_GENTOO_CLASSPATH="commons-logging,asm-9" +JAVA_ENCODING="iso8859-1" + +src_unpack() { + default + unzip "${S}"/aspectjweaver-${PV}-sources.jar -d "${S}"/src/ || die +} + +src_prepare() { + default + + # needs part of BEA JRockit to compile + rm "${S}"/src/org/aspectj/weaver/loadtime/JRockitAgent.java || die + # aspectj uses a renamed version of asm:4 + find -name "*.java" -exec sed -i -e 's/import aj.org.objectweb.asm./import org.objectweb.asm./g' {} \; || die + mkdir -p "${S}"/target/classes/org/aspectj/weaver/ || die +} |