app-text/cwtext: Fix compilation

Closes: https://bugs.gentoo.org/729534
Package-Manager: Portage-2.3.103, Repoman-2.3.23
Signed-off-by: Thomas Beierlein <tomjbe@gentoo.org>
This commit is contained in:
Thomas Beierlein
2020-07-04 20:15:24 +02:00
parent fdff36839a
commit 40b3df6fe9
2 changed files with 18 additions and 3 deletions

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2019 Gentoo Authors
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -13,11 +13,15 @@ SLOT="0"
KEYWORDS="amd64 ~mips ppc ppc64 x86 ~amd64-linux ~x86-linux ~ppc-macos"
IUSE=""
PATCHES=( "${FILESDIR}"/${PN}-0.94-asneeded.patch )
PATCHES=(
"${FILESDIR}"/${PN}-0.96-pcm.patch
"${FILESDIR}"/${PN}-0.94-asneeded.patch
)
DOCS=( Changes README TODO )
src_prepare() {
eapply -p0 "${PATCHES}"
eapply -p0 "${PATCHES[@]}"
# change install directory to ${S}
sed -i -e "/^PREFIX/ s:=.*:=\"${S}\":" makefile || \
die "sed makefile failed"

View File

@@ -0,0 +1,11 @@
--- pcm.c.orig
+++ pcm.c
@@ -60,7 +60,7 @@ int mStoSamples(int hVox, int time) {
float samples;
float fsr;
- if (!valid(hVox)) return;
+ if (!valid(hVox)) return 0;
timelen = (float) time;
fsr = (float) voxref(hVox).samplerate;