summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'app-accessibility/sphinx3')
-rw-r--r--app-accessibility/sphinx3/ChangeLog41
-rw-r--r--app-accessibility/sphinx3/Manifest1
-rw-r--r--app-accessibility/sphinx3/files/sphinx3-0.8_heap_fix.patch34
-rw-r--r--app-accessibility/sphinx3/metadata.xml5
-rw-r--r--app-accessibility/sphinx3/sphinx3-0.8.ebuild63
5 files changed, 144 insertions, 0 deletions
diff --git a/app-accessibility/sphinx3/ChangeLog b/app-accessibility/sphinx3/ChangeLog
new file mode 100644
index 0000000..8e78872
--- /dev/null
+++ b/app-accessibility/sphinx3/ChangeLog
@@ -0,0 +1,41 @@
+# ChangeLog for app-accessibility/sphinx3
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinx3/ChangeLog,v 1.9 2012/11/28 18:15:13 radhermit Exp $
+
+ 28 Nov 2012; Tim Harder <radhermit@gentoo.org> sphinx3-0.6.3.ebuild,
+ sphinx3-0.8.ebuild:
+ Fix LICENSE (bug #445040 by ulm).
+
+ 23 May 2012; Mike Frysinger <vapier@gentoo.org> sphinx3-0.8.ebuild:
+ Inherit eutils eclass for epatch.
+
+ 26 Feb 2012; Patrick Lauer <patrick@gentoo.org> sphinx3-0.8.ebuild:
+ Restricting jython
+
+ 12 Jan 2012; Michał Górny <mgorny@gentoo.org> sphinx3-0.8.ebuild:
+ Fix invalid use of autotools-utils.eclass.
+
+*sphinx3-0.8 (17 Nov 2011)
+
+ 17 Nov 2011; Jesus Rivero <neurogeek@gentoo.org> +sphinx3-0.8.ebuild,
+ +files/sphinx3-0.8_heap_fix.patch:
+ Version bump. Closes bug #344991
+
+ 01 Apr 2009; William Hubbs <williamh@gentoo.org> sphinx3-0.6.3.ebuild:
+ Stable on x86.
+
+ 30 Sep 2006; William Hubbs <williamh@gentoo.org> -sphinx3-0.6.ebuild:
+ Removed an older, broken ebuild.
+
+*sphinx3-0.6.3 (30 Sep 2006)
+
+ 30 Sep 2006; William Hubbs <williamh@gentoo.org> +sphinx3-0.6.3.ebuild:
+ version bump, also closes #145667.
+
+*sphinx3-0.6 (04 Jul 2006)
+
+ 04 Jul 2006; Jon Hood <squinky86@gentoo.org> +metadata.xml,
+ +sphinx3-0.6.ebuild:
+ Initial import, bug #129149 with help from Franklin Marmon
+ <marmon@montana.com>.
+
diff --git a/app-accessibility/sphinx3/Manifest b/app-accessibility/sphinx3/Manifest
new file mode 100644
index 0000000..cb8a44e
--- /dev/null
+++ b/app-accessibility/sphinx3/Manifest
@@ -0,0 +1 @@
+DIST sphinx3-0.8.tar.gz 25226326 SHA256 1cf76a086f9b509e35f7226df2e61b0a0bf8b0858b9676e5b18cfc47b2ea2741 SHA512 85b8e574e2f92a758c8c56ef11b873c49ef8a376e964f30a12d75850d4a0db56e3108eaea25fa5587675ef2ffa4531a13f0f182a85cc8e434c6bcee42058e050 WHIRLPOOL 0f3604b4fa320f59e4ee65b79c4a779c48f2822a944b28b85a740826244f5eb7adc072538919c97ebf4eb270660fbe6f5b30b55cc67ec6276358063cf340aa7b
diff --git a/app-accessibility/sphinx3/files/sphinx3-0.8_heap_fix.patch b/app-accessibility/sphinx3/files/sphinx3-0.8_heap_fix.patch
new file mode 100644
index 0000000..b7b71d9
--- /dev/null
+++ b/app-accessibility/sphinx3/files/sphinx3-0.8_heap_fix.patch
@@ -0,0 +1,34 @@
+diff -uNr sphinx3-0.8.orig/python/setup.py sphinx3-0.8/python/setup.py
+--- sphinx3-0.8.orig/python/setup.py 2008-12-31 23:20:08.000000000 -0500
++++ sphinx3-0.8/python/setup.py 2011-11-17 09:46:57.000000000 -0500
+@@ -8,15 +8,10 @@
+ define_macros = []
+
+ module = Extension('_sphinx3',
+- include_dirs = ['../../sphinxbase/include',
+- '../include',
+- '/usr/local/include/sphinxbase/',
+- '/usr/local/include/sphinx3',
+- ],
++ include_dirs = ['../include',
++ '@GENTOO_PORTAGE_EPREFIX@/usr/include/sphinxbase'],
+ define_macros = define_macros,
+- library_dirs = ['../../sphinxbase/src/libsphinxbase/.libs',
+- '../src/libs3decoder/.libs',
+- '../../sphinxbase/lib/debug',
++ library_dirs = ['../src/libs3decoder/.libs',
+ '../lib/debug',
+ ],
+ libraries = ['sphinxbase', 's3decoder'],
+diff -uNr sphinx3-0.8.orig/src/libs3decoder/libsearch/vithist.c sphinx3-0.8/src/libs3decoder/libsearch/vithist.c
+--- sphinx3-0.8.orig/src/libs3decoder/libsearch/vithist.c 2008-12-31 13:27:56.000000000 -0500
++++ sphinx3-0.8/src/libs3decoder/libsearch/vithist.c 2011-11-17 09:46:24.000000000 -0500
+@@ -647,7 +647,7 @@
+ {
+ int32 se, fe, filler_done, th;
+ vithist_entry_t *ve;
+- heap_t h;
++ heap_t *h;
+ s3wid_t *wid;
+ int32 i;
+
diff --git a/app-accessibility/sphinx3/metadata.xml b/app-accessibility/sphinx3/metadata.xml
new file mode 100644
index 0000000..b723de1
--- /dev/null
+++ b/app-accessibility/sphinx3/metadata.xml
@@ -0,0 +1,5 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<herd>accessibility</herd>
+</pkgmetadata>
diff --git a/app-accessibility/sphinx3/sphinx3-0.8.ebuild b/app-accessibility/sphinx3/sphinx3-0.8.ebuild
new file mode 100644
index 0000000..b0a6477
--- /dev/null
+++ b/app-accessibility/sphinx3/sphinx3-0.8.ebuild
@@ -0,0 +1,63 @@
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/app-accessibility/sphinx3/sphinx3-0.8.ebuild,v 1.5 2012/11/28 18:15:13 radhermit Exp $
+
+EAPI=3
+PYTHON_DEPEND="python? 2:2.6"
+SUPPORT_PYTHON_ABIS="1"
+RESTRICT_PYTHON_ABIS="3.* *-jython"
+
+inherit autotools-utils prefix python eutils
+
+DESCRIPTION="CMU Speech Recognition engine"
+HOMEPAGE="http://cmusphinx.sourceforge.net/"
+SRC_URI="mirror://sourceforge/cmusphinx/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="doc python static-libs"
+
+DEPEND=">=app-accessibility/sphinxbase-${PV}[static-libs?,python?]"
+RDEPEND="${DEPEND}"
+
+# Due to generated Python setup.py.
+AUTOTOOLS_IN_SOURCE_BUILD=1
+
+src_prepare() {
+ epatch "${FILESDIR}/${P}_heap_fix.patch"
+ eprefixify 'python/setup.py'
+}
+
+src_compile() {
+ autotools-utils_src_compile
+
+ if use python; then
+ python_copy_sources python
+
+ building() {
+ "$(PYTHON)" setup.py build
+ }
+
+ python_execute_function -s --source-dir python building
+ fi
+}
+
+src_install() {
+ local DOCS=( AUTHORS ChangeLog NEWS README )
+ autotools-utils_src_install
+
+ if use doc; then
+ cd doc
+ dohtml -r -x CVS s3* s3 *.html
+ fi
+
+ if use python; then
+ installing() {
+ "$(PYTHON)" setup.py install \
+ --install-lib="${D}/$(python_get_sitedir)"
+ }
+
+ python_execute_function -s --source-dir python installing
+ fi
+}