summaryrefslogtreecommitdiff
path: root/app-accessibility/SphinxTrain
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /app-accessibility/SphinxTrain
reinit the tree, so we can have metadata
Diffstat (limited to 'app-accessibility/SphinxTrain')
-rw-r--r--app-accessibility/SphinxTrain/Manifest9
-rw-r--r--app-accessibility/SphinxTrain/SphinxTrain-0.9.1-r1.ebuild40
-rw-r--r--app-accessibility/SphinxTrain/SphinxTrain-1.0.8.ebuild39
-rw-r--r--app-accessibility/SphinxTrain/files/gcc.patch34
-rw-r--r--app-accessibility/SphinxTrain/files/gcc34.patch11
-rw-r--r--app-accessibility/SphinxTrain/metadata.xml21
6 files changed, 154 insertions, 0 deletions
diff --git a/app-accessibility/SphinxTrain/Manifest b/app-accessibility/SphinxTrain/Manifest
new file mode 100644
index 000000000000..50f373f4327c
--- /dev/null
+++ b/app-accessibility/SphinxTrain/Manifest
@@ -0,0 +1,9 @@
+AUX gcc.patch 816 SHA256 b56ed4d770fd9a3587e2145042433ef97ffba11e3e97173ed76c532dab19d5f7 SHA512 24684e55ae3f1d419711172439f9a7faf63c8ae661982ea8609d7d054dd1c94d0b2cf6d4bc056165495604e6b6d68f68d051196357bc468f800a48c3edc21016 WHIRLPOOL a709c0256ed39a82dfa73f7405fbe2fa9a7a38241312b0acf870bc4cb521a0b0e3a18349899f6baf475576bb6849ea9ef21812843bc6965e28e23467c0fb00e9
+AUX gcc34.patch 333 SHA256 c107b0c9f0478d6c4ad268c35c94162c4acaeb2ea1e1b115dc28db7cbe7abda9 SHA512 99199433c702a28451e08270d2388773d65460b00bcc5d68544017d9a99ede9242078c63393d59a945fb54e725bed37987d80d68516b8dbd05911b463f7faa16 WHIRLPOOL efce2fa61e83c689831c62599e60e6b16193e76068579899907b11a20fe689789f9fdd6e19b3e1ca2d89d62745bd9b4743381d2e9fa150b9412750e20016a51d
+DIST SphinxTrain-0.9.1-beta.tar.gz 469617 SHA256 c1a4b74a3e26777b80ddd7a026547aad194040cca8595e6fe1be320a19f99d18 SHA512 1b33a58a6e05069369fe1ba668609e5a25d6a49fbf2fed1f5d86bdc1fc43d4544627c438e61d46003c2dbd8d7fa6f41c686b57cbca215f73b6c4ba0d7682076d WHIRLPOOL 6399233f803f37d8d267a5005a5cb158513cb64b2b7b3727cb9ee93c46781f29e5ed0729c1d7d1e586de49ede098a7d9658c285399bae0d633f34657000074c8
+DIST sphinxtrain-1.0.8.tar.gz 8925803 SHA256 548e3e513ceaa1b2fd6fd7ed1724349e0a4bf7bdeb11be9c91787e6f2b865203 SHA512 465d2c4ade9acc7b49c1d975449c38ac01d5a3ff332f9841be66cd8ca9d2f0b68fd36cc8a46384c8b510042efa91c3887a080481e84f2d0deb9775a598835f2b WHIRLPOOL d9ccbe09d125579e15167fa625bb72c86e114f9c394e909488216ae2f4e6af4c7b968d469455b65c4aff2a41a7d97701ac290df2cbc6b0450c64c94b042ae94d
+EBUILD SphinxTrain-0.9.1-r1.ebuild 932 SHA256 3d3b459051a70dd01040c2a9aa66709f0d108b46fb902fe994cb892cf4e93539 SHA512 be4dab7912c5b7becb3a861eb0b2c049e8c1d66f800386820101cde9280d4004bd401b0e39d6a9261504a1952c4274a82cdc9597d8bfb250ecc95b051ff42cce WHIRLPOOL 2be42455de13db703bba1280c9bb264aba2457139ba9fb05e1d50f787b57a75badb818c46e304184d28fef5aa40919376fe959ffc4f6b6a7aeb5cc50c38884fc
+EBUILD SphinxTrain-1.0.8.ebuild 912 SHA256 f68189fe0e0ea071679cf7ec6416a431aa8f24e6b0d3b413ab9c37e4b21df036 SHA512 0749bae26704e502550088fea9f1d4f6d34910c4668828c6ddc10a571fe2befc1e41f5444ed1ecbef71586858231f04ebf16b5debb0617091099624111293f4a WHIRLPOOL 3ae9d0f8e429ea790c6d21d7501384a0d63207f14f1b870050fd6cf9d9d2bd3536353c77e5309b602043c297752796a7d5036c12c0a1345c64d6725aba1eb44e
+MISC ChangeLog 2554 SHA256 2f9c9b3b580442e3538573a883f05e4a48f2ba9ab980209e6cb19ea8f4bad788 SHA512 fae5e5e6c0b53693294fbdf5d6c5621b06febad77b7de7769f5743e903d561574bc738e45b171bc3d065ede5a24947e2fd1f5ad26e802936fc0d8c62c50b53f2 WHIRLPOOL 2ab9996757370ea662cef856a974ee8468da98c67f4788bb7ff7ef74fee24b409b922e505f55067336ff55acc79871d37e0a3a971e54c1380118256909c94894
+MISC ChangeLog-2015 3258 SHA256 2008ab765091991847d23f944ff6e25907d9171865c97f980b0d7a6bcd84ab71 SHA512 5eea411b3c7884da50d3ce1e2c3a40e97a444c93341c22f785d9fbc492a55848d78560880e2c19e9d8bc74b026e22407aecfef31cd71d764e17c9299982728e4 WHIRLPOOL fa152fba914bd6a10d2e85837ee56f9ae45f82bc9f3c2896e268f8566a78ef85f78ac86558839957c1f320a5be153bf5cca4096d84532936256d4121c76fae11
+MISC metadata.xml 664 SHA256 97c64e241d17d7e4e0dde0462773363d0723d58624b9d003e97c3e4850989070 SHA512 1175faeff9cb4d6e0d231a613f0768d839e94d68b499193d218430894fc7ad7374e2028e0f07d707178394d9ef5322e7c061a179b70b69ee79b2bddf35f5195c WHIRLPOOL 895f0492f0f42f4cc502899d6caedcb7c0b1bf363b0b45c561c30effff2b3f67af91a5bc444c3241929381109de7874d52db731ef9d4dba2bf54338174f79312
diff --git a/app-accessibility/SphinxTrain/SphinxTrain-0.9.1-r1.ebuild b/app-accessibility/SphinxTrain/SphinxTrain-0.9.1-r1.ebuild
new file mode 100644
index 000000000000..a8b4f8a1fbb5
--- /dev/null
+++ b/app-accessibility/SphinxTrain/SphinxTrain-0.9.1-r1.ebuild
@@ -0,0 +1,40 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=4
+
+inherit eutils toolchain-funcs
+
+DESCRIPTION="Speech Recognition (Training Module)"
+HOMEPAGE="http://cmusphinx.sourceforge.net/html/cmusphinx.php"
+SRC_URI="http://www.speech.cs.cmu.edu/${PN}/${P}-beta.tar.gz"
+
+LICENSE="BSD-with-attribution"
+SLOT="0"
+KEYWORDS="~amd64 ppc x86"
+IUSE=""
+
+DEPEND="app-accessibility/sphinx2
+ app-accessibility/festival"
+RDEPEND="${DEPEND}"
+
+S=${WORKDIR}/${PN}
+
+src_prepare() {
+ epatch "${FILESDIR}"/gcc.patch
+ epatch "${FILESDIR}"/gcc34.patch
+ tc-export CC AR RANLIB
+}
+
+src_install() {
+ # dobin bin.*/* fails ... see bug #73586
+ find bin.* -mindepth 1 -maxdepth 1 -type f -exec dobin '{}' \; || die
+
+ dodoc README etc/*cfg
+ dohtml doc/*{txt,html,sgml}
+}
+
+pkg_postinst() {
+ elog "Detailed usage and training instructions can be found at"
+ elog "http://www.speech.cs.cmu.edu/SphinxTrain/"
+}
diff --git a/app-accessibility/SphinxTrain/SphinxTrain-1.0.8.ebuild b/app-accessibility/SphinxTrain/SphinxTrain-1.0.8.ebuild
new file mode 100644
index 000000000000..6b11a50e8c74
--- /dev/null
+++ b/app-accessibility/SphinxTrain/SphinxTrain-1.0.8.ebuild
@@ -0,0 +1,39 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+PYTHON_COMPAT=( python2_7 )
+
+inherit multilib python-single-r1
+
+DESCRIPTION="Speech Recognition (Training Module)"
+HOMEPAGE="http://cmusphinx.sourceforge.net/html/cmusphinx.php"
+SRC_URI="mirror://sourceforge/cmusphinx/sphinxtrain-${PV}.tar.gz"
+
+LICENSE="BSD-with-attribution"
+SLOT="0"
+KEYWORDS="amd64 x86"
+IUSE=""
+REQUIRED_USE="${PYTHON_REQUIRED_USE}"
+
+RDEPEND="app-accessibility/sphinxbase
+ dev-lang/perl
+ ${PYTHON_DEPS}"
+DEPEND="${RDEPEND}
+ virtual/pkgconfig"
+
+S=${WORKDIR}/sphinxtrain-${PV}
+
+src_install() {
+ default
+ dodoc README etc/*cfg
+
+ python_fix_shebang "${D}"/usr/bin/sphinxtrain
+ python_optimize "${D}"/usr/$(get_libdir)/sphinxtrain/python/cmusphinx
+}
+
+pkg_postinst() {
+ elog "Detailed usage and training instructions can be found at"
+ elog "http://cmusphinx.sourceforge.net/wiki/"
+}
diff --git a/app-accessibility/SphinxTrain/files/gcc.patch b/app-accessibility/SphinxTrain/files/gcc.patch
new file mode 100644
index 000000000000..e3c51275f910
--- /dev/null
+++ b/app-accessibility/SphinxTrain/files/gcc.patch
@@ -0,0 +1,34 @@
+--- src/programs/count_3phone/wrec.h.orig 2003-09-28 18:51:49.000000000 +0900
++++ src/programs/count_3phone/wrec.h 2003-09-28 18:52:23.000000000 +0900
+@@ -44,7 +44,7 @@
+ #define WREC_H
+
+ #include "phrec.h"
+-#include <varargs.h>
++#include <stdarg.h>
+
+ int quit (int status, char *fmt, ...);
+
+--- src/programs/count_3phone/quit.c.orig 2003-09-28 19:12:56.000000000 +0900
++++ src/programs/count_3phone/quit.c 2003-09-28 19:13:12.000000000 +0900
+@@ -74,17 +74,14 @@
+
+ #include <stdio.h>
+ #include <stdlib.h>
+-#include <varargs.h>
++#include <stdarg.h>
+
+-int quit (status,fmt,va_alist)
+- int status;
+- char *fmt;
+- va_dcl
++int quit (int status,char *fmt,...)
+ {
+ va_list args;
+
+ fflush(stdout);
+- va_start(args);
++ va_start(args, fmt);
+ (void) vfprintf(stderr, fmt, args);
+ va_end(args);
+ exit(status);
diff --git a/app-accessibility/SphinxTrain/files/gcc34.patch b/app-accessibility/SphinxTrain/files/gcc34.patch
new file mode 100644
index 000000000000..124aa993edc9
--- /dev/null
+++ b/app-accessibility/SphinxTrain/files/gcc34.patch
@@ -0,0 +1,11 @@
+--- SphinxTrain/src/programs/count_3phone/phone_word_io.c~ 2001-04-05 16:00:33.000000000 -0400
++++ SphinxTrain/src/programs/count_3phone/phone_word_io.c 2005-05-01 12:48:42.000000000 -0400
+@@ -71,7 +71,7 @@
+ #ifdef __alpha
+ void *malloc();
+ #else
+-char *malloc();
++//char *malloc();
+ #endif
+
+ extern int Num_Phones, Num_Words;
diff --git a/app-accessibility/SphinxTrain/metadata.xml b/app-accessibility/SphinxTrain/metadata.xml
new file mode 100644
index 000000000000..fa02e6314d59
--- /dev/null
+++ b/app-accessibility/SphinxTrain/metadata.xml
@@ -0,0 +1,21 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="project">
+ <email>accessibility@gentoo.org</email>
+ <name>Gentoo Accessibility Project</name>
+ </maintainer>
+ <maintainer type="project">
+ <email>sound@gentoo.org</email>
+ <name>Gentoo Sound project</name>
+ </maintainer>
+ <longdescription lang="en">
+ SphinxTrain is CMU Sphinx's training package.
+</longdescription>
+ <longdescription lang="ja">
+ SphinxTrainはCMU Sphinxの調教パッケージです。
+</longdescription>
+ <upstream>
+ <remote-id type="sourceforge">cmusphinx</remote-id>
+ </upstream>
+</pkgmetadata>