summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-java/jspeex')
-rw-r--r--dev-java/jspeex/Manifest1
-rw-r--r--dev-java/jspeex/files/jspeex-0.9.7-remove-junit-report.patch16
-rw-r--r--dev-java/jspeex/files/jspeex-0.9.7-remove-proguard-taskdef.patch53
-rw-r--r--dev-java/jspeex/jspeex-0.9.7-r1.ebuild59
-rw-r--r--dev-java/jspeex/metadata.xml8
5 files changed, 137 insertions, 0 deletions
diff --git a/dev-java/jspeex/Manifest b/dev-java/jspeex/Manifest
new file mode 100644
index 000000000000..e58a7ee06c95
--- /dev/null
+++ b/dev-java/jspeex/Manifest
@@ -0,0 +1 @@
+DIST jspeex-0.9.7.zip 733580 SHA256 55d04780617d87ea2216401dfb66dfdfda9ecf5c018e48a2e4bcdd5c60910daa SHA512 9673bef155f1cccc45bc0a0d5596e79b48ba044309ba3446548b570bc7bad60b4b22cc7761749b0769114c7341b9fab6db8e8a155070f9de6fe2730c843199fe WHIRLPOOL d7555da834098c223b0b0f7c188d35594ef837a79d044c97ea14504a1173c65cc3741e993d936cda2812d3121d3a57e5226be9502db3fdf918b6e55e89bda5d1
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..d3446420f720
--- /dev/null
+++ b/dev-java/jspeex/files/jspeex-0.9.7-remove-junit-report.patch
@@ -0,0 +1,16 @@
+diff -Naur a/build.xml b/build.xml
+--- a/build.xml 2014-02-18 23:32:25.440819710 +0100
++++ b/build.xml 2014-02-18 23:32:43.017053558 +0100
+@@ -218,12 +218,6 @@
+ </fileset>
+ </batchtest>
+ </junit>
+- <junitreport todir="${doc}/junit">
+- <fileset dir="${doc}/junit">
+- <include name="TEST-*.xml"/>
+- </fileset>
+- <report format="noframes" todir="${doc}/junit"/>
+- </junitreport>
+ </target>
+
+ <!-- ******************************************************************** -->
diff --git a/dev-java/jspeex/files/jspeex-0.9.7-remove-proguard-taskdef.patch b/dev-java/jspeex/files/jspeex-0.9.7-remove-proguard-taskdef.patch
new file mode 100644
index 000000000000..eb9e6fc24af2
--- /dev/null
+++ b/dev-java/jspeex/files/jspeex-0.9.7-remove-proguard-taskdef.patch
@@ -0,0 +1,53 @@
+diff -Naur a/build.xml b/build.xml
+--- a/build.xml 2014-02-18 23:32:25.440819710 +0100
++++ b/build.xml 2014-02-18 23:33:26.308555686 +0100
+@@ -57,10 +57,6 @@
+
+ <property name="version" value="0.9.7"/>
+
+- <!-- Define additional tasks -->
+- <taskdef name="proguard" classname="proguard.ant.ProGuardTask"
+- classpath="${lib}/proguard3.2.jar" />
+-
+ <target name="init" description="Initialise ant" depends="clean">
+ <tstamp>
+ <format property="NOW" pattern="dd/MM/yyyy HH:mm" locale="en"/>
+@@ -138,19 +134,6 @@
+ <target name="compress" depends="package"
+ description="Package obfuscated JSpeex library" >
+ <mkdir dir="${log}"/>
+- <proguard>
+--libraryjars ${java.home}/lib/rt.jar
+--injars ${dist}/jspeex.jar
+--outjar ${dist}/jspeex-obf.jar
+--renamesourcefileattribute SourceFile
+--keepattributes InnerClasses,SourceFile
+--printmapping ${log}/jspeex-obf.map
+--overloadaggressively
+-
+--keep public class * {
+- public protected *;
+-}
+- </proguard>
+ </target>
+
+ <target name="compress-dec-nb" depends="compile-nb"
+@@ -161,18 +144,6 @@
+ <attribute name="Main-Class" value="JSpeexDec"/>
+ </manifest>
+ </jar>
+- <proguard>
+--libraryjars ${java.home}/lib/rt.jar
+--injars ${dist}/jspeex-dec-nb.jar
+--outjar ${dist}/jspeex-dec-nb-obf.jar
+--printmapping ${log}/jspeex-dec-nb-obf.map
+--overloadaggressively
+--defaultpackage ''
+-
+--keep public class JSpeexDec {
+- public static void main(java.lang.String[]);
+-}
+- </proguard>
+ </target>
+
+ <!-- ******************************************************************** -->
diff --git a/dev-java/jspeex/jspeex-0.9.7-r1.ebuild b/dev-java/jspeex/jspeex-0.9.7-r1.ebuild
new file mode 100644
index 000000000000..5d783e7f947e
--- /dev/null
+++ b/dev-java/jspeex/jspeex-0.9.7-r1.ebuild
@@ -0,0 +1,59 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Id$
+
+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() {
+ epatch "${FILESDIR}"/${P}-remove-junit-report.patch
+ epatch "${FILESDIR}"/${P}-remove-proguard-taskdef.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..76fec185fc9b
--- /dev/null
+++ b/dev-java/jspeex/metadata.xml
@@ -0,0 +1,8 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>java</herd>
+ <upstream>
+ <remote-id type="sourceforge">jspeex</remote-id>
+ </upstream>
+</pkgmetadata>