diff options
author | Miroslav Šulc <fordfrog@gentoo.org> | 2021-05-27 09:57:46 +0200 |
---|---|---|
committer | Miroslav Šulc <fordfrog@gentoo.org> | 2021-05-27 09:58:51 +0200 |
commit | e1db7640e298759052f08c286a5815ac12465ea4 (patch) | |
tree | 0af8fde6f91125d95dee2a0366fef38c10a27971 /dev-java/jzlib/jzlib-1.1.3-r2.ebuild | |
parent | games-emulation/snes9x: Removed old (diff) | |
download | gentoo-e1db7640e298759052f08c286a5815ac12465ea4.tar.gz gentoo-e1db7640e298759052f08c286a5815ac12465ea4.tar.bz2 gentoo-e1db7640e298759052f08c286a5815ac12465ea4.zip |
dev-java/jzlib: moved 1.1.3 to slot 0 + min java 1.8
Closes: https://bugs.gentoo.org/786519
Package-Manager: Portage-3.0.19, Repoman-3.0.3
Signed-off-by: Miroslav Šulc <fordfrog@gentoo.org>
Diffstat (limited to 'dev-java/jzlib/jzlib-1.1.3-r2.ebuild')
-rw-r--r-- | dev-java/jzlib/jzlib-1.1.3-r2.ebuild | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/dev-java/jzlib/jzlib-1.1.3-r2.ebuild b/dev-java/jzlib/jzlib-1.1.3-r2.ebuild new file mode 100644 index 000000000000..615a5512fc00 --- /dev/null +++ b/dev-java/jzlib/jzlib-1.1.3-r2.ebuild @@ -0,0 +1,50 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="examples source test" + +inherit java-pkg-2 java-pkg-simple + +DESCRIPTION="JZlib is a re-implementation of zlib in pure Java" +HOMEPAGE="http://www.jcraft.com/jzlib/" +SRC_URI="https://github.com/ymnk/${PN}/archive/${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="amd64 ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~sparc-solaris ~sparc64-solaris ~x64-solaris ~x86-solaris" + +RDEPEND=" + >=virtual/jre-1.8:*" +DEPEND=" + >=virtual/jdk-1.8:*" +# test? ( +# dev-lang/scala +# dev-java/junit:4 )" +# Restrict test due to missing keywords for scala +RESTRICT="test" + +S="${WORKDIR}/${P}" +JAVA_SRC_DIR="src/main/java" + +src_prepare() { + default + rm pom.xml || die +} + +src_test() { + local CP TESTS + CP="${PN}.jar:$(java-pkg_getjars --with-dependencies scala,junit-4)" || die + TESTS=$(find src/test/scala -name '*Test.scala' -printf com.jcraft.jzlib. -exec basename {} .scala \;) || die + + mkdir -p target/test || die + find src/test/scala -name '*.scala' -exec scalac -classpath "${CP}" -d target/test {} + || die + ejunit4 -classpath "target/test:${CP}" ${TESTS} +} + +src_install() { + java-pkg-simple_src_install + dodoc README ChangeLog + use examples && java-pkg_doexamples example +} |