1 # Copyright 1999-2017 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
5 JAVA_PKG_IUSE="doc source"
7 inherit java-pkg-2 java-pkg-simple
9 DESCRIPTION="A tool which helps you work with JSR175 annotations"
10 HOMEPAGE="https://github.com/codehaus/annogen"
11 SRC_URI="http://dist.codehaus.org/${PN}/distributions/${P}.zip"
15 KEYWORDS="amd64 ~ppc64 ~x86"
29 # com.sun.mirror.declaration was removed from JDK 7 onwards.
30 # These two files are just interfaces anyway.
32 org/codehaus/annogen/view/MirrorAnnoViewer.java
33 org/codehaus/annogen/override/MirrorElementIdPool.java
36 JAVA_GENTOO_CLASSPATH="
43 unzip -o -q "${S}/${PN}-src-${PV}.zip" || die
48 rm -rv examples || die
52 # Needed for com.sun.* imports
53 JAVA_GENTOO_CLASSPATH_EXTRA="$(java-config -t)" \
54 java-pkg-simple_src_compile