mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-23 16:49:10 -07:00
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:
@@ -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"
|
||||
|
||||
11
app-text/cwtext/files/cwtext-0.96-pcm.patch
Normal file
11
app-text/cwtext/files/cwtext-0.96-pcm.patch
Normal 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;
|
||||
Reference in New Issue
Block a user