diff options
author | Sam James <sam@gentoo.org> | 2021-03-31 07:45:21 +0100 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2021-04-09 20:25:42 +0000 |
commit | 4e8e6c869976cc71f166fbc0554ac4676da8d26b (patch) | |
tree | 2d9ab86295017c291ca73117a0ab6fe18532f263 /dev-java/jspeex/jspeex-0.9.7-r2.ebuild | |
parent | sys-fabric/rds-tools: port to EAPI 6 (temporarily), drop base.eclass (diff) | |
download | gentoo-4e8e6c869976cc71f166fbc0554ac4676da8d26b.tar.gz gentoo-4e8e6c869976cc71f166fbc0554ac4676da8d26b.tar.bz2 gentoo-4e8e6c869976cc71f166fbc0554ac4676da8d26b.zip |
dev-java/jspeex: port to EAPI 7, drop base.eclass
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'dev-java/jspeex/jspeex-0.9.7-r2.ebuild')
-rw-r--r-- | dev-java/jspeex/jspeex-0.9.7-r2.ebuild | 63 |
1 files changed, 63 insertions, 0 deletions
diff --git a/dev-java/jspeex/jspeex-0.9.7-r2.ebuild b/dev-java/jspeex/jspeex-0.9.7-r2.ebuild new file mode 100644 index 000000000000..404e7773e708 --- /dev/null +++ b/dev-java/jspeex/jspeex-0.9.7-r2.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +JAVA_PKG_IUSE="doc source test" + +inherit java-pkg-2 java-ant-2 + +DESCRIPTION="Speex speech codec library for Java" +HOMEPAGE="http://jspeex.sourceforge.net/" +SRC_URI="mirror://sourceforge/${PN}/${P}.zip" +S="${WORKDIR}/${PN}" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +CDEPEND="dev-java/ant-core:0" +RDEPEND=" + ${CDEPEND} + >=virtual/jre-1.8:* +" +DEPEND=" + ${CDEPEND} + dev-java/junit:0 + >=virtual/jdk-1.8:* + test? ( + dev-java/ant-junit:0 + ) +" +BDEPEND="app-arch/unzip" + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH="ant-core" +EANT_BUILD_TARGET="package" + +PATCHES=( + "${FILESDIR}"/${P}-remove-junit-report.patch + "${FILESDIR}"/${P}-remove-proguard-taskdef.patch +) + +src_prepare() { + default + + java-pkg_clean + + cd lib || die + java-pkg_jar-from --build-only junit +} + +src_test() { + ANT_TASKS="ant-junit ant-core" eant test +} + +src_install() { + java-pkg_dojar dist/${PN}.jar + + dodoc README TODO + + use doc && java-pkg_dojavadoc doc/javadoc + use source && java-pkg_dosrc src/java/* +} |