* [gentoo-commits] proj/sci:master commit in: sci-mathematics/htk/files/, sci-mathematics/htk/
@ 2011-09-03 22:49 Dongxu Li
0 siblings, 0 replies; only message in thread
From: Dongxu Li @ 2011-09-03 22:49 UTC (permalink / raw
To: gentoo-commits
commit: e106a0e7166d09868b9ee7285c92b1c741fa3ef2
Author: Dongxu Li <dongxuli2011 <AT> gmail <DOT> com>
AuthorDate: Sat Sep 3 22:47:20 2011 +0000
Commit: Dongxu Li <dongxuli2011 <AT> gmail <DOT> com>
CommitDate: Sat Sep 3 22:47:20 2011 +0000
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e106a0e7
sci-mathematics/htk: new package, #245595
---
sci-mathematics/htk/.metadata.xml.swp | Bin 0 -> 12288 bytes
.../htk/files/include_make_destdir.patch | 73 ++++++++++++++++++++
sci-mathematics/htk/htk-3.4.1.ebuild | 61 ++++++++++++++++
sci-mathematics/htk/metadata.xml | 19 +++++
4 files changed, 153 insertions(+), 0 deletions(-)
diff --git a/sci-mathematics/htk/.metadata.xml.swp b/sci-mathematics/htk/.metadata.xml.swp
new file mode 100644
index 0000000..7538957
Binary files /dev/null and b/sci-mathematics/htk/.metadata.xml.swp differ
diff --git a/sci-mathematics/htk/files/include_make_destdir.patch b/sci-mathematics/htk/files/include_make_destdir.patch
new file mode 100644
index 0000000..55ea2c7
--- /dev/null
+++ b/sci-mathematics/htk/files/include_make_destdir.patch
@@ -0,0 +1,73 @@
+diff -Naur htk.old//HLMTools/Makefile.in htk//HLMTools/Makefile.in
+--- htk.old//HLMTools/Makefile.in 2009-03-11 07:07:18.000000000 -0300
++++ htk//HLMTools/Makefile.in 2011-09-02 18:46:15.452348315 -0300
+@@ -71,9 +71,9 @@
+ -rm -f *.o $(PROGS) Makefile *.exe
+
+ install: mkinstalldir $(PROGS)
+- for program in $(PROGS) ; do $(INSTALL) -m 755 $${program}@BINARY_EXTENSION@ $(bindir) ; done
++ for program in $(PROGS) ; do $(INSTALL) -m 755 $${program}@BINARY_EXTENSION@ $(DESTDIR)$(bindir) ; done
+
+ mkinstalldir:
+- if [ ! -d $(bindir) -a X_@TRADHTK@ = X_yes ] ; then mkdir -p $(bindir) ; fi
++ if [ ! -d $(DESTDIR)$(bindir) -a X_@TRADHTK@ = X_yes ] ; then mkdir -p $(DESTDIR)$(bindir) ; fi
+
+ .PHONY: all strip clean cleanup distclean install mkinstalldir
+diff -Naur htk.old//HTKLVRec/Makefile.in htk//HTKLVRec/Makefile.in
+--- htk.old//HTKLVRec/Makefile.in 2009-03-11 06:56:05.000000000 -0300
++++ htk//HTKLVRec/Makefile.in 2011-09-02 18:44:40.072737063 -0300
+@@ -112,11 +112,11 @@
+ -rm -f *.o HDecode HDecode.mod Makefile
+
+ install: mkinstalldir
+- $(INSTALL) -m 755 HDecode $(bindir)
+- $(INSTALL) -m 755 HDecode.mod $(bindir)
++ $(INSTALL) -m 755 HDecode $(DESTDIR)$(bindir)
++ $(INSTALL) -m 755 HDecode.mod $(DESTDIR)$(bindir)
+
+ mkinstalldir:
+- -mkdir -p $(bindir)
++ -mkdir -p $(DESTDIR)$(bindir)
+
+ .PHONY: std mod all strip clean cleanup distclean install mkinstalldir
+
+diff -Naur htk.old//HTKTools/Makefile.in htk//HTKTools/Makefile.in
+--- htk.old//HTKTools/Makefile.in 2009-03-11 09:50:53.000000000 -0300
++++ htk//HTKTools/Makefile.in 2011-09-02 18:45:41.423059972 -0300
+@@ -73,10 +73,10 @@
+ -rm -f *.o $(PROGS) *.exe Makefile
+
+ install: mkinstalldir $(PROGS)
+- for program in $(PROGS) ; do $(INSTALL) -m 755 $${program} $(bindir) ; done
++ for program in $(PROGS) ; do $(INSTALL) -m 755 $${program} $(DESTDIR)$(bindir) ; done
+
+ mkinstalldir:
+- if [ ! -d $(bindir) ] ; then mkdir $(bindir) ; fi
++ if [ ! -d $(DESTDIR)$(bindir) ] ; then mkdir -p $(DESTDIR)$(bindir) ; fi
+
+
+ .PHONY: all strip clean cleanup distclean install mkinstalldir
+diff -Naur htk.old//Makefile.in htk//Makefile.in
+--- htk.old//Makefile.in 2009-03-11 07:08:06.000000000 -0300
++++ htk//Makefile.in 2011-09-02 18:44:40.073737098 -0300
+@@ -119,16 +119,16 @@
+
+ # installation
+ install-htktools: htktools
+- (cd $(HTKTOOLS) && $(MAKE) install) \
++ (cd $(HTKTOOLS) && $(MAKE) DESTDIR=$(DESTDIR) install) \
+ || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac;
+ install-hlmtools: hlmtools
+- (cd $(HLMTOOLS) && $(MAKE) install) \
++ (cd $(HLMTOOLS) && $(MAKE) DESTDIR=$(DESTDIR) install) \
+ || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac;
+ install-hdecode:
+- (cd $(LVREC) && $(MAKE) install) \
++ (cd $(LVREC) && $(MAKE) DESTDIR=$(DESTDIR) install) \
+ || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac;
+ install-book: book
+- (cd $(HTKBOOK) && $(MAKE) install) \
++ (cd $(HTKBOOK) && $(MAKE) DESTDIR=$(DESTDIR) install) \
+ || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac;
+
+ clean:
diff --git a/sci-mathematics/htk/htk-3.4.1.ebuild b/sci-mathematics/htk/htk-3.4.1.ebuild
new file mode 100644
index 0000000..8d5bfa7
--- /dev/null
+++ b/sci-mathematics/htk/htk-3.4.1.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2011 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: $
+
+EAPI="4"
+
+inherit eutils
+
+DESCRIPTION="Toolkit for building and manipulating hidden Markov models"
+HOMEPAGE="http://htk.eng.cam.ac.uk/"
+SRC_URI="http://htk.eng.cam.ac.uk/ftp/software/HTK-3.4.1.tar.gz -> HTK-3.4.1.tar.gz
+ hdecode? ( http://htk.eng.cam.ac.uk/ftp/software/hdecode/HDecode-3.4.1.tar.gz
+ -> HDecode-3.4.1.tar.gz )"
+HDECODE_HOME="http://htk.eng.cam.ac.uk/extensions/index.shtml"
+
+LICENSE="HTKCambridge
+ hdecode? ( HDecodeCambridge )"
+SLOT="0"
+KEYWORDS="~amd64"
+IUSE="-hlmtools -hslab -htkbook -hdecode"
+
+DEPEND=""
+RDEPEND="${DEPEND}"
+
+RESTRICT="fetch"
+
+S=""${WORKDIR}/${PN}""
+
+pkg_nofetch() {
+ einfo "Please download"
+ einfo " - HTK-3.4.1.tar.gz"
+ einfo "from ${HOMEPAGE}"
+ if use hdecode; then
+ einfo " - HDecode-3.4.1.tar.gz"
+ einfo "from ${HDECODE_HOME}"
+ fi
+ einfo "and place them in ${DISTDIR}"
+}
+
+src_prepare() {
+ epatch "${FILESDIR}/include_make_destdir.patch"
+}
+
+src_configure() {
+ econf $(use_enable hlmtools) \
+ $(use_enable hslab) \
+ $(use_enable htkbook) \
+ $(use_enable hdecode)
+}
+
+src_compile() {
+ if use hlmtools || use hdecode; then
+ emake -j1 || die "Cannot compile"
+ else
+ emake
+ fi
+}
+
+src_install() {
+ emake DESTDIR="${D}" install
+}
diff --git a/sci-mathematics/htk/metadata.xml b/sci-mathematics/htk/metadata.xml
new file mode 100644
index 0000000..87347d6
--- /dev/null
+++ b/sci-mathematics/htk/metadata.xml
@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>sci</herd>
+ <maintainer>
+ <email>pedosb@gmail.com</email>
+ <name>Pedro Batista</name>
+ </maintainer>
+ <longdescription>he Hidden Markov Model Toolkit (HTK) is a portable toolkit for building and manipulating hidden Markov models.</longdescription>
+ <use>
+ <flag name="hlmtools">Installs the tools for manipulate language
+ models</flag>
+ <flag name="hdecode">Installs the HDecode a large vocabulary word
+ recogniser.</flag>
+ <flag name="htkbook">Builds the HTK documentation (HTK Book)</flag>
+ <flag name="hslab">Installs HSLab an label editor for manipulating
+ speech label. </flag>
+ </use>
+</pkgmetadata>
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2011-09-03 22:49 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-03 22:49 [gentoo-commits] proj/sci:master commit in: sci-mathematics/htk/files/, sci-mathematics/htk/ Dongxu Li
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox