1 |
commit: e106a0e7166d09868b9ee7285c92b1c741fa3ef2 |
2 |
Author: Dongxu Li <dongxuli2011 <AT> gmail <DOT> com> |
3 |
AuthorDate: Sat Sep 3 22:47:20 2011 +0000 |
4 |
Commit: Dongxu Li <dongxuli2011 <AT> gmail <DOT> com> |
5 |
CommitDate: Sat Sep 3 22:47:20 2011 +0000 |
6 |
URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sci.git;a=commit;h=e106a0e7 |
7 |
|
8 |
sci-mathematics/htk: new package, #245595 |
9 |
|
10 |
--- |
11 |
sci-mathematics/htk/.metadata.xml.swp | Bin 0 -> 12288 bytes |
12 |
.../htk/files/include_make_destdir.patch | 73 ++++++++++++++++++++ |
13 |
sci-mathematics/htk/htk-3.4.1.ebuild | 61 ++++++++++++++++ |
14 |
sci-mathematics/htk/metadata.xml | 19 +++++ |
15 |
4 files changed, 153 insertions(+), 0 deletions(-) |
16 |
|
17 |
diff --git a/sci-mathematics/htk/.metadata.xml.swp b/sci-mathematics/htk/.metadata.xml.swp |
18 |
new file mode 100644 |
19 |
index 0000000..7538957 |
20 |
Binary files /dev/null and b/sci-mathematics/htk/.metadata.xml.swp differ |
21 |
|
22 |
diff --git a/sci-mathematics/htk/files/include_make_destdir.patch b/sci-mathematics/htk/files/include_make_destdir.patch |
23 |
new file mode 100644 |
24 |
index 0000000..55ea2c7 |
25 |
--- /dev/null |
26 |
+++ b/sci-mathematics/htk/files/include_make_destdir.patch |
27 |
@@ -0,0 +1,73 @@ |
28 |
+diff -Naur htk.old//HLMTools/Makefile.in htk//HLMTools/Makefile.in |
29 |
+--- htk.old//HLMTools/Makefile.in 2009-03-11 07:07:18.000000000 -0300 |
30 |
++++ htk//HLMTools/Makefile.in 2011-09-02 18:46:15.452348315 -0300 |
31 |
+@@ -71,9 +71,9 @@ |
32 |
+ -rm -f *.o $(PROGS) Makefile *.exe |
33 |
+ |
34 |
+ install: mkinstalldir $(PROGS) |
35 |
+- for program in $(PROGS) ; do $(INSTALL) -m 755 $${program}@BINARY_EXTENSION@ $(bindir) ; done |
36 |
++ for program in $(PROGS) ; do $(INSTALL) -m 755 $${program}@BINARY_EXTENSION@ $(DESTDIR)$(bindir) ; done |
37 |
+ |
38 |
+ mkinstalldir: |
39 |
+- if [ ! -d $(bindir) -a X_@TRADHTK@ = X_yes ] ; then mkdir -p $(bindir) ; fi |
40 |
++ if [ ! -d $(DESTDIR)$(bindir) -a X_@TRADHTK@ = X_yes ] ; then mkdir -p $(DESTDIR)$(bindir) ; fi |
41 |
+ |
42 |
+ .PHONY: all strip clean cleanup distclean install mkinstalldir |
43 |
+diff -Naur htk.old//HTKLVRec/Makefile.in htk//HTKLVRec/Makefile.in |
44 |
+--- htk.old//HTKLVRec/Makefile.in 2009-03-11 06:56:05.000000000 -0300 |
45 |
++++ htk//HTKLVRec/Makefile.in 2011-09-02 18:44:40.072737063 -0300 |
46 |
+@@ -112,11 +112,11 @@ |
47 |
+ -rm -f *.o HDecode HDecode.mod Makefile |
48 |
+ |
49 |
+ install: mkinstalldir |
50 |
+- $(INSTALL) -m 755 HDecode $(bindir) |
51 |
+- $(INSTALL) -m 755 HDecode.mod $(bindir) |
52 |
++ $(INSTALL) -m 755 HDecode $(DESTDIR)$(bindir) |
53 |
++ $(INSTALL) -m 755 HDecode.mod $(DESTDIR)$(bindir) |
54 |
+ |
55 |
+ mkinstalldir: |
56 |
+- -mkdir -p $(bindir) |
57 |
++ -mkdir -p $(DESTDIR)$(bindir) |
58 |
+ |
59 |
+ .PHONY: std mod all strip clean cleanup distclean install mkinstalldir |
60 |
+ |
61 |
+diff -Naur htk.old//HTKTools/Makefile.in htk//HTKTools/Makefile.in |
62 |
+--- htk.old//HTKTools/Makefile.in 2009-03-11 09:50:53.000000000 -0300 |
63 |
++++ htk//HTKTools/Makefile.in 2011-09-02 18:45:41.423059972 -0300 |
64 |
+@@ -73,10 +73,10 @@ |
65 |
+ -rm -f *.o $(PROGS) *.exe Makefile |
66 |
+ |
67 |
+ install: mkinstalldir $(PROGS) |
68 |
+- for program in $(PROGS) ; do $(INSTALL) -m 755 $${program} $(bindir) ; done |
69 |
++ for program in $(PROGS) ; do $(INSTALL) -m 755 $${program} $(DESTDIR)$(bindir) ; done |
70 |
+ |
71 |
+ mkinstalldir: |
72 |
+- if [ ! -d $(bindir) ] ; then mkdir $(bindir) ; fi |
73 |
++ if [ ! -d $(DESTDIR)$(bindir) ] ; then mkdir -p $(DESTDIR)$(bindir) ; fi |
74 |
+ |
75 |
+ |
76 |
+ .PHONY: all strip clean cleanup distclean install mkinstalldir |
77 |
+diff -Naur htk.old//Makefile.in htk//Makefile.in |
78 |
+--- htk.old//Makefile.in 2009-03-11 07:08:06.000000000 -0300 |
79 |
++++ htk//Makefile.in 2011-09-02 18:44:40.073737098 -0300 |
80 |
+@@ -119,16 +119,16 @@ |
81 |
+ |
82 |
+ # installation |
83 |
+ install-htktools: htktools |
84 |
+- (cd $(HTKTOOLS) && $(MAKE) install) \ |
85 |
++ (cd $(HTKTOOLS) && $(MAKE) DESTDIR=$(DESTDIR) install) \ |
86 |
+ || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; |
87 |
+ install-hlmtools: hlmtools |
88 |
+- (cd $(HLMTOOLS) && $(MAKE) install) \ |
89 |
++ (cd $(HLMTOOLS) && $(MAKE) DESTDIR=$(DESTDIR) install) \ |
90 |
+ || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; |
91 |
+ install-hdecode: |
92 |
+- (cd $(LVREC) && $(MAKE) install) \ |
93 |
++ (cd $(LVREC) && $(MAKE) DESTDIR=$(DESTDIR) install) \ |
94 |
+ || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; |
95 |
+ install-book: book |
96 |
+- (cd $(HTKBOOK) && $(MAKE) install) \ |
97 |
++ (cd $(HTKBOOK) && $(MAKE) DESTDIR=$(DESTDIR) install) \ |
98 |
+ || case "$(MFLAGS)" in *k*) fail=yes;; *) exit 1;; esac; |
99 |
+ |
100 |
+ clean: |
101 |
|
102 |
diff --git a/sci-mathematics/htk/htk-3.4.1.ebuild b/sci-mathematics/htk/htk-3.4.1.ebuild |
103 |
new file mode 100644 |
104 |
index 0000000..8d5bfa7 |
105 |
--- /dev/null |
106 |
+++ b/sci-mathematics/htk/htk-3.4.1.ebuild |
107 |
@@ -0,0 +1,61 @@ |
108 |
+# Copyright 1999-2011 Gentoo Foundation |
109 |
+# Distributed under the terms of the GNU General Public License v2 |
110 |
+# $Header: $ |
111 |
+ |
112 |
+EAPI="4" |
113 |
+ |
114 |
+inherit eutils |
115 |
+ |
116 |
+DESCRIPTION="Toolkit for building and manipulating hidden Markov models" |
117 |
+HOMEPAGE="http://htk.eng.cam.ac.uk/" |
118 |
+SRC_URI="http://htk.eng.cam.ac.uk/ftp/software/HTK-3.4.1.tar.gz -> HTK-3.4.1.tar.gz |
119 |
+ hdecode? ( http://htk.eng.cam.ac.uk/ftp/software/hdecode/HDecode-3.4.1.tar.gz |
120 |
+ -> HDecode-3.4.1.tar.gz )" |
121 |
+HDECODE_HOME="http://htk.eng.cam.ac.uk/extensions/index.shtml" |
122 |
+ |
123 |
+LICENSE="HTKCambridge |
124 |
+ hdecode? ( HDecodeCambridge )" |
125 |
+SLOT="0" |
126 |
+KEYWORDS="~amd64" |
127 |
+IUSE="-hlmtools -hslab -htkbook -hdecode" |
128 |
+ |
129 |
+DEPEND="" |
130 |
+RDEPEND="${DEPEND}" |
131 |
+ |
132 |
+RESTRICT="fetch" |
133 |
+ |
134 |
+S=""${WORKDIR}/${PN}"" |
135 |
+ |
136 |
+pkg_nofetch() { |
137 |
+ einfo "Please download" |
138 |
+ einfo " - HTK-3.4.1.tar.gz" |
139 |
+ einfo "from ${HOMEPAGE}" |
140 |
+ if use hdecode; then |
141 |
+ einfo " - HDecode-3.4.1.tar.gz" |
142 |
+ einfo "from ${HDECODE_HOME}" |
143 |
+ fi |
144 |
+ einfo "and place them in ${DISTDIR}" |
145 |
+} |
146 |
+ |
147 |
+src_prepare() { |
148 |
+ epatch "${FILESDIR}/include_make_destdir.patch" |
149 |
+} |
150 |
+ |
151 |
+src_configure() { |
152 |
+ econf $(use_enable hlmtools) \ |
153 |
+ $(use_enable hslab) \ |
154 |
+ $(use_enable htkbook) \ |
155 |
+ $(use_enable hdecode) |
156 |
+} |
157 |
+ |
158 |
+src_compile() { |
159 |
+ if use hlmtools || use hdecode; then |
160 |
+ emake -j1 || die "Cannot compile" |
161 |
+ else |
162 |
+ emake |
163 |
+ fi |
164 |
+} |
165 |
+ |
166 |
+src_install() { |
167 |
+ emake DESTDIR="${D}" install |
168 |
+} |
169 |
|
170 |
diff --git a/sci-mathematics/htk/metadata.xml b/sci-mathematics/htk/metadata.xml |
171 |
new file mode 100644 |
172 |
index 0000000..87347d6 |
173 |
--- /dev/null |
174 |
+++ b/sci-mathematics/htk/metadata.xml |
175 |
@@ -0,0 +1,19 @@ |
176 |
+<?xml version="1.0" encoding="UTF-8"?> |
177 |
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> |
178 |
+<pkgmetadata> |
179 |
+ <herd>sci</herd> |
180 |
+ <maintainer> |
181 |
+ <email>pedosb@×××××.com</email> |
182 |
+ <name>Pedro Batista</name> |
183 |
+ </maintainer> |
184 |
+ <longdescription>he Hidden Markov Model Toolkit (HTK) is a portable toolkit for building and manipulating hidden Markov models.</longdescription> |
185 |
+ <use> |
186 |
+ <flag name="hlmtools">Installs the tools for manipulate language |
187 |
+ models</flag> |
188 |
+ <flag name="hdecode">Installs the HDecode a large vocabulary word |
189 |
+ recogniser.</flag> |
190 |
+ <flag name="htkbook">Builds the HTK documentation (HTK Book)</flag> |
191 |
+ <flag name="hslab">Installs HSLab an label editor for manipulating |
192 |
+ speech label. </flag> |
193 |
+ </use> |
194 |
+</pkgmetadata> |