diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /dev-java/jspeex | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'dev-java/jspeex')
-rw-r--r-- | dev-java/jspeex/Manifest | 5 | ||||
-rw-r--r-- | dev-java/jspeex/files/jspeex-0.9.7-remove-junit-report.patch | 16 | ||||
-rw-r--r-- | dev-java/jspeex/files/jspeex-0.9.7-remove-proguard-taskdef.patch | 53 | ||||
-rw-r--r-- | dev-java/jspeex/jspeex-0.9.7-r1.ebuild | 57 | ||||
-rw-r--r-- | dev-java/jspeex/metadata.xml | 11 |
5 files changed, 142 insertions, 0 deletions
diff --git a/dev-java/jspeex/Manifest b/dev-java/jspeex/Manifest new file mode 100644 index 000000000000..8450be585dfb --- /dev/null +++ b/dev-java/jspeex/Manifest @@ -0,0 +1,5 @@ +AUX jspeex-0.9.7-remove-junit-report.patch 530 BLAKE2B 2ebc0fcdd0713615bdcb1c829e0f26437af3829cdf4d01f453a6f8a4df9b0728f2f4d746214d44a8fa63f61ccda1c7812fe22ee6c67b8b141021adb61d6076e9 SHA512 8a38a6033ca138a131ee716712efd463c2fda87829d46eabd8fa561af0327fd8718a673075eaa0f6a08a931bfd142be23c65e16959a36e1a845dc002744010aa +AUX jspeex-0.9.7-remove-proguard-taskdef.patch 1655 BLAKE2B 3ec50cada7bfd9b69a448f12fc1c07fc23003952e190ddafad4d58cb3cb1f13e746c02846cc17e2323d5c4ec7f76f049edb038e559c45f92854a23f72946b2e1 SHA512 d8c6358d01c659bf2e83d99d7831f1177383701ea34c76e8b39fa83a85477f8712b6911b6bea5da4e07b0e677816a1b7b4e90e51ee3c71fb7d0faffc9fc9b0d1 +DIST jspeex-0.9.7.zip 733580 BLAKE2B d5bfabb0857975ab8ca74d54401f6d4008c7386d8e2464c7386ecccfde8dcf3b92580d6168e4ff06cf8c1a27ca848abc7f630be7f19c6a0245beb8a9cb66c3f6 SHA512 9673bef155f1cccc45bc0a0d5596e79b48ba044309ba3446548b570bc7bad60b4b22cc7761749b0769114c7341b9fab6db8e8a155070f9de6fe2730c843199fe +EBUILD jspeex-0.9.7-r1.ebuild 1128 BLAKE2B 63ccb61ad93710e592be7845c5e3dd93afd425014d621ada0e1270e9fe42bbb7e823103d9744229b3b862766df254b998cbeba4b050b149f6addb994a00a1f33 SHA512 0b889a02983a970eb66e0be3464e96e3280641ae4d16a61f5fec11216e303dacea41af37e68417b2773a7a7ae05cbbc6614cc33dede51cb14e1b4734dbdcfcb5 +MISC metadata.xml 312 BLAKE2B 030ecc0c42a9dc6ecfaa663b6e25d35bc2364cfb1f7c59a5aeb46728d5819c29f9c5389370782f30a5598553e7d1822b7a6d2018006aa7a69e8e0a1a98ee8e68 SHA512 bf48f9daeb64e474b08e897e502436b21db0f65ba4cee4987654e811b6b71a3a82c3ccf9ee49b37babc9a8d8f3c6d13978d9c2e19b4ae27da51c1fc28f15aec5 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..9d3390743ccd --- /dev/null +++ b/dev-java/jspeex/jspeex-0.9.7-r1.ebuild @@ -0,0 +1,57 @@ +# Copyright 1999-2018 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +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 + )" + +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-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/* +} diff --git a/dev-java/jspeex/metadata.xml b/dev-java/jspeex/metadata.xml new file mode 100644 index 000000000000..3b016edaf12a --- /dev/null +++ b/dev-java/jspeex/metadata.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>java@gentoo.org</email> + <name>Java</name> + </maintainer> + <upstream> + <remote-id type="sourceforge">jspeex</remote-id> + </upstream> +</pkgmetadata> |