diff options
author | Volkmar W. Pogatzki <gentoo@pogatzki.net> | 2021-07-30 22:50:40 +0200 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-11-13 10:31:47 +0000 |
commit | 20d3cca399a6e7c539802db54feabe96c4898a6b (patch) | |
tree | ac4402594c9b51d5cda4781b9f44f8a83ee22dea /dev-java/aspectj/aspectj-1.9.7.ebuild | |
parent | dev-python/joblib: Remove old (diff) | |
download | gentoo-20d3cca399a6e7c539802db54feabe96c4898a6b.tar.gz gentoo-20d3cca399a6e7c539802db54feabe96c4898a6b.tar.bz2 gentoo-20d3cca399a6e7c539802db54feabe96c4898a6b.zip |
dev-java/aspectj: bump to 1.9.7
adds bcel-verifier which is needed for testing dev-java/asm:3
provides aspectjweaver.jar and aspectjrt.jar
Bug: https://bugs.gentoo.org/784275
Package-Manager: Portage-3.0.20, Repoman-3.0.2
Signed-off-by: Volkmar W. Pogatzki <gentoo@pogatzki.net>
Closes: https://github.com/gentoo/gentoo/pull/21913
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-java/aspectj/aspectj-1.9.7.ebuild')
-rw-r--r-- | dev-java/aspectj/aspectj-1.9.7.ebuild | 79 |
1 files changed, 79 insertions, 0 deletions
diff --git a/dev-java/aspectj/aspectj-1.9.7.ebuild b/dev-java/aspectj/aspectj-1.9.7.ebuild new file mode 100644 index 000000000000..92f77bf5becd --- /dev/null +++ b/dev-java/aspectj/aspectj-1.9.7.ebuild @@ -0,0 +1,79 @@ +# 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://github.com/eclipse/org.aspectj/archive/refs/tags/V${PV//./_}.tar.gz -> ${P}.tar.gz" + +LICENSE="EPL-1.0" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +CDEPEND="dev-java/asm:9 + dev-java/commons-logging:0 + dev-java/ant-apache-regexp:0" +DEPEND="${CDEPEND} + >=virtual/jdk-1.8:*" +RDEPEND="${CDEPEND} + >=virtual/jre-1.8:*" +BDEPEND="app-arch/zip" + +S=${WORKDIR}/org.${P//./_} + +JAVA_GENTOO_CLASSPATH_EXTRA="aspectjweaver.jar" +JAVA_GENTOO_CLASSPATH="commons-logging,asm-9,ant-apache-regexp" +JAVA_ENCODING="iso8859-1" + +src_compile() { + JAVA_SRC_DIR=( {asm,bcel-builder,bridge,loadtime,org.aspectj.matcher,runtime,util,weaver}/src/main/java ) + JAVA_RESOURCE_DIRS=( {bridge,org.aspectj.matcher,weaver}/src/main/resources ) + JAVA_JAR_FILENAME="aspectjweaver.jar" + java-pkg-simple_src_compile + rm -rf target || die + + JAVA_SRC_DIR=( runtime/src/main ) + JAVA_JAR_FILENAME="aspectjrt.jar" + java-pkg-simple_src_compile + zip -d aspectjrt.jar *.dtd org/aspectj/{bridge,weaver}/* || die + rm -rf target || die + + # package org.eclipse.core.resources does not exist + # package org.eclipse.core.runtime does not exist +# JAVA_SRC_DIR=( org/aspectj/{ajde,ajdt,apache,asm,bridge,internal,lang,org,runtime,tools,util,weaver} ) +# JAVA_JAR_FILENAME="aspectjtools.jar" +# java-pkg-simple_src_compile + + # bcel-verifier is needed for testing dev-java/asm:3 + # should go away once aspectjtools.jar can be built (included there) + JAVA_SRC_DIR=( bcel-builder/verifier-src ) + JAVA_JAR_FILENAME="bcel-verifier.jar" + java-pkg-simple_src_compile + rm -rf target || die + + # once again for javadocs + if use doc; then + JAVA_SRC_DIR=( {asm,bcel-builder,bridge,loadtime,org.aspectj.matcher,runtime,util,weaver}/src/main/java ) + JAVA_JAR_FILENAME="ignoreme.jar" + java-pkg-simple_src_compile + fi +} + +src_install() { + java-pkg_dojar "aspectjweaver.jar" + java-pkg_dojar "aspectjrt.jar" +# java-pkg_dojar "aspectjtools.jar" + java-pkg_dojar "bcel-verifier.jar" + + if use doc; then + java-pkg_dojavadoc target/api + fi + + if use source; then + java-pkg_dosrc "org" + fi +} |