From a8943aa86716649b5a6ea7f08efb7ce0e5be3101 Mon Sep 17 00:00:00 2001 From: Tom Wijsman Date: Sat, 29 Jun 2013 21:40:04 +0000 Subject: New ebuild for dev-java/jspeex, Speex speech codec library for Java; a dependency needed for dev-java/smack. Fixes bug #216797 reported by Petteri Räty (betelgeuse). MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit (Portage version: 2.1.12.10/cvs/Linux x86_64, signed Manifest commit with key 6D34E57D) --- dev-java/jspeex/ChangeLog | 12 +++++ .../files/jspeex-0.9.7-remove-junit-report.patch | 15 ++++++ dev-java/jspeex/jspeex-0.9.7.ebuild | 60 ++++++++++++++++++++++ dev-java/jspeex/metadata.xml | 5 ++ 4 files changed, 92 insertions(+) create mode 100644 dev-java/jspeex/ChangeLog create mode 100644 dev-java/jspeex/files/jspeex-0.9.7-remove-junit-report.patch create mode 100644 dev-java/jspeex/jspeex-0.9.7.ebuild create mode 100644 dev-java/jspeex/metadata.xml (limited to 'dev-java') diff --git a/dev-java/jspeex/ChangeLog b/dev-java/jspeex/ChangeLog new file mode 100644 index 000000000000..f98d0526e861 --- /dev/null +++ b/dev-java/jspeex/ChangeLog @@ -0,0 +1,12 @@ +# ChangeLog for dev-java/jspeex +# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jspeex/ChangeLog,v 1.1 2013/06/29 21:40:04 tomwij Exp $ + +*jspeex-0.9.7 (29 Jun 2013) + + 29 Jun 2013; Tom Wijsman + +files/jspeex-0.9.7-remove-junit-report.patch, +jspeex-0.9.7.ebuild, + +metadata.xml: + New ebuild for dev-java/jspeex, Speex speech codec library for Java; a + dependency needed for dev-java/smack. Fixes bug #216797 reported by Petteri + Räty (betelgeuse). diff --git a/dev-java/jspeex/files/jspeex-0.9.7-remove-junit-report.patch b/dev-java/jspeex/files/jspeex-0.9.7-remove-junit-report.patch new file mode 100644 index 000000000000..40ddfd6fe981 --- /dev/null +++ b/dev-java/jspeex/files/jspeex-0.9.7-remove-junit-report.patch @@ -0,0 +1,15 @@ +--- a/build.xml ++++ b/build.xml +@@ -218,12 +218,6 @@ + + + +- +- +- +- +- +- + + + diff --git a/dev-java/jspeex/jspeex-0.9.7.ebuild b/dev-java/jspeex/jspeex-0.9.7.ebuild new file mode 100644 index 000000000000..20df340844ad --- /dev/null +++ b/dev-java/jspeex/jspeex-0.9.7.ebuild @@ -0,0 +1,60 @@ +# Copyright 1999-2013 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/dev-java/jspeex/jspeex-0.9.7.ebuild,v 1.1 2013/06/29 21:40:04 tomwij Exp $ + +EAPI="5" + +JAVA_PKG_IUSE="doc source test" + +inherit base 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" + +LICENSE="BSD" +SLOT="0" +KEYWORDS="~amd64 ~x86" + +CDEPEND="dev-java/ant-core:0" + +RDEPEND="${CDEPEND} + >=virtual/jre-1.4" + +DEPEND="${CDEPEND} + >=virtual/jdk-1.4 + dev-java/junit:0 + test? ( + dev-java/ant-junit:0 + dev-java/ant-trax:0 + )" + +JAVA_ANT_REWRITE_CLASSPATH="true" +EANT_GENTOO_CLASSPATH="ant-core" +EANT_BUILD_TARGET="package" + +S="${WORKDIR}/${PN}" + +java_prepare() { + java-ant_remove-taskdefs --name proguard + + epatch "${FILESDIR}"/${P}-remove-junit-report.patch + + find . -name "*.jar" -delete || die "Failed to remove bundled libraries." + + cd lib || die + java-pkg_jar-from --build-only junit +} + +src_test() { + ANT_TASKS="ant-junit ant-trax" 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/* +} diff --git a/dev-java/jspeex/metadata.xml b/dev-java/jspeex/metadata.xml new file mode 100644 index 000000000000..838c00a4a448 --- /dev/null +++ b/dev-java/jspeex/metadata.xml @@ -0,0 +1,5 @@ + + + +java + -- cgit v1.2.3-65-gdbad