1 |
commit: 0c415d03184760ec8865b0652071f69f2cad5e76 |
2 |
Author: William Hubbs <williamh <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Jul 8 03:21:32 2021 +0000 |
4 |
Commit: William Hubbs <williamh <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Jul 8 03:23:29 2021 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0c415d03 |
7 |
|
8 |
app-accessibility/mbrola: rev bump to respect LDFLAGS and GCC |
9 |
|
10 |
Closes: https://bugs.gentoo.org/800962 |
11 |
Closes: https://bugs.gentoo.org/800965 |
12 |
Package-Manager: Portage-3.0.20, Repoman-3.0.2 |
13 |
Signed-off-by: William Hubbs <williamh <AT> gentoo.org> |
14 |
|
15 |
.../mbrola/files/mbrola-3.3-Makefile.patch | 87 ++++++++++++++++++++++ |
16 |
app-accessibility/mbrola/mbrola-3.3-r1.ebuild | 31 ++++++++ |
17 |
2 files changed, 118 insertions(+) |
18 |
|
19 |
diff --git a/app-accessibility/mbrola/files/mbrola-3.3-Makefile.patch b/app-accessibility/mbrola/files/mbrola-3.3-Makefile.patch |
20 |
new file mode 100644 |
21 |
index 00000000000..291735c69be |
22 |
--- /dev/null |
23 |
+++ b/app-accessibility/mbrola/files/mbrola-3.3-Makefile.patch |
24 |
@@ -0,0 +1,87 @@ |
25 |
+diff --git a/Makefile b/Makefile |
26 |
+index 47cf410..ac3eac5 100644 |
27 |
+--- a/Makefile |
28 |
++++ b/Makefile |
29 |
+@@ -3,14 +3,20 @@ |
30 |
+ # Mbrola Speech Synthesize Makefile ( tune the #define and type "make" ) |
31 |
+ VERSION=3.3 |
32 |
+ |
33 |
++# set CC |
34 |
++CC = gcc |
35 |
++ |
36 |
+ # To test strict C ANSI compliance |
37 |
+-CC = gcc -ansi -pedantic |
38 |
++ANSIFLAGS = -ansi -pedantic |
39 |
+ LIB= -lm |
40 |
+ |
41 |
+ # This allow you to write commands like "make PURE=purify demo1" |
42 |
+ # or "make PURE=quantify lib2" |
43 |
+ CCPURE = $(PURE) $(CC) |
44 |
+ |
45 |
++# To test strict C ANSI compliance |
46 |
++CFLAGS += $(ANSIFLAGS) |
47 |
++ |
48 |
+ ######################## |
49 |
+ # Machine specific #define, uncomment as needed |
50 |
+ # If your OS is not here, may be it provides some __linux or __sunos |
51 |
+@@ -33,7 +39,7 @@ CFLAGS += -DLITTLE_ENDIAN |
52 |
+ # GENERAL FLAGS FOR GCC |
53 |
+ |
54 |
+ # Optimized code |
55 |
+-CFLAGS += -O6 |
56 |
++#CFLAGS += -O6 |
57 |
+ |
58 |
+ # Debug mode with gdb |
59 |
+ #CFLAGS += -g |
60 |
+@@ -128,7 +134,7 @@ BINOBJS = $(BINSRCS:%.c=Bin/Standalone/%.o) |
61 |
+ PROJ = mbrola |
62 |
+ |
63 |
+ $(PROJ): install_dir $(BINOBJS) |
64 |
+- $(CCPURE) $(CFLAGS) -o $(MBRDIR)/$(PROJ) $(BINOBJS) $(LIB) |
65 |
++ $(CCPURE) $(CFLAGS) $(LDFLAGS) -o $(MBRDIR)/$(PROJ) $(BINOBJS) $(LIB) |
66 |
+ |
67 |
+ clean: |
68 |
+ \rm -f $(MBRDIR)/$(PROJ) $(PROJ).a core demo* TAGS $(BIN)/lib*.o $(BINOBJS) |
69 |
+@@ -147,7 +153,7 @@ net: |
70 |
+ \rm -f *~ */*~ |
71 |
+ |
72 |
+ $(BINDIR)/%.o: %.c |
73 |
+- $(CCPURE) $(CFLAGS) -o $@ -c $< |
74 |
++ $(CCPURE) $(CPPFLAGS) $(CFLAGS) -o $@ -c $< |
75 |
+ |
76 |
+ # to create the compilation directory, if necessary |
77 |
+ install_dir: |
78 |
+@@ -156,25 +162,25 @@ install_dir: |
79 |
+ fi |
80 |
+ |
81 |
+ lib1 : LibOneChannel/lib1.c |
82 |
+- $(CCPURE) $(CFLAGS) -o Bin/LibOneChannel/lib1.o -c LibOneChannel/lib1.c |
83 |
++ $(CCPURE) $(CPPFLAGS) $(CFLAGS) -o Bin/LibOneChannel/lib1.o -c LibOneChannel/lib1.c |
84 |
+ |
85 |
+ demo1: install_dir lib1 LibOneChannel/demo1.c |
86 |
+- $(CCPURE) $(CFLAGS) -c -o Bin/LibOneChannel/demo1.o LibOneChannel/demo1.c |
87 |
+- $(CCPURE) $(CFLAGS) -o demo1 Bin/LibOneChannel/demo1.o Bin/LibOneChannel/lib1.o $(LIB) |
88 |
++ $(CCPURE) $(CPPFLAGS) $(CFLAGS) -c -o Bin/LibOneChannel/demo1.o LibOneChannel/demo1.c |
89 |
++ $(CCPURE) $(CFLAGS) $(LDFLAGS) -o demo1 Bin/LibOneChannel/demo1.o Bin/LibOneChannel/lib1.o $(LIB) |
90 |
+ |
91 |
+ # END_WWW |
92 |
+ |
93 |
+ demo1b: install_dir lib1 LibOneChannel/demo1b.c |
94 |
+- $(CCPURE) $(CFLAGS) -c -o Bin/LibOneChannel/demo1b.o LibOneChannel/demo1b.c |
95 |
+- $(CCPURE) $(CFLAGS) -o demo1b Bin/LibOneChannel/demo1b.o Bin/LibOneChannel/lib1.o $(LIB) |
96 |
++ $(CCPURE) $(CPPFLAGS) $(CFLAGS) -c -o Bin/LibOneChannel/demo1b.o LibOneChannel/demo1b.c |
97 |
++ $(CCPURE) $(CFLAGS) $(LDFLAGS) -o demo1b Bin/LibOneChannel/demo1b.o Bin/LibOneChannel/lib1.o $(LIB) |
98 |
+ |
99 |
+ |
100 |
+ lib2 : LibMultiChannel/lib2.c |
101 |
+- $(CCPURE) $(CFLAGS) -o Bin/LibMultiChannel/lib2.o -c LibMultiChannel/lib2.c |
102 |
++ $(CCPURE) $(CPPFLAGS) $(CFLAGS) -o Bin/LibMultiChannel/lib2.o -c LibMultiChannel/lib2.c |
103 |
+ |
104 |
+ demo2: install_dir lib2 LibMultiChannel/demo2.c |
105 |
+- $(CCPURE) $(CFLAGS) -c -o Bin/LibMultiChannel/demo2.o LibMultiChannel/demo2.c |
106 |
+- $(CCPURE) $(CFLAGS) -o demo2 Bin/LibMultiChannel/demo2.o Bin/LibMultiChannel/lib2.o $(LIB) |
107 |
++ $(CCPURE) $(CPPFLAGS) $(CFLAGS) -c -o Bin/LibMultiChannel/demo2.o LibMultiChannel/demo2.c |
108 |
++ $(CCPURE) $(CFLAGS) $(LDFLAGS) -o demo2 Bin/LibMultiChannel/demo2.o Bin/LibMultiChannel/lib2.o $(LIB) |
109 |
+ # END_COMM |
110 |
+ |
111 |
+ # Check the integrity of the new Mbrola version by comparing the output |
112 |
|
113 |
diff --git a/app-accessibility/mbrola/mbrola-3.3-r1.ebuild b/app-accessibility/mbrola/mbrola-3.3-r1.ebuild |
114 |
new file mode 100644 |
115 |
index 00000000000..4d2b0e0161a |
116 |
--- /dev/null |
117 |
+++ b/app-accessibility/mbrola/mbrola-3.3-r1.ebuild |
118 |
@@ -0,0 +1,31 @@ |
119 |
+# Copyright 1999-2021 Gentoo Authors |
120 |
+# Distributed under the terms of the GNU General Public License v2 |
121 |
+ |
122 |
+EAPI=7 |
123 |
+inherit toolchain-funcs |
124 |
+ |
125 |
+DESCRIPTION="Speech synthesizer based on the concatenation of diphones" |
126 |
+HOMEPAGE="https://github.com/numediart/MBROLA" |
127 |
+SRC_URI="https://github.com/numediart/MBROLA/archive/${PV}.tar.gz -> ${P}.tar.gz" |
128 |
+ |
129 |
+LICENSE="AGPL-3+" |
130 |
+SLOT="0" |
131 |
+KEYWORDS="~amd64" |
132 |
+ |
133 |
+RDEPEND="app-accessibility/mbrola-voices" |
134 |
+ |
135 |
+S="${WORKDIR}/MBROLA-${PV}" |
136 |
+ |
137 |
+PATCHES=( |
138 |
+ "${FILESDIR}"/${P}-Makefile.patch |
139 |
+) |
140 |
+ |
141 |
+src_compile() { |
142 |
+ emake -j1 CC="$(tc-getCC)" |
143 |
+} |
144 |
+ |
145 |
+src_install() { |
146 |
+ dobin Bin/mbrola |
147 |
+ DOCS=( README.md Documentation/*.txt ) |
148 |
+ einstalldocs |
149 |
+} |