commit:     797f7f7c8100d087277eef031b671a9acb34f7fe
Author:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
AuthorDate: Sun Sep 27 10:19:42 2020 +0000
Commit:     Miroslav Šulc <fordfrog <AT> gentoo <DOT> org>
CommitDate: Sun Sep 27 10:19:56 2020 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=797f7f7c

app-accessibility/speech-tools: fixed calling ar and ranlib in 2.5.0

Closes: https://bugs.gentoo.org/738880
Package-Manager: Portage-3.0.8, Repoman-3.0.1
Signed-off-by: Miroslav Šulc <fordfrog <AT> gentoo.org>

 app-accessibility/speech-tools/speech-tools-2.5.0.ebuild | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/app-accessibility/speech-tools/speech-tools-2.5.0.ebuild 
b/app-accessibility/speech-tools/speech-tools-2.5.0.ebuild
index 184920c2800..8a41ef40284 100644
--- a/app-accessibility/speech-tools/speech-tools-2.5.0.ebuild
+++ b/app-accessibility/speech-tools/speech-tools-2.5.0.ebuild
@@ -79,20 +79,24 @@ src_prepare() {
 
 src_configure() {
        local CONFIG=config/config.in
+
        sed -i -e 's/@COMPILERTYPE@/gcc42/' ${CONFIG} || die
+
        if use nas; then
                sed -i -e "s/#.*\(INCLUDE_MODULES += NAS_AUDIO\)/\1/" \
                        ${CONFIG} || die
        fi
+
        if ! use X; then
                sed -i -e "s/-lX11 -lXt//" config/modules/esd_audio.mak || die
        fi
+
        econf
 }
 
 src_compile() {
        emake -j1 CC="$(tc-getCC)" CXX="$(tc-getCXX)" 
CXX_OTHER_FLAGS="${CXXFLAGS}" CC_OTHER_FLAGS="${CFLAGS}" \
-               LDFLAGS="${LDFLAGS}"
+               AR="$(tc-getAR)" RANLIB="$(tc-getRANLIB)" LDFLAGS="${LDFLAGS}"
 }
 
 src_install() {

Reply via email to