1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
6 JAVA_PKG_IUSE="doc source"
8 inherit java-pkg-2 java-pkg-simple
10 DESCRIPTION="Contracts for Java"
11 HOMEPAGE="https://github.com/nhatminhle/cofoja"
12 SRC_URI="https://github.com/nhatminhle/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
16 KEYWORDS="~amd64 ~x86"
20 CDEPEND="dev-java/asm:4"
32 JAVA_GENTOO_CLASSPATH="asm-4"
33 JAVA_SRC_DIR="src/com/google/java/contract"
38 # Relies on a bunch of classes in jsr308,
39 # spec we don't have packaged in Gentoo.. yet.
40 rm -v src/com/google/java/contract/core/apt/JavacUtils.java || die