games-misc/fortune-mod-at-linux: fix iconv call on musl

Use POSIX arguments & behaviour instead.

Closes: https://bugs.gentoo.org/828773
Signed-off-by: Sam James <sam@gentoo.org>
This commit is contained in:
Sam James
2022-09-17 02:27:29 +01:00
parent 24d8345bb3
commit 9b54a1482d

View File

@@ -1,4 +1,4 @@
# Copyright 1999-2021 Gentoo Authors
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -21,7 +21,7 @@ BDEPEND=" unicode? ( virtual/libiconv )"
src_compile() {
# bug #322111
if use unicode ; then
iconv --from-code=ISO-8859-1 --to-code=UTF-8 at.linux > at.linux-utf8 || die
iconv -f iso-8859-1 -t utf8 at.linux > at.linux-utf8 || die
mv at.linux-utf8 at.linux || die
strfile -s at.linux || die
fi