summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2021-04-04 08:47:11 +0000
committerSam James <sam@gentoo.org>2021-04-04 09:15:43 +0000
commit92b8aece817e600b414166e321cf9ebb167696fe (patch)
tree509a3346fda2b45693658a9473569d417891e457 /games-misc
parentgames-misc/fortune-mod-chucknorris: port to EAPI 7 (diff)
downloadgentoo-92b8aece817e600b414166e321cf9ebb167696fe.tar.gz
gentoo-92b8aece817e600b414166e321cf9ebb167696fe.tar.bz2
gentoo-92b8aece817e600b414166e321cf9ebb167696fe.zip
games-misc/fortune-mod-cs: port to EAPI 7
Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'games-misc')
-rw-r--r--games-misc/fortune-mod-cs/fortune-mod-cs-1.6.9.ebuild18
1 files changed, 10 insertions, 8 deletions
diff --git a/games-misc/fortune-mod-cs/fortune-mod-cs-1.6.9.ebuild b/games-misc/fortune-mod-cs/fortune-mod-cs-1.6.9.ebuild
index c6b1a60a3f0d..1129557dd40c 100644
--- a/games-misc/fortune-mod-cs/fortune-mod-cs-1.6.9.ebuild
+++ b/games-misc/fortune-mod-cs/fortune-mod-cs-1.6.9.ebuild
@@ -1,10 +1,12 @@
# Copyright 1999-2021 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=5
+EAPI=7
+
DESCRIPTION="Database of the Czech and Slovak cookies for the fortune(6) program"
HOMEPAGE="http://ftp.fi.muni.cz/pub/linux/people/zdenek_pytela/"
SRC_URI="http://ftp.fi.muni.cz/pub/linux/people/zdenek_pytela/${P/-mod/}.tar.bz2"
+S="${WORKDIR}"/${P/-mod/}
LICENSE="GPL-2"
SLOT="0"
@@ -12,21 +14,21 @@ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~m68k ~mips ~ppc64 ~x86 ~amd64-linux ~
IUSE="unicode"
RDEPEND="games-misc/fortune-mod"
-DEPEND="${RDEPEND}
- unicode? ( virtual/libiconv )"
-
-S=${WORKDIR}/${P/-mod/}
+DEPEND="${RDEPEND}"
+BDEPEND="unicode? ( virtual/libiconv )"
src_prepare() {
- rm -f LICENSE install.sh fortune-cs.* *xpm
+ default
+
+ rm -f LICENSE install.sh fortune-cs.* *xpm || die
}
src_compile() {
local f
for f in [[:lower:]]* ; do
if use unicode ; then
- iconv --from-code iso-8859-2 --to-code utf8 -o${f}.utf8 ${f}
- mv ${f}.utf8 ${f}
+ iconv --from-code iso-8859-2 --to-code utf8 -o${f}.utf8 ${f} || die
+ mv ${f}.utf8 ${f} || die
fi
strfile -s ${f} || die "strfile ${f} failed"
done